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
Source§fn clone(&self) -> TosaPackedCase
fn clone(&self) -> TosaPackedCase
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 TosaPackedCase
Source§impl Debug for TosaPackedCase
impl Debug for TosaPackedCase
impl Eq for TosaPackedCase
Source§impl PartialEq for TosaPackedCase
impl PartialEq for TosaPackedCase
Source§fn eq(&self, other: &TosaPackedCase) -> bool
fn eq(&self, other: &TosaPackedCase) -> bool
Tests for
self and other values to be equal, and is used by ==.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