Struct rai_core::backend::Cpu

source ·
pub struct Cpu;

Trait Implementations§

source§

impl Backend for Cpu

source§

fn clone_boxed(&self) -> Box<dyn Backend>

source§

fn as_any(&self) -> &dyn Any

source§

fn data_type_id(&self) -> TypeId

source§

impl Clone for Cpu

source§

fn clone(&self) -> Cpu

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Cpu

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Cpu

source§

fn default() -> Cpu

Returns the “default value” for a type. Read more
source§

impl Eval<Cpu, Abs> for Dispatch<Cpu, Abs>

source§

fn eval(&self, _: &Cpu, _: &Abs, inputs: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, Add> for Dispatch<Cpu, Add>

source§

fn eval(&self, _: &Cpu, _: &Add, inputs: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, Arange> for Dispatch<Cpu, Arange>

source§

fn eval(&self, _: &Cpu, primitive: &Arange, _: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, Broadcast> for Dispatch<Cpu, Broadcast>

source§

fn eval( &self, _: &Cpu, primitive: &Broadcast, inputs: &[Tensor], output: &Tensor )

source§

impl Eval<Cpu, Cos> for Dispatch<Cpu, Cos>

source§

fn eval(&self, _: &Cpu, _: &Cos, inputs: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, Div> for Dispatch<Cpu, Div>

source§

fn eval(&self, _: &Cpu, _: &Div, inputs: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, Exp> for Dispatch<Cpu, Exp>

source§

fn eval(&self, _: &Cpu, _: &Exp, inputs: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, Full> for Dispatch<Cpu, Full>

source§

fn eval(&self, _: &Cpu, primitive: &Full, _: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, MatMul> for Dispatch<Cpu, MatMul>

source§

fn eval(&self, _: &Cpu, _: &MatMul, inputs: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, Mul> for Dispatch<Cpu, Mul>

source§

fn eval(&self, _: &Cpu, _: &Mul, inputs: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, Negative> for Dispatch<Cpu, Negative>

source§

fn eval(&self, _: &Cpu, _: &Negative, inputs: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, Normal> for Dispatch<Cpu, Normal>

source§

fn eval(&self, _: &Cpu, _: &Normal, _: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, ReduceSum> for Dispatch<Cpu, ReduceSum>

source§

fn eval( &self, _: &Cpu, primitive: &ReduceSum, inputs: &[Tensor], output: &Tensor )

source§

impl Eval<Cpu, Reshape> for Dispatch<Cpu, Reshape>

source§

fn eval(&self, _: &Cpu, _: &Reshape, inputs: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, Rsqrt> for Dispatch<Cpu, Rsqrt>

source§

fn eval(&self, _: &Cpu, _: &Rsqrt, inputs: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, Sign> for Dispatch<Cpu, Sign>

source§

fn eval(&self, _: &Cpu, _: &Sign, inputs: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, Sin> for Dispatch<Cpu, Sin>

source§

fn eval(&self, _: &Cpu, _: &Sin, inputs: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, Sqrt> for Dispatch<Cpu, Sqrt>

source§

fn eval(&self, _: &Cpu, _: &Sqrt, inputs: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, Square> for Dispatch<Cpu, Square>

source§

fn eval(&self, _: &Cpu, _: &Square, inputs: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, Sub> for Dispatch<Cpu, Sub>

source§

fn eval(&self, _: &Cpu, _: &Sub, inputs: &[Tensor], output: &Tensor)

source§

impl Eval<Cpu, Transpose> for Dispatch<Cpu, Transpose>

source§

fn eval(&self, _: &Cpu, _: &Transpose, inputs: &[Tensor], output: &Tensor)

Auto Trait Implementations§

§

impl RefUnwindSafe for Cpu

§

impl Send for Cpu

§

impl Sync for Cpu

§

impl Unpin for Cpu

§

impl UnwindSafe for Cpu

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> DynClone for T
where T: Clone,

source§

fn __clone_box(&self, _: Private) -> *mut ()

source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
§

impl<T> ErasedDestructor for T
where T: 'static,