pub struct DequantizePerGroupDescriptor {
pub outer_size: i32,
pub axis_size: i32,
pub group_size: i32,
pub input_element: ElementKind,
pub output_element: ElementKind,
}Expand description
Descriptor for dequantize_per_group.
Fields§
§outer_size: i32Flattened-prefix size (same as FW).
axis_size: i32Quant axis length.
group_size: i32Group size.
input_element: ElementKindOutput FP element kind.
output_element: ElementKindInput int element kind.
Implementations§
Source§impl DequantizePerGroupDescriptor
impl DequantizePerGroupDescriptor
Sourcepub fn num_groups(&self) -> i32
pub fn num_groups(&self) -> i32
Number of groups along the quant axis.
Trait Implementations§
Source§impl Clone for DequantizePerGroupDescriptor
impl Clone for DequantizePerGroupDescriptor
Source§fn clone(&self) -> DequantizePerGroupDescriptor
fn clone(&self) -> DequantizePerGroupDescriptor
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 DequantizePerGroupDescriptor
Auto Trait Implementations§
impl Freeze for DequantizePerGroupDescriptor
impl RefUnwindSafe for DequantizePerGroupDescriptor
impl Send for DequantizePerGroupDescriptor
impl Sync for DequantizePerGroupDescriptor
impl Unpin for DequantizePerGroupDescriptor
impl UnsafeUnpin for DequantizePerGroupDescriptor
impl UnwindSafe for DequantizePerGroupDescriptor
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