pub struct QuantizedLinearDescriptor {
pub m: i32,
pub c_out: i32,
pub k: i32,
pub q_min: i32,
pub q_max: i32,
pub activation_element: ElementKind,
pub weight_element: ElementKind,
}Expand description
Descriptor for a quantized_linear op.
Fields§
§m: i32Number of token rows in the activation (and rows of the output).
c_out: i32Number of output channels (rows of weight_q, cols of output).
k: i32Inner reduction dim (cols of activation and weight_q).
q_min: i32Activation quantization range lower bound (symmetric: -127).
q_max: i32Activation quantization range upper bound (symmetric: 127).
activation_element: ElementKindActivation FP element kind. Must match TIn::KIND.
weight_element: ElementKindWeight int element kind. Today wired only for S8.
Trait Implementations§
Source§impl Clone for QuantizedLinearDescriptor
impl Clone for QuantizedLinearDescriptor
Source§fn clone(&self) -> QuantizedLinearDescriptor
fn clone(&self) -> QuantizedLinearDescriptor
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 moreimpl Copy for QuantizedLinearDescriptor
Auto Trait Implementations§
impl Freeze for QuantizedLinearDescriptor
impl RefUnwindSafe for QuantizedLinearDescriptor
impl Send for QuantizedLinearDescriptor
impl Sync for QuantizedLinearDescriptor
impl Unpin for QuantizedLinearDescriptor
impl UnsafeUnpin for QuantizedLinearDescriptor
impl UnwindSafe for QuantizedLinearDescriptor
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