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