pub enum DispatchTensor {
Host(BackendTensor<Host>),
}Variants§
Host(BackendTensor<Host>)
Implementations§
Source§impl DispatchTensor
impl DispatchTensor
pub fn context(&self) -> AutodiffContext
pub fn with_context(self, context: AutodiffContext) -> Self
pub fn device(&self) -> DispatchDevice
Trait Implementations§
Source§impl Clone for DispatchTensor
impl Clone for DispatchTensor
Source§impl Debug for DispatchTensor
impl Debug for DispatchTensor
Source§impl QTensorPrimitive for DispatchTensor
impl QTensorPrimitive for DispatchTensor
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.
Source§impl TensorMetadata for DispatchTensor
impl TensorMetadata for DispatchTensor
Auto Trait Implementations§
impl !RefUnwindSafe for DispatchTensor
impl !UnwindSafe for DispatchTensor
impl Freeze for DispatchTensor
impl Send for DispatchTensor
impl Sync for DispatchTensor
impl Unpin for DispatchTensor
impl UnsafeUnpin for DispatchTensor
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