pub struct PerChannelQuantResult {
pub data: Vec<i8>,
pub scales: Vec<f32>,
pub shape: Vec<usize>,
}Expand description
Per-channel symmetric quantization for conv weights [KH, KW, C_in, C_out].
Each output channel gets its own scale factor for better accuracy. Per-channel quantization result.
Fields§
§data: Vec<i8>§scales: Vec<f32>§shape: Vec<usize>Auto Trait Implementations§
impl Freeze for PerChannelQuantResult
impl RefUnwindSafe for PerChannelQuantResult
impl Send for PerChannelQuantResult
impl Sync for PerChannelQuantResult
impl Unpin for PerChannelQuantResult
impl UnsafeUnpin for PerChannelQuantResult
impl UnwindSafe for PerChannelQuantResult
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