Struct rai_core::primitives::Softmax
source · pub struct Softmax {
pub dim: usize,
}
Fields§
§dim: usize
Implementations§
Trait Implementations§
source§impl PartialEq for Softmax
impl PartialEq for Softmax
source§impl Primitive for Softmax
impl Primitive for Softmax
fn clone_boxed(&self) -> Box<dyn Primitive>
fn dot_label(&self) -> String
fn as_any(&self) -> &dyn Any
fn jvp( &self, output: &Tensor, _primals: &[Tensor], tangents: &[Tensor] ) -> Tensor
fn vjp( &self, output: &Tensor, _primals: &[Tensor], cotangent: &Tensor ) -> Vec<Tensor>
impl Eq for Softmax
impl StructuralPartialEq for Softmax
Auto Trait Implementations§
impl Freeze for Softmax
impl RefUnwindSafe for Softmax
impl Send for Softmax
impl Sync for Softmax
impl Unpin for Softmax
impl UnwindSafe for Softmax
Blanket Implementations§
source§impl<T, M> ApplyModule<M> for Twhere
M: Module<Input = T>,
impl<T, M> ApplyModule<M> for Twhere
M: Module<Input = T>,
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