pub struct SoftmaxBackwardDescriptor<const N: usize> {
pub kind: SoftmaxKind,
pub input_shape: [i32; N],
pub softmax_axis: u8,
pub element: ElementKind,
}Expand description
Descriptor for a softmax-family BW op.
Fields§
§kind: SoftmaxKindWhich softmax variant this is the BW of.
input_shape: [i32; N]Tensor shape (shared by dy / y / dx).
softmax_axis: u8Forward softmax axis.
element: ElementKindElement type.
Trait Implementations§
Source§impl<const N: usize> Clone for SoftmaxBackwardDescriptor<N>
impl<const N: usize> Clone for SoftmaxBackwardDescriptor<N>
Source§fn clone(&self) -> SoftmaxBackwardDescriptor<N>
fn clone(&self) -> SoftmaxBackwardDescriptor<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 SoftmaxBackwardDescriptor<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for SoftmaxBackwardDescriptor<N>
impl<const N: usize> RefUnwindSafe for SoftmaxBackwardDescriptor<N>
impl<const N: usize> Send for SoftmaxBackwardDescriptor<N>
impl<const N: usize> Sync for SoftmaxBackwardDescriptor<N>
impl<const N: usize> Unpin for SoftmaxBackwardDescriptor<N>
impl<const N: usize> UnsafeUnpin for SoftmaxBackwardDescriptor<N>
impl<const N: usize> UnwindSafe for SoftmaxBackwardDescriptor<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