pub enum StateTensorRole {
Convolution {
slot: u32,
},
Recurrent,
PrefixEmbedding,
PositionDelta,
Pooling {
stream: u32,
component: PoolingStateComponent,
},
}Expand description
Semantic role of one non-attention cache tensor.
Variants§
Convolution
Bounded causal-convolution history.
Recurrent
Recurrent transition or linear-attention state.
PrefixEmbedding
Prepared multimodal prefix embeddings.
PositionDelta
Model-global multimodal position offset.
Pooling
One tensor in an append-only token-pooling stream.
Fields
§
component: PoolingStateComponentExact component of the pooling state.
Trait Implementations§
Source§impl Clone for StateTensorRole
impl Clone for StateTensorRole
Source§fn clone(&self) -> StateTensorRole
fn clone(&self) -> StateTensorRole
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 moreimpl Copy for StateTensorRole
Source§impl Debug for StateTensorRole
impl Debug for StateTensorRole
Source§impl<'de> Deserialize<'de> for StateTensorRole
impl<'de> Deserialize<'de> for StateTensorRole
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
impl Eq for StateTensorRole
Source§impl Hash for StateTensorRole
impl Hash for StateTensorRole
Source§impl Ord for StateTensorRole
impl Ord for StateTensorRole
Source§fn cmp(&self, other: &StateTensorRole) -> Ordering
fn cmp(&self, other: &StateTensorRole) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for StateTensorRole
impl PartialEq for StateTensorRole
Source§impl PartialOrd for StateTensorRole
impl PartialOrd for StateTensorRole
Source§impl Serialize for StateTensorRole
impl Serialize for StateTensorRole
impl StructuralPartialEq for StateTensorRole
Auto Trait Implementations§
impl Freeze for StateTensorRole
impl RefUnwindSafe for StateTensorRole
impl Send for StateTensorRole
impl Sync for StateTensorRole
impl Unpin for StateTensorRole
impl UnsafeUnpin for StateTensorRole
impl UnwindSafe for StateTensorRole
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