pub enum AccPolicy {
I32,
I64,
F32,
}Expand description
The accumulator format of a tile matmul.
Variants§
Implementations§
Source§impl AccPolicy
impl AccPolicy
Sourcepub fn for_result(p: Precision) -> AccPolicy
pub fn for_result(p: Precision) -> AccPolicy
The accumulator a program producing a p result folds in: a float result accumulates in fp32; an
integer one in an accumulator as wide as the result’s datapath — an INT32 result in an INT32
accumulator, never a 64-bit one the part may not have.
Sourcepub fn interm_precision(self) -> Precision
pub fn interm_precision(self) -> Precision
The narrowest precision that carries a spilled partial sum losslessly.
pub fn bits(self) -> u32
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AccPolicy
impl<'de> Deserialize<'de> for AccPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for AccPolicy
impl Ord for AccPolicy
Source§impl PartialOrd for AccPolicy
impl PartialOrd for AccPolicy
impl Copy for AccPolicy
impl Eq for AccPolicy
impl StructuralPartialEq for AccPolicy
Auto Trait Implementations§
impl Freeze for AccPolicy
impl RefUnwindSafe for AccPolicy
impl Send for AccPolicy
impl Sync for AccPolicy
impl Unpin for AccPolicy
impl UnsafeUnpin for AccPolicy
impl UnwindSafe for AccPolicy
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.