pub enum StateTensorOwner {
Layer(usize),
}Expand description
Owner of one persisted non-attention state tensor.
Variants§
Trait Implementations§
Source§impl Clone for StateTensorOwner
impl Clone for StateTensorOwner
Source§fn clone(&self) -> StateTensorOwner
fn clone(&self) -> StateTensorOwner
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 StateTensorOwner
Source§impl Debug for StateTensorOwner
impl Debug for StateTensorOwner
Source§impl<'de> Deserialize<'de> for StateTensorOwner
impl<'de> Deserialize<'de> for StateTensorOwner
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 StateTensorOwner
Source§impl Hash for StateTensorOwner
impl Hash for StateTensorOwner
Source§impl Ord for StateTensorOwner
impl Ord for StateTensorOwner
Source§fn cmp(&self, other: &StateTensorOwner) -> Ordering
fn cmp(&self, other: &StateTensorOwner) -> 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 StateTensorOwner
impl PartialEq for StateTensorOwner
Source§impl PartialOrd for StateTensorOwner
impl PartialOrd for StateTensorOwner
Source§impl Serialize for StateTensorOwner
impl Serialize for StateTensorOwner
impl StructuralPartialEq for StateTensorOwner
Auto Trait Implementations§
impl Freeze for StateTensorOwner
impl RefUnwindSafe for StateTensorOwner
impl Send for StateTensorOwner
impl Sync for StateTensorOwner
impl Unpin for StateTensorOwner
impl UnsafeUnpin for StateTensorOwner
impl UnwindSafe for StateTensorOwner
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