pub struct QParams<S> {
pub scales: S,
pub global: Option<S>,
}Expand description
The quantization tensor data parameters.
Fields§
§scales: SThe scaling factor.
global: Option<S>The per-tensor scale scales are relative to, for a two-level scheme.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for QParams<S>
impl<S> RefUnwindSafe for QParams<S>
impl<S> Send for QParams<S>
impl<S> Sync for QParams<S>
impl<S> Unpin for QParams<S>
impl<S> UnsafeUnpin for QParams<S>
impl<S> UnwindSafe for QParams<S>
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