pub struct QuantizationInfo {
pub scale: TensorHandle<TestRuntime>,
pub scheme: QuantScheme,
pub shape: Shape,
}Expand description
Information about a quantized tensor in tests. This allows marking a tensor as quantized for the kernel dispatcher while keeping the original unquantized data on the host for reference.
Fields§
§scale: TensorHandle<TestRuntime>The scale tensor on the device.
scheme: QuantSchemeThe quantization scheme (e.g., Symmetric, Tensor-wise, etc.)
shape: ShapeThe original unquantized shape of the tensor.
Trait Implementations§
Source§impl Clone for QuantizationInfo
impl Clone for QuantizationInfo
Source§fn clone(&self) -> QuantizationInfo
fn clone(&self) -> QuantizationInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QuantizationInfo
impl !RefUnwindSafe for QuantizationInfo
impl Send for QuantizationInfo
impl Sync for QuantizationInfo
impl Unpin for QuantizationInfo
impl UnsafeUnpin for QuantizationInfo
impl !UnwindSafe for QuantizationInfo
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