pub struct WeightLoaderCapabilities {
pub supported_formats: Vec<WeightFormat>,
pub supported_sources: Vec<WeightSourceType>,
pub max_tensor_size: u64,
pub supports_streaming: bool,
pub supports_concurrent: bool,
pub supported_transformations: Vec<TransformationType>,
}Expand description
Weight loader capabilities
Fields§
§supported_formats: Vec<WeightFormat>Supported weight formats
supported_sources: Vec<WeightSourceType>Supported weight sources
max_tensor_size: u64Maximum single tensor size in bytes
supports_streaming: boolWhether loader supports streaming/chunked loading
supports_concurrent: boolWhether loader supports concurrent loading
supported_transformations: Vec<TransformationType>Supported transformations
Trait Implementations§
Source§impl Clone for WeightLoaderCapabilities
impl Clone for WeightLoaderCapabilities
Source§fn clone(&self) -> WeightLoaderCapabilities
fn clone(&self) -> WeightLoaderCapabilities
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 WeightLoaderCapabilities
impl Debug for WeightLoaderCapabilities
Source§impl<'de> Deserialize<'de> for WeightLoaderCapabilities
impl<'de> Deserialize<'de> for WeightLoaderCapabilities
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WeightLoaderCapabilities
impl RefUnwindSafe for WeightLoaderCapabilities
impl Send for WeightLoaderCapabilities
impl Sync for WeightLoaderCapabilities
impl Unpin for WeightLoaderCapabilities
impl UnsafeUnpin for WeightLoaderCapabilities
impl UnwindSafe for WeightLoaderCapabilities
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