pub struct Q8Planes {
pub rows: usize,
pub cols: usize,
pub values: Vec<f64>,
pub scales: Vec<f64>,
}Expand description
A Q8_0 weight as a spatial program reads it (spatial::passes::from_q8): the int8 values in the layout the program
declares the weight, K × N row-major, and one scale per 32 rows of each column, K/32 × N.
Fields§
§rows: usizeK, the declared rows.
cols: usizeN, the declared columns.
values: Vec<f64>The int8 values, K × N.
scales: Vec<f64>The scales, K/32 × N.
Trait Implementations§
impl StructuralPartialEq for Q8Planes
Auto Trait Implementations§
impl Freeze for Q8Planes
impl RefUnwindSafe for Q8Planes
impl Send for Q8Planes
impl Sync for Q8Planes
impl Unpin for Q8Planes
impl UnsafeUnpin for Q8Planes
impl UnwindSafe for Q8Planes
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.