pub enum ModelKVMemoryType {
Float16,
Float32,
}
Expand description
Allowed types for the model memory K/V tensors.
Variants§
Trait Implementations§
Source§impl Clone for ModelKVMemoryType
impl Clone for ModelKVMemoryType
Source§fn clone(&self) -> ModelKVMemoryType
fn clone(&self) -> ModelKVMemoryType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ModelKVMemoryType
impl Debug for ModelKVMemoryType
Source§impl<'de> Deserialize<'de> for ModelKVMemoryType
impl<'de> Deserialize<'de> for ModelKVMemoryType
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
Source§impl From<ModelKVMemoryType> for Type
impl From<ModelKVMemoryType> for Type
Source§fn from(value: ModelKVMemoryType) -> Self
fn from(value: ModelKVMemoryType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ModelKVMemoryType
impl PartialEq for ModelKVMemoryType
Source§impl Serialize for ModelKVMemoryType
impl Serialize for ModelKVMemoryType
impl Copy for ModelKVMemoryType
impl Eq for ModelKVMemoryType
impl StructuralPartialEq for ModelKVMemoryType
Auto Trait Implementations§
impl Freeze for ModelKVMemoryType
impl RefUnwindSafe for ModelKVMemoryType
impl Send for ModelKVMemoryType
impl Sync for ModelKVMemoryType
impl Unpin for ModelKVMemoryType
impl UnwindSafe for ModelKVMemoryType
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