pub struct TosaInt8MatmulCase {
pub name: &'static str,
pub artifact: &'static [u8],
pub inputs: &'static [PackedTensor],
pub zero_points: [i8; 2],
pub outputs: &'static [Int32Tensor],
}Expand description
A stable TOSA INT8 matrix multiplication with exact INT32 accumulation.
Fields§
§name: &'static strDiagnostic case name.
artifact: &'static [u8]TOSA 1.0 FlatBuffer payload.
inputs: &'static [PackedTensor]Signed INT8 block inputs in declared slot order.
zero_points: [i8; 2]Compile-time zero points for the left and right operands.
outputs: &'static [Int32Tensor]Exact INT32 block outputs in declared slot order.
Implementations§
Source§impl TosaInt8MatmulCase
impl TosaInt8MatmulCase
Sourcepub fn output_matches(&self, output: usize, actual: &[i32]) -> bool
pub fn output_matches(&self, output: usize, actual: &[i32]) -> bool
Compare one backend output with the exact INT32 oracle.
Trait Implementations§
Source§impl Clone for TosaInt8MatmulCase
impl Clone for TosaInt8MatmulCase
Source§fn clone(&self) -> TosaInt8MatmulCase
fn clone(&self) -> TosaInt8MatmulCase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TosaInt8MatmulCase
Source§impl Debug for TosaInt8MatmulCase
impl Debug for TosaInt8MatmulCase
impl Eq for TosaInt8MatmulCase
Source§impl PartialEq for TosaInt8MatmulCase
impl PartialEq for TosaInt8MatmulCase
Source§fn eq(&self, other: &TosaInt8MatmulCase) -> bool
fn eq(&self, other: &TosaInt8MatmulCase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TosaInt8MatmulCase
Auto Trait Implementations§
impl Freeze for TosaInt8MatmulCase
impl RefUnwindSafe for TosaInt8MatmulCase
impl Send for TosaInt8MatmulCase
impl Sync for TosaInt8MatmulCase
impl Unpin for TosaInt8MatmulCase
impl UnsafeUnpin for TosaInt8MatmulCase
impl UnwindSafe for TosaInt8MatmulCase
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