pub enum MemoryTierInit {
Default,
ResidualZero,
}Expand description
Initial behavior of a memory tier’s ordinary FFN branch.
Variants§
Default
ResidualZero
Zero the FFN output projection so the residual tier is initially a strict no-op. This is used by checkpoint-compatible memory upgrades.
Trait Implementations§
Source§impl Clone for MemoryTierInit
impl Clone for MemoryTierInit
Source§fn clone(&self) -> MemoryTierInit
fn clone(&self) -> MemoryTierInit
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 MemoryTierInit
Source§impl Debug for MemoryTierInit
impl Debug for MemoryTierInit
Source§impl Default for MemoryTierInit
impl Default for MemoryTierInit
Source§fn default() -> MemoryTierInit
fn default() -> MemoryTierInit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MemoryTierInit
impl<'de> Deserialize<'de> for MemoryTierInit
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 MemoryTierInit
Source§impl PartialEq for MemoryTierInit
impl PartialEq for MemoryTierInit
Source§impl Serialize for MemoryTierInit
impl Serialize for MemoryTierInit
impl StructuralPartialEq for MemoryTierInit
Auto Trait Implementations§
impl Freeze for MemoryTierInit
impl RefUnwindSafe for MemoryTierInit
impl Send for MemoryTierInit
impl Sync for MemoryTierInit
impl Unpin for MemoryTierInit
impl UnsafeUnpin for MemoryTierInit
impl UnwindSafe for MemoryTierInit
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