pub struct QuantizePerTensorBackwardDescriptor {
pub numel: i32,
pub q_min: i32,
pub q_max: i32,
pub input_element: ElementKind,
pub output_element: ElementKind,
}Expand description
Descriptor for a quantize_per_tensor backward op. Mirrors the FW
descriptor with numel / q_min / q_max. The output dtype field
records which int output the FW targeted (needed to keep the kernel
SKU’s aux_element consistent between FW and BW) — though the BW
itself produces an FP gradient.
Fields§
§numel: i32Total element count.
q_min: i32Lower clip bound from FW.
q_max: i32Upper clip bound from FW.
input_element: ElementKindInput FP element kind.
output_element: ElementKindFW’s output int element kind (s8 or u8). Recorded for SKU consistency; the BW kernel itself doesn’t consume it.
Trait Implementations§
Source§impl Clone for QuantizePerTensorBackwardDescriptor
impl Clone for QuantizePerTensorBackwardDescriptor
Source§fn clone(&self) -> QuantizePerTensorBackwardDescriptor
fn clone(&self) -> QuantizePerTensorBackwardDescriptor
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 QuantizePerTensorBackwardDescriptor
Auto Trait Implementations§
impl Freeze for QuantizePerTensorBackwardDescriptor
impl RefUnwindSafe for QuantizePerTensorBackwardDescriptor
impl Send for QuantizePerTensorBackwardDescriptor
impl Sync for QuantizePerTensorBackwardDescriptor
impl Unpin for QuantizePerTensorBackwardDescriptor
impl UnsafeUnpin for QuantizePerTensorBackwardDescriptor
impl UnwindSafe for QuantizePerTensorBackwardDescriptor
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