#[repr(i32)]pub enum WeightsRole {
kKERNEL = 0,
kBIAS = 1,
kSHIFT = 2,
kSCALE = 3,
kCONSTANT = 4,
kANY = 5,
}Expand description
! ! \enum WeightsRole ! ! \brief How a layer uses particular Weights. ! ! The power weights of an IScaleLayer are omitted. Refitting those is not supported. !
Variants§
kKERNEL = 0
!< kernel for IConvolutionLayer or IDeconvolutionLayer
kBIAS = 1
!< bias for IConvolutionLayer or IDeconvolutionLayer
kSHIFT = 2
!< shift part of IScaleLayer
kSCALE = 3
!< scale part of IScaleLayer
kCONSTANT = 4
!< weights for IConstantLayer
kANY = 5
!< Any other weights role
Trait Implementations§
Source§impl Clone for WeightsRole
impl Clone for WeightsRole
Source§fn clone(&self) -> WeightsRole
fn clone(&self) -> WeightsRole
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 WeightsRole
impl Debug for WeightsRole
Source§impl From<WeightsRole> for WeightsRole
impl From<WeightsRole> for WeightsRole
Source§fn from(value: WeightsRole) -> Self
fn from(value: WeightsRole) -> Self
Converts to this type from the input type.
Source§impl Hash for WeightsRole
impl Hash for WeightsRole
Source§impl Into<WeightsRole> for WeightsRole
impl Into<WeightsRole> for WeightsRole
Source§fn into(self) -> WeightsRole
fn into(self) -> WeightsRole
Converts this type into the (usually inferred) input type.
Source§impl Ord for WeightsRole
impl Ord for WeightsRole
Source§fn cmp(&self, other: &WeightsRole) -> Ordering
fn cmp(&self, other: &WeightsRole) -> Ordering
1.21.0 · 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
Source§impl PartialEq for WeightsRole
impl PartialEq for WeightsRole
Source§impl PartialOrd for WeightsRole
impl PartialOrd for WeightsRole
impl Copy for WeightsRole
impl Eq for WeightsRole
impl StructuralPartialEq for WeightsRole
Auto Trait Implementations§
impl Freeze for WeightsRole
impl RefUnwindSafe for WeightsRole
impl Send for WeightsRole
impl Sync for WeightsRole
impl Unpin for WeightsRole
impl UnsafeUnpin for WeightsRole
impl UnwindSafe for WeightsRole
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