pub struct DequantizePerTokenDescriptor {
pub n: i32,
pub d: i32,
pub input_element: ElementKind,
pub output_element: ElementKind,
}Expand description
Descriptor for a dequantize_per_token op.
Fields§
§n: i32Number of token rows.
d: i32Feature dim.
input_element: ElementKindOutput FP element kind (matches TIn::KIND since the FP type is
the result here).
output_element: ElementKindInput int element kind (s8 or u8). Matches TOut::KIND.
Trait Implementations§
Source§impl Clone for DequantizePerTokenDescriptor
impl Clone for DequantizePerTokenDescriptor
Source§fn clone(&self) -> DequantizePerTokenDescriptor
fn clone(&self) -> DequantizePerTokenDescriptor
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 DequantizePerTokenDescriptor
Auto Trait Implementations§
impl Freeze for DequantizePerTokenDescriptor
impl RefUnwindSafe for DequantizePerTokenDescriptor
impl Send for DequantizePerTokenDescriptor
impl Sync for DequantizePerTokenDescriptor
impl Unpin for DequantizePerTokenDescriptor
impl UnsafeUnpin for DequantizePerTokenDescriptor
impl UnwindSafe for DequantizePerTokenDescriptor
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