Trait rai_core::backend::Backend

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

Required Methods§

source

fn data_type_id(&self) -> TypeId

source

fn as_any(&self) -> &dyn Any

Trait Implementations§

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 From<&Box<dyn Backend>> for Box<dyn Backend>

source§

fn from(value: &Box<dyn Backend>) -> Self

Converts to this type from the input type.
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.

Implementors§