Struct rai_core::primitives::ArgMax
source · pub struct ArgMax {
pub dim: usize,
pub keep_dim: bool,
}
Fields§
§dim: usize
§keep_dim: bool
Implementations§
Trait Implementations§
source§impl PartialEq for ArgMax
impl PartialEq for ArgMax
source§impl Primitive for ArgMax
impl Primitive for ArgMax
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 ArgMax
impl StructuralPartialEq for ArgMax
Auto Trait Implementations§
impl Freeze for ArgMax
impl RefUnwindSafe for ArgMax
impl Send for ArgMax
impl Sync for ArgMax
impl Unpin for ArgMax
impl UnwindSafe for ArgMax
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