Enum llm_base::ModelKVMemoryType
source · 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 copy 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 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<ModelKVMemoryType> for ModelKVMemoryType
impl PartialEq<ModelKVMemoryType> for ModelKVMemoryType
source§fn eq(&self, other: &ModelKVMemoryType) -> bool
fn eq(&self, other: &ModelKVMemoryType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ModelKVMemoryType
impl Serialize for ModelKVMemoryType
impl Copy for ModelKVMemoryType
impl Eq for ModelKVMemoryType
impl StructuralEq for ModelKVMemoryType
impl StructuralPartialEq for ModelKVMemoryType
Auto Trait Implementations§
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