#[repr(i32)]pub enum ScaleMode {
kUNIFORM = 0,
kCHANNEL = 1,
kELEMENTWISE = 2,
}Expand description
! ! \brief Controls how shift, scale and power are applied in a Scale layer. ! ! \see IScaleLayer !
Variants§
kUNIFORM = 0
!< Identical coefficients across all elements of the tensor.
kCHANNEL = 1
!< Per-channel coefficients.
kELEMENTWISE = 2
!< Elementwise coefficients.
Trait Implementations§
Source§impl Ord for ScaleMode
impl Ord for ScaleMode
Source§impl PartialOrd for ScaleMode
impl PartialOrd for ScaleMode
impl Copy for ScaleMode
impl Eq for ScaleMode
impl StructuralPartialEq for ScaleMode
Auto Trait Implementations§
impl Freeze for ScaleMode
impl RefUnwindSafe for ScaleMode
impl Send for ScaleMode
impl Sync for ScaleMode
impl Unpin for ScaleMode
impl UnsafeUnpin for ScaleMode
impl UnwindSafe for ScaleMode
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