Struct QuantizationParametersPrimitive
pub struct QuantizationParametersPrimitive<B>where
B: Backend,{
pub scales: <B as Backend>::FloatTensorPrimitive,
}Expand description
The quantization parameters primitive.
§Remarks
This is a low-level struct used internally by the library to provide the quantization parameters to the backends. It is not designed for direct usage by users, and not recommended to import or use this struct directly.
Users should prefer the QuantizationParameters struct, which is designed for public use.
Fields§
§scales: <B as Backend>::FloatTensorPrimitiveThe scaling factor.
Trait Implementations§
Auto Trait Implementations§
impl<B> Freeze for QuantizationParametersPrimitive<B>
impl<B> RefUnwindSafe for QuantizationParametersPrimitive<B>
impl<B> Send for QuantizationParametersPrimitive<B>
impl<B> Sync for QuantizationParametersPrimitive<B>
impl<B> Unpin for QuantizationParametersPrimitive<B>
impl<B> UnwindSafe for QuantizationParametersPrimitive<B>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more