pub struct BackendConfig {
pub backend_type: BackendType,
pub device: Device,
pub dtype: DataType,
pub enable_optimizations: bool,
pub optimization_level: u8,
pub enable_cuda_graphs: bool,
pub enable_kernel_fusion: bool,
pub backend_options: HashMap<String, Value>,
}Expand description
Backend configuration
Fields§
§backend_type: BackendTypeBackend type
device: DeviceTarget device
dtype: DataTypeData type for computation
enable_optimizations: boolEnable optimizations
optimization_level: u8Optimization level (0-3)
enable_cuda_graphs: boolEnable CUDA graphs
enable_kernel_fusion: boolEnable kernel fusion
backend_options: HashMap<String, Value>Custom backend-specific options
Trait Implementations§
Source§impl Clone for BackendConfig
impl Clone for BackendConfig
Source§fn clone(&self) -> BackendConfig
fn clone(&self) -> BackendConfig
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 BackendConfig
impl Debug for BackendConfig
Source§impl Default for BackendConfig
impl Default for BackendConfig
Source§fn default() -> BackendConfig
fn default() -> BackendConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BackendConfig
impl<'de> Deserialize<'de> for BackendConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BackendConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BackendConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for BackendConfig
impl Serialize for BackendConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for BackendConfig
impl RefUnwindSafe for BackendConfig
impl Send for BackendConfig
impl Sync for BackendConfig
impl Unpin for BackendConfig
impl UnsafeUnpin for BackendConfig
impl UnwindSafe for BackendConfig
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