pub struct LayerStateSpec {
pub layer_index: usize,
pub latent_total: usize,
pub latent_per_head: usize,
pub tensors: Vec<StateTensorSpec>,
}Fields§
§layer_index: usize§latent_total: usize§latent_per_head: usize§tensors: Vec<StateTensorSpec>Trait Implementations§
Source§impl Clone for LayerStateSpec
impl Clone for LayerStateSpec
Source§fn clone(&self) -> LayerStateSpec
fn clone(&self) -> LayerStateSpec
Returns a duplicate 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 LayerStateSpec
impl Debug for LayerStateSpec
Source§impl<'de> Deserialize<'de> for LayerStateSpec
impl<'de> Deserialize<'de> for LayerStateSpec
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 PartialEq for LayerStateSpec
impl PartialEq for LayerStateSpec
Source§impl Serialize for LayerStateSpec
impl Serialize for LayerStateSpec
impl Eq for LayerStateSpec
impl StructuralPartialEq for LayerStateSpec
Auto Trait Implementations§
impl Freeze for LayerStateSpec
impl RefUnwindSafe for LayerStateSpec
impl Send for LayerStateSpec
impl Sync for LayerStateSpec
impl Unpin for LayerStateSpec
impl UnsafeUnpin for LayerStateSpec
impl UnwindSafe for LayerStateSpec
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
Source§impl<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.