Struct rai_core::primitives::Arange
source · pub struct Arange {
pub start: f64,
pub stop: f64,
pub step: f64,
}
Fields§
§start: f64
§stop: f64
§step: f64
Implementations§
Trait Implementations§
source§impl PartialEq for Arange
impl PartialEq for Arange
source§impl Primitive for Arange
impl Primitive for Arange
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 StructuralPartialEq for Arange
Auto Trait Implementations§
impl RefUnwindSafe for Arange
impl Send for Arange
impl Sync for Arange
impl Unpin for Arange
impl UnwindSafe for Arange
Blanket Implementations§
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