pub struct INormalizationLayer { /* private fields */ }Expand description
! ! \class INormalizationLayer ! ! \brief A normalization layer in a network definition. ! ! The normalization layer performs the following operation: ! ! X - input Tensor ! Y - output Tensor ! S - scale Tensor ! B - bias Tensor ! ! Y = (X - Mean(X, axes)) / Sqrt(Variance(X) + epsilon) * S + B ! ! Where Mean(X, axes) is a reduction over a set of axes, and Variance(X) = Mean((X - Mean(X, axes)) ^ 2, axes). ! ! \warning Do not inherit from this class, as doing so will break forward-compatibility of the API and ABI. !
Trait Implementations§
Source§impl ExternType for INormalizationLayer
impl ExternType for INormalizationLayer
Source§impl MakeCppStorage for INormalizationLayer
impl MakeCppStorage for INormalizationLayer
Source§unsafe fn allocate_uninitialized_cpp_storage() -> *mut INormalizationLayer
unsafe fn allocate_uninitialized_cpp_storage() -> *mut INormalizationLayer
Allocates heap space for this type in C++ and return a pointer
to that space, but do not initialize that space (i.e. do not
yet call a constructor). Read more
Source§unsafe fn free_uninitialized_cpp_storage(arg0: *mut INormalizationLayer)
unsafe fn free_uninitialized_cpp_storage(arg0: *mut INormalizationLayer)
Frees a C++ allocation which has not yet
had a constructor called. Read more
Auto Trait Implementations§
impl !Freeze for INormalizationLayer
impl !RefUnwindSafe for INormalizationLayer
impl !Send for INormalizationLayer
impl !Sync for INormalizationLayer
impl !Unpin for INormalizationLayer
impl UnwindSafe for INormalizationLayer
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