#[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 ExternType for ScaleMode
impl ExternType for ScaleMode
impl Eq for ScaleMode
impl StructuralPartialEq for ScaleMode
impl UniquePtrTarget for ScaleMode
impl VectorElement for ScaleMode
impl WeakPtrTarget 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 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