pub enum ParamKind {
Weight,
Bias,
RunningMean,
RunningVar,
Raw,
}Expand description
What a leaf tensor is for. Kept coarse on purpose: it drives display grouping and the “is this trainable” question, not arithmetic.
Variants§
Weight
Bias
RunningMean
RunningVar
Raw
Registered through a raw vb.get(..) / vb.get_with_hints(..) call in user code.
Trait Implementations§
impl Copy for ParamKind
impl Eq for ParamKind
impl StructuralPartialEq for ParamKind
Auto Trait Implementations§
impl Freeze for ParamKind
impl RefUnwindSafe for ParamKind
impl Send for ParamKind
impl Sync for ParamKind
impl Unpin for ParamKind
impl UnsafeUnpin for ParamKind
impl UnwindSafe for ParamKind
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