pub struct BackendCapabilities {
pub max_tensor_dimensions: i32,
pub supports_fp16: bool,
pub supports_int8: bool,
pub supports_bf16: bool,
}Expand description
Backend capabilities.
Fields§
§max_tensor_dimensions: i32Maximum supported tensor dimensions
supports_fp16: boolSupports FP16 operations
supports_int8: boolSupports INT8 operations
supports_bf16: boolSupports BF16 operations
Implementations§
Source§impl BackendCapabilities
impl BackendCapabilities
Sourcepub fn query(_backend: BackendType) -> Self
pub fn query(_backend: BackendType) -> Self
Query capabilities for a specific backend.
Trait Implementations§
Source§impl Clone for BackendCapabilities
impl Clone for BackendCapabilities
Source§fn clone(&self) -> BackendCapabilities
fn clone(&self) -> BackendCapabilities
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 BackendCapabilities
impl Debug for BackendCapabilities
impl Copy for BackendCapabilities
Auto Trait Implementations§
impl Freeze for BackendCapabilities
impl RefUnwindSafe for BackendCapabilities
impl Send for BackendCapabilities
impl Sync for BackendCapabilities
impl Unpin for BackendCapabilities
impl UnsafeUnpin for BackendCapabilities
impl UnwindSafe for BackendCapabilities
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