pub struct TosaRawCase {
pub name: &'static str,
pub artifact: &'static [u8],
pub inputs: &'static [RawTensor],
pub output: RawTensor,
pub fp16_max_ulps: u16,
}Expand description
One mixed-type TOSA operator case with a numerical output oracle.
Fields§
§name: &'static strDiagnostic case name.
artifact: &'static [u8]TOSA 1.0 FlatBuffer payload.
inputs: &'static [RawTensor]Block inputs in declared slot order.
output: RawTensorSingle block output.
fp16_max_ulps: u16Maximum accepted binary16 ULP distance; ignored for exact BOOL/INT32 outputs.
Implementations§
Source§impl TosaRawCase
impl TosaRawCase
Sourcepub fn output_matches(self, actual: &[u8]) -> bool
pub fn output_matches(self, actual: &[u8]) -> bool
Compare raw client-visible bytes with the typed numerical oracle.
Trait Implementations§
Source§impl Clone for TosaRawCase
impl Clone for TosaRawCase
Source§fn clone(&self) -> TosaRawCase
fn clone(&self) -> TosaRawCase
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 TosaRawCase
Source§impl Debug for TosaRawCase
impl Debug for TosaRawCase
impl Eq for TosaRawCase
Source§impl PartialEq for TosaRawCase
impl PartialEq for TosaRawCase
Source§fn eq(&self, other: &TosaRawCase) -> bool
fn eq(&self, other: &TosaRawCase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TosaRawCase
Auto Trait Implementations§
impl Freeze for TosaRawCase
impl RefUnwindSafe for TosaRawCase
impl Send for TosaRawCase
impl Sync for TosaRawCase
impl Unpin for TosaRawCase
impl UnsafeUnpin for TosaRawCase
impl UnwindSafe for TosaRawCase
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