pub enum InputDataType {
Standard(StorageType),
Quantized(QuantScheme),
}Variants§
Standard(StorageType)
Quantized(QuantScheme)
Implementations§
Source§impl InputDataType
impl InputDataType
pub fn storage_type(&self) -> StorageType
pub fn is_quantized(&self) -> bool
pub fn scheme(&self) -> Option<QuantScheme>
Trait Implementations§
Source§impl Clone for InputDataType
impl Clone for InputDataType
Source§fn clone(&self) -> InputDataType
fn clone(&self) -> InputDataType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InputDataType
impl Debug for InputDataType
Source§impl From<ElemType> for InputDataType
impl From<ElemType> for InputDataType
Source§impl From<StorageType> for InputDataType
impl From<StorageType> for InputDataType
Source§fn from(dtype: StorageType) -> Self
fn from(dtype: StorageType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for InputDataType
impl RefUnwindSafe for InputDataType
impl Send for InputDataType
impl Sync for InputDataType
impl Unpin for InputDataType
impl UnsafeUnpin for InputDataType
impl UnwindSafe for InputDataType
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