pub struct CandleTensor { /* private fields */ }Expand description
A tensor that uses the candle backend.
Implementations§
Source§impl CandleTensor
impl CandleTensor
Sourcepub fn from_data<E: CandleElement>(
data: TensorData,
device: CandleDevice,
) -> Self
pub fn from_data<E: CandleElement>( data: TensorData, device: CandleDevice, ) -> Self
Trait Implementations§
Source§impl Clone for CandleTensor
impl Clone for CandleTensor
Source§fn clone(&self) -> CandleTensor
fn clone(&self) -> CandleTensor
Returns a duplicate 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 CandleTensor
impl Debug for CandleTensor
Source§impl QTensorPrimitive for CandleTensor
impl QTensorPrimitive for CandleTensor
Source§fn scheme(&self) -> &QuantScheme
fn scheme(&self) -> &QuantScheme
Returns the quantization settings for the given tensor.
Source§fn acc_precision(&self) -> QuantAcc
fn acc_precision(&self) -> QuantAcc
The precision used for the accumulation in various kernels.
Source§fn propagation(&self) -> QuantPropagation
fn propagation(&self) -> QuantPropagation
How quantization is propagated during computation.
Source§fn default_scheme() -> QuantScheme
fn default_scheme() -> QuantScheme
Returns the default tensor quantization scheme.
Auto Trait Implementations§
impl Freeze for CandleTensor
impl !RefUnwindSafe for CandleTensor
impl Send for CandleTensor
impl Sync for CandleTensor
impl Unpin for CandleTensor
impl !UnwindSafe for CandleTensor
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more