Trait rai_core::backend::Backend

source ·
pub trait Backend: Debug {
    // Required methods
    fn clone_boxed(&self) -> Box<dyn Backend>;
    fn data_type_id(&self) -> TypeId;
    fn as_any(&self) -> &dyn Any;
}

Required Methods§

source

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

source

fn data_type_id(&self) -> TypeId

source

fn as_any(&self) -> &dyn Any

Trait Implementations§

source§

impl Clone for Box<dyn Backend>

source§

fn clone(&self) -> Self

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<B, P> Eval<dyn Backend, dyn Primitive> for Dispatch<B, P>
where B: Backend + 'static + Sync + Send, P: Primitive + 'static + Sync + Send, Self: Eval<B, P> + 'static,

source§

fn eval( &self, backend: &dyn Backend, primitive: &dyn Primitive, inputs: &[Tensor], output: &Tensor )

source§

impl<T> From<&T> for Box<dyn Backend>
where T: Clone + Backend + 'static,

source§

fn from(t: &T) -> Self

Converts to this type from the input type.
source§

impl From<&dyn Backend> for Box<dyn Backend>

source§

fn from(t: &dyn Backend) -> Self

Converts to this type from the input type.
source§

impl From<&dyn Backend> for Device

source§

fn from(val: &dyn Backend) -> Self

Converts to this type from the input type.

Implementors§