pub struct MpsGraphQTensor {
pub tensor: MpsGraphTensor,
pub scheme: QuantScheme,
}Expand description
Quantized tensor.
Fields§
§tensor: MpsGraphTensor§scheme: QuantSchemeTrait Implementations§
Source§impl Clone for MpsGraphQTensor
impl Clone for MpsGraphQTensor
Source§fn clone(&self) -> MpsGraphQTensor
fn clone(&self) -> MpsGraphQTensor
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 MpsGraphQTensor
impl Debug for MpsGraphQTensor
Source§impl QTensorPrimitive for MpsGraphQTensor
impl QTensorPrimitive for MpsGraphQTensor
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 MpsGraphQTensor
impl RefUnwindSafe for MpsGraphQTensor
impl Send for MpsGraphQTensor
impl Sync for MpsGraphQTensor
impl Unpin for MpsGraphQTensor
impl UnsafeUnpin for MpsGraphQTensor
impl UnwindSafe for MpsGraphQTensor
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