Struct rai_core::primitives::FromSafetensor
source · pub struct FromSafetensor;
Trait Implementations§
source§impl Clone for FromSafetensor
impl Clone for FromSafetensor
source§fn clone(&self) -> FromSafetensor
fn clone(&self) -> FromSafetensor
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 FromSafetensor
impl Debug for FromSafetensor
source§impl PartialEq for FromSafetensor
impl PartialEq for FromSafetensor
source§fn eq(&self, other: &FromSafetensor) -> bool
fn eq(&self, other: &FromSafetensor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Primitive for FromSafetensor
impl Primitive for FromSafetensor
fn clone_boxed(&self) -> Box<dyn Primitive>
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>
fn dot_label(&self) -> String
impl Copy for FromSafetensor
impl Eq for FromSafetensor
impl StructuralEq for FromSafetensor
impl StructuralPartialEq for FromSafetensor
Auto Trait Implementations§
impl RefUnwindSafe for FromSafetensor
impl Send for FromSafetensor
impl Sync for FromSafetensor
impl Unpin for FromSafetensor
impl UnwindSafe for FromSafetensor
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