pub struct SoftmaxDescriptor<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 op.
Fields§
§kind: SoftmaxKindWhich softmax variant.
input_shape: [i32; N]Tensor shape — input and output share it.
softmax_axis: u8Axis along which to compute softmax. Must be in [0, N).
element: ElementKindElement type.
Trait Implementations§
Source§impl<const N: usize> Clone for SoftmaxDescriptor<N>
impl<const N: usize> Clone for SoftmaxDescriptor<N>
Source§fn clone(&self) -> SoftmaxDescriptor<N>
fn clone(&self) -> SoftmaxDescriptor<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 SoftmaxDescriptor<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for SoftmaxDescriptor<N>
impl<const N: usize> RefUnwindSafe for SoftmaxDescriptor<N>
impl<const N: usize> Send for SoftmaxDescriptor<N>
impl<const N: usize> Sync for SoftmaxDescriptor<N>
impl<const N: usize> Unpin for SoftmaxDescriptor<N>
impl<const N: usize> UnsafeUnpin for SoftmaxDescriptor<N>
impl<const N: usize> UnwindSafe for SoftmaxDescriptor<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