pub struct DropoutBackwardDescriptor<const N: usize> {
pub shape: [i32; N],
pub element: ElementKind,
pub p: f32,
}Expand description
Descriptor for the dropout backward pass.
Mirrors DropoutDescriptor but only carries the parameters the
backward needs (p for the scale, no seed since the mask is replayed
from the saved tensor).
Fields§
§shape: [i32; N]Tensor shape — dy / mask / dx share it.
element: ElementKindElement type for dy and dx.
p: f32Drop probability used by the corresponding forward.
Trait Implementations§
Source§impl<const N: usize> Clone for DropoutBackwardDescriptor<N>
impl<const N: usize> Clone for DropoutBackwardDescriptor<N>
Source§fn clone(&self) -> DropoutBackwardDescriptor<N>
fn clone(&self) -> DropoutBackwardDescriptor<N>
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<const N: usize> Copy for DropoutBackwardDescriptor<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for DropoutBackwardDescriptor<N>
impl<const N: usize> RefUnwindSafe for DropoutBackwardDescriptor<N>
impl<const N: usize> Send for DropoutBackwardDescriptor<N>
impl<const N: usize> Sync for DropoutBackwardDescriptor<N>
impl<const N: usize> Unpin for DropoutBackwardDescriptor<N>
impl<const N: usize> UnsafeUnpin for DropoutBackwardDescriptor<N>
impl<const N: usize> UnwindSafe for DropoutBackwardDescriptor<N>
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