Struct rai_core::CandleBackend

source ·
pub struct CandleBackend;

Trait Implementations§

source§

impl Backend for CandleBackend

source§

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

source§

fn as_any(&self) -> &dyn Any

source§

fn data_type_id(&self) -> TypeId

source§

fn equal(&self, rhs: &dyn Backend) -> bool

source§

impl Clone for CandleBackend

source§

fn clone(&self) -> CandleBackend

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 CandleBackend

source§

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

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

impl Default for CandleBackend

source§

fn default() -> CandleBackend

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

impl<D: Device> Eval<D, Abs> for CandleBackend

source§

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

source§

impl<D: Device> Eval<D, Add> for CandleBackend

source§

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

source§

impl<D, T> Eval<D, Arange<T>> for CandleBackend
where D: Device, for<'a> &'a D: Into<Device>, T: Type, T::Repr: WithDType,

source§

fn eval(&self, device: &D, primitive: &Arange<T>, _: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, ArgMax> for CandleBackend

source§

fn eval(&self, _: &D, primitive: &ArgMax, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, ArgMin> for CandleBackend

source§

fn eval(&self, _: &D, primitive: &ArgMin, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, AvgPool1d> for CandleBackend

source§

fn eval(&self, _: &D, _p: &AvgPool1d, _inputs: &[Tensor], _output: &Tensor)

source§

impl<D: Device> Eval<D, AvgPool2d> for CandleBackend

source§

fn eval(&self, _: &D, p: &AvgPool2d, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, Broadcast> for CandleBackend

source§

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

source§

impl<D: Device> Eval<D, Concatenate> for CandleBackend

source§

fn eval( &self, _: &D, primitive: &Concatenate, inputs: &[Tensor], output: &Tensor )

source§

impl<D: Device> Eval<D, Conv1d> for CandleBackend

source§

fn eval(&self, _: &D, primitive: &Conv1d, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, Conv2d> for CandleBackend

source§

fn eval(&self, _: &D, primitive: &Conv2d, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, ConvTranspose1d> for CandleBackend

source§

fn eval( &self, _: &D, primitive: &ConvTranspose1d, inputs: &[Tensor], output: &Tensor )

source§

impl<D: Device> Eval<D, ConvTranspose2d> for CandleBackend

source§

fn eval( &self, _: &D, primitive: &ConvTranspose2d, inputs: &[Tensor], output: &Tensor )

source§

impl<D: Device> Eval<D, Cos> for CandleBackend

source§

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

source§

impl<D: Device> Eval<D, Div> for CandleBackend

source§

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

source§

impl<D: Device> Eval<D, Equal> for CandleBackend

source§

fn eval(&self, _: &D, _: &Equal, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, Erf> for CandleBackend

source§

fn eval(&self, _: &D, _: &Erf, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, Exp> for CandleBackend

source§

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

source§

impl<D, T> Eval<D, FromArray<T>> for CandleBackend
where D: Device, for<'a> &'a D: Into<Device>, T: Type, T::Repr: WithDType,

source§

fn eval( &self, device: &D, primitive: &FromArray<T>, _: &[Tensor], output: &Tensor )

source§

impl<D, T> Eval<D, Full<T>> for CandleBackend
where D: Device, for<'a> &'a D: Into<Device>, T: Type, T::Repr: WithDType,

source§

fn eval(&self, device: &D, primitive: &Full<T>, _: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, Gather> for CandleBackend

source§

fn eval(&self, _: &D, primitive: &Gather, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, Greater> for CandleBackend

source§

fn eval(&self, _: &D, _: &Greater, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, GreaterEqual> for CandleBackend

source§

fn eval(&self, _: &D, _: &GreaterEqual, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, IndexAdd> for CandleBackend

source§

fn eval(&self, _: &D, primitive: &IndexAdd, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, IndexSelect> for CandleBackend

source§

fn eval( &self, _: &D, primitive: &IndexSelect, inputs: &[Tensor], output: &Tensor )

source§

impl<D: Device> Eval<D, Less> for CandleBackend

source§

fn eval(&self, _: &D, _: &Less, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, LessEqual> for CandleBackend

source§

fn eval(&self, _: &D, _: &LessEqual, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, Log> for CandleBackend

source§

fn eval(&self, _: &D, _: &Log, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, Log10> for CandleBackend

source§

fn eval(&self, _: &D, _: &Log10, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, Log2> for CandleBackend

source§

fn eval(&self, _: &D, _: &Log2, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, LogSoftmax> for CandleBackend

source§

fn eval( &self, _: &D, primitive: &LogSoftmax, inputs: &[Tensor], output: &Tensor )

source§

impl<D: Device> Eval<D, MatMul> for CandleBackend

source§

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

source§

impl<D: Device> Eval<D, MaxPool1d> for CandleBackend

source§

fn eval(&self, _: &D, _p: &MaxPool1d, _inputs: &[Tensor], _output: &Tensor)

source§

impl<D: Device> Eval<D, MaxPool2d> for CandleBackend

source§

fn eval(&self, _: &D, p: &MaxPool2d, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, Maximum> for CandleBackend

source§

fn eval(&self, _: &D, _: &Maximum, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, Minimum> for CandleBackend

source§

fn eval(&self, _: &D, _: &Minimum, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, Mul> for CandleBackend

source§

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

source§

impl<D: Device> Eval<D, Narrow> for CandleBackend

source§

fn eval(&self, _: &D, primitive: &Narrow, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, Negative> for CandleBackend

source§

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

source§

impl<D, T> Eval<D, Normal<T>> for CandleBackend
where D: Device, for<'a> &'a D: Into<Device>, T: Type, T::Repr: FloatDType,

source§

fn eval(&self, device: &D, primitive: &Normal<T>, _: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, NotEqual> for CandleBackend

source§

fn eval(&self, _: &D, _: &NotEqual, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, Permute> for CandleBackend

source§

fn eval(&self, _: &D, primitive: &Permute, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, PowerFloat> for CandleBackend

source§

fn eval( &self, _: &D, primitive: &PowerFloat, inputs: &[Tensor], output: &Tensor )

source§

impl<D, T> Eval<D, Random<T>> for CandleBackend
where D: Device, for<'a> &'a D: Into<Device>, T: Type, T::Repr: FloatDType,

source§

fn eval(&self, device: &D, primitive: &Random<T>, _: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, ReduceMax> for CandleBackend

source§

fn eval(&self, _: &D, primitive: &ReduceMax, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, ReduceMin> for CandleBackend

source§

fn eval(&self, _: &D, primitive: &ReduceMin, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, ReduceSum> for CandleBackend

source§

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

source§

impl<D: Device> Eval<D, Reshape> for CandleBackend

source§

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

source§

impl<D: Device> Eval<D, Rsqrt> for CandleBackend

source§

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

source§

impl<D: Device> Eval<D, ScatterAdd> for CandleBackend

source§

fn eval( &self, _: &D, primitive: &ScatterAdd, inputs: &[Tensor], output: &Tensor )

source§

impl<D: Device> Eval<D, Sign> for CandleBackend

source§

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

source§

impl<D: Device> Eval<D, Sin> for CandleBackend

source§

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

source§

impl<D: Device> Eval<D, Softmax> for CandleBackend

source§

fn eval(&self, _: &D, primitive: &Softmax, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, Sqrt> for CandleBackend

source§

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

source§

impl<D: Device> Eval<D, Square> for CandleBackend

source§

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

source§

impl<D: Device> Eval<D, Sub> for CandleBackend

source§

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

source§

impl<D: Device> Eval<D, Tanh> for CandleBackend

source§

fn eval(&self, _: &D, _: &Tanh, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, ToContiguous> for CandleBackend

source§

fn eval(&self, _: &D, _: &ToContiguous, inputs: &[Tensor], output: &Tensor)

source§

impl<D, T> Eval<D, ToDType<T>> for CandleBackend
where D: Device, T: Type + Into<DType>,

source§

fn eval( &self, _: &D, primitive: &ToDType<T>, inputs: &[Tensor], output: &Tensor )

source§

impl<D: Device> Eval<D, Transpose> for CandleBackend

source§

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

source§

impl<D: Device> Eval<D, UpsampleNearest1d> for CandleBackend

source§

fn eval(&self, _: &D, p: &UpsampleNearest1d, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, UpsampleNearest2d> for CandleBackend

source§

fn eval(&self, _: &D, p: &UpsampleNearest2d, inputs: &[Tensor], output: &Tensor)

source§

impl<D: Device> Eval<D, Where> for CandleBackend

source§

fn eval(&self, _: &D, _: &Where, inputs: &[Tensor], output: &Tensor)

source§

impl<D1, D2> Eval<D1, ToDevice<D2>> for CandleBackend
where D1: Device, D2: Device + Clone, for<'a> &'a D2: Into<Device>,

source§

fn eval( &self, _: &D1, primitive: &ToDevice<D2>, inputs: &[Tensor], output: &Tensor )

source§

impl PartialEq for CandleBackend

source§

fn eq(&self, other: &CandleBackend) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for CandleBackend

source§

impl StructuralPartialEq for CandleBackend

Auto Trait Implementations§

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, M> ApplyModule<M> for T
where M: Module<Input = T>,

source§

fn apply(&self, module: M) -> M::Output

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.

source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

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

Initializes a with the given initializer. Read more
source§

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

Dereferences the given pointer. Read more
source§

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

Mutably dereferences the given pointer. Read more
source§

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.
source§

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

source§

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
source§

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