Struct rai_core::primitives::ScatterAdd
source · pub struct ScatterAdd {
pub dim: usize,
}
Fields§
§dim: usize
Implementations§
Trait Implementations§
source§impl Clone for ScatterAdd
impl Clone for ScatterAdd
source§fn clone(&self) -> ScatterAdd
fn clone(&self) -> ScatterAdd
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ScatterAdd
impl Debug for ScatterAdd
source§impl<D: Device> Eval<D, ScatterAdd> for CandleBackend
impl<D: Device> Eval<D, ScatterAdd> for CandleBackend
source§impl PartialEq for ScatterAdd
impl PartialEq for ScatterAdd
source§fn eq(&self, other: &ScatterAdd) -> bool
fn eq(&self, other: &ScatterAdd) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Primitive for ScatterAdd
impl Primitive for ScatterAdd
fn clone_boxed(&self) -> Box<dyn Primitive>
fn as_any(&self) -> &dyn Any
fn dot_label(&self) -> String
fn jvp( &self, _output: &Tensor, primals: &[Tensor], tangents: &[Tensor] ) -> Tensor
fn vjp( &self, _output: &Tensor, primals: &[Tensor], cotangent: &Tensor ) -> Vec<Tensor>
impl Eq for ScatterAdd
impl StructuralPartialEq for ScatterAdd
Auto Trait Implementations§
impl Freeze for ScatterAdd
impl RefUnwindSafe for ScatterAdd
impl Send for ScatterAdd
impl Sync for ScatterAdd
impl Unpin for ScatterAdd
impl UnwindSafe for ScatterAdd
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