pub struct QuantizePerChannelBackwardDescriptor {
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 backward op.
Fields§
§shape: [i32; 4]4-D shape (caller pads rank).
rank: u8Logical rank.
axis: u8Axis index in [0, 4).
q_min: i32Lower clip bound from FW.
q_max: i32Upper clip bound from FW.
input_element: ElementKindInput FP element kind.
output_element: ElementKindFW output int element kind (s8 or u8) — recorded for SKU parity.
Trait Implementations§
Source§impl Clone for QuantizePerChannelBackwardDescriptor
impl Clone for QuantizePerChannelBackwardDescriptor
Source§fn clone(&self) -> QuantizePerChannelBackwardDescriptor
fn clone(&self) -> QuantizePerChannelBackwardDescriptor
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 QuantizePerChannelBackwardDescriptor
Auto Trait Implementations§
impl Freeze for QuantizePerChannelBackwardDescriptor
impl RefUnwindSafe for QuantizePerChannelBackwardDescriptor
impl Send for QuantizePerChannelBackwardDescriptor
impl Sync for QuantizePerChannelBackwardDescriptor
impl Unpin for QuantizePerChannelBackwardDescriptor
impl UnsafeUnpin for QuantizePerChannelBackwardDescriptor
impl UnwindSafe for QuantizePerChannelBackwardDescriptor
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