pub struct QuantizePerChannelDescriptor {
pub shape: [i32; 4],
pub rank: u8,
pub axis: u8,
pub q_min: i32,
pub q_max: i32,
pub input_element: ElementKind,
pub output_element: ElementKind,
}Expand description
Descriptor for a quantize_per_channel forward op.
Fields§
§shape: [i32; 4]4-D shape (caller pads rank with 1’s).
rank: u8Logical rank (used for validation; the kernel always sees rank 4).
axis: u8Axis index in [0, 4) that indexes the per-channel scale[] /
zero_point[] vectors.
q_min: i32Quantization range lower bound.
q_max: i32Quantization range upper bound.
input_element: ElementKindInput FP element kind.
output_element: ElementKindOutput int element kind.
Trait Implementations§
Source§impl Clone for QuantizePerChannelDescriptor
impl Clone for QuantizePerChannelDescriptor
Source§fn clone(&self) -> QuantizePerChannelDescriptor
fn clone(&self) -> QuantizePerChannelDescriptor
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 QuantizePerChannelDescriptor
Auto Trait Implementations§
impl Freeze for QuantizePerChannelDescriptor
impl RefUnwindSafe for QuantizePerChannelDescriptor
impl Send for QuantizePerChannelDescriptor
impl Sync for QuantizePerChannelDescriptor
impl Unpin for QuantizePerChannelDescriptor
impl UnsafeUnpin for QuantizePerChannelDescriptor
impl UnwindSafe for QuantizePerChannelDescriptor
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