#[repr(i32)]pub enum WeightsRole {
kKERNEL = 0,
kBIAS = 1,
kSHIFT = 2,
kSCALE = 3,
kCONSTANT = 4,
kANY = 5,
}Expand description
WeightsRole
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Eq for WeightsRole
Source§impl ExternType for WeightsRole
impl ExternType 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 PartialEq for WeightsRole
impl PartialEq for WeightsRole
Source§fn eq(&self, other: &WeightsRole) -> bool
fn eq(&self, other: &WeightsRole) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WeightsRole
impl UniquePtrTarget for WeightsRole
impl VectorElement for WeightsRole
impl WeakPtrTarget 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