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