pub struct TosaPackedCase {
pub name: &'static str,
pub dtype: PackedDType,
pub artifact: &'static [u8],
pub inputs: &'static [PackedTensor],
pub outputs: &'static [PackedTensor],
}Expand description
A stable TOSA graph and packed low-precision oracle shared by host backends.
Fields§
§name: &'static strDiagnostic case name.
dtype: PackedDTypeTensor scalar encoding.
artifact: &'static [u8]TOSA 1.0 FlatBuffer payload.
inputs: &'static [PackedTensor]Block inputs in declared slot order.
outputs: &'static [PackedTensor]Block outputs in declared slot order.
Implementations§
Source§impl TosaPackedCase
impl TosaPackedCase
Sourcepub fn output_matches(&self, output: usize, actual: &[u8]) -> bool
pub fn output_matches(&self, output: usize, actual: &[u8]) -> bool
Compare one backend output with this case’s selected storage oracle.
Integer values must match bit-for-bit. FP8 values do too, except that NaN sign and payload may be canonicalized by an accelerator.
Trait Implementations§
Source§impl Clone for TosaPackedCase
impl Clone for TosaPackedCase
impl Copy for TosaPackedCase
Source§impl Debug for TosaPackedCase
impl Debug for TosaPackedCase
impl Eq for TosaPackedCase
Source§impl PartialEq for TosaPackedCase
impl PartialEq for TosaPackedCase
impl StructuralPartialEq for TosaPackedCase
Auto Trait Implementations§
impl Freeze for TosaPackedCase
impl RefUnwindSafe for TosaPackedCase
impl Send for TosaPackedCase
impl Sync for TosaPackedCase
impl Unpin for TosaPackedCase
impl UnsafeUnpin for TosaPackedCase
impl UnwindSafe for TosaPackedCase
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