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