Struct rai_core::primitives::IndexSelect
source · pub struct IndexSelect {
pub dim: usize,
}
Fields§
§dim: usize
Implementations§
Trait Implementations§
source§impl Clone for IndexSelect
impl Clone for IndexSelect
source§fn clone(&self) -> IndexSelect
fn clone(&self) -> IndexSelect
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 IndexSelect
impl Debug for IndexSelect
source§impl<D: Device> Eval<D, IndexSelect> for CandleBackend
impl<D: Device> Eval<D, IndexSelect> for CandleBackend
source§impl PartialEq for IndexSelect
impl PartialEq for IndexSelect
source§fn eq(&self, other: &IndexSelect) -> bool
fn eq(&self, other: &IndexSelect) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Primitive for IndexSelect
impl Primitive for IndexSelect
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 IndexSelect
impl StructuralPartialEq for IndexSelect
Auto Trait Implementations§
impl Freeze for IndexSelect
impl RefUnwindSafe for IndexSelect
impl Send for IndexSelect
impl Sync for IndexSelect
impl Unpin for IndexSelect
impl UnwindSafe for IndexSelect
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