pub struct BridgeConfig {
pub enable_gpu: bool,
pub gpu_device: GpuDevice,
pub memory_pool_size: usize,
pub enable_monitoring: bool,
pub auto_fallback: bool,
pub batch_size: usize,
pub precision: Precision,
}
Expand description
Configuration for the neural bridge
Fields§
§enable_gpu: bool
Whether to enable GPU acceleration
gpu_device: GpuDevice
GPU device preference
memory_pool_size: usize
Memory pool size in MB
enable_monitoring: bool
Whether to enable performance monitoring
auto_fallback: bool
Automatic fallback to CPU if GPU fails
batch_size: usize
Batch size for operations
precision: Precision
Precision level
Trait Implementations§
Source§impl Clone for BridgeConfig
impl Clone for BridgeConfig
Source§fn clone(&self) -> BridgeConfig
fn clone(&self) -> BridgeConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BridgeConfig
impl Debug for BridgeConfig
Auto Trait Implementations§
impl Freeze for BridgeConfig
impl RefUnwindSafe for BridgeConfig
impl Send for BridgeConfig
impl Sync for BridgeConfig
impl Unpin for BridgeConfig
impl UnwindSafe for BridgeConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more