pub struct ParameterSpec {
pub id: ParameterId,
pub trainable: bool,
pub alias_of: Option<ParameterId>,
pub group: Option<String>,
pub linear_companion: Option<LinearCompanionRole>,
pub linear_companion_of: Option<ParameterId>,
}Expand description
Complete logical declaration for one parameter slot.
Fields§
§id: ParameterIdStable authoritative identity.
trainable: boolWhether optimizers may update this parameter by default.
alias_of: Option<ParameterId>Authoritative destination when this slot aliases a tied parameter.
group: Option<String>Optional atomic encoding or sharding group.
linear_companion: Option<LinearCompanionRole>Semantic role within an encoded linear parameter group.
linear_companion_of: Option<ParameterId>Primary linear weight owned by this physical companion.
Implementations§
Source§impl ParameterSpec
impl ParameterSpec
Trait Implementations§
Source§impl Clone for ParameterSpec
impl Clone for ParameterSpec
Source§fn clone(&self) -> ParameterSpec
fn clone(&self) -> ParameterSpec
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 moreSource§impl Debug for ParameterSpec
impl Debug for ParameterSpec
impl Eq for ParameterSpec
Source§impl PartialEq for ParameterSpec
impl PartialEq for ParameterSpec
impl StructuralPartialEq for ParameterSpec
Auto Trait Implementations§
impl Freeze for ParameterSpec
impl RefUnwindSafe for ParameterSpec
impl Send for ParameterSpec
impl Sync for ParameterSpec
impl Unpin for ParameterSpec
impl UnsafeUnpin for ParameterSpec
impl UnwindSafe for ParameterSpec
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