pub struct TosaFloat16Case {
pub name: &'static str,
pub artifact: &'static [u8],
pub inputs: &'static [Float16Tensor],
pub outputs: &'static [Float16Tensor],
}Expand description
A stable TOSA graph and binary16 numerical oracle shared by host backends.
Fields§
§name: &'static strDiagnostic case name.
artifact: &'static [u8]TOSA 1.0 FlatBuffer payload.
inputs: &'static [Float16Tensor]Block inputs in declared slot order.
outputs: &'static [Float16Tensor]Block outputs in declared slot order.
Implementations§
Source§impl TosaFloat16Case
impl TosaFloat16Case
Sourcepub fn output_matches(&self, output: usize, actual: &[u16]) -> bool
pub fn output_matches(&self, output: usize, actual: &[u16]) -> bool
Compare one backend output with this case’s selected output oracle.
Every non-NaN value must match bit-for-bit, including signed zero, infinities, and subnormals. NaN payloads may be canonicalized by the accelerator.
Trait Implementations§
Source§impl Clone for TosaFloat16Case
impl Clone for TosaFloat16Case
Source§fn clone(&self) -> TosaFloat16Case
fn clone(&self) -> TosaFloat16Case
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 TosaFloat16Case
Source§impl Debug for TosaFloat16Case
impl Debug for TosaFloat16Case
impl Eq for TosaFloat16Case
Source§impl PartialEq for TosaFloat16Case
impl PartialEq for TosaFloat16Case
Source§fn eq(&self, other: &TosaFloat16Case) -> bool
fn eq(&self, other: &TosaFloat16Case) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TosaFloat16Case
Auto Trait Implementations§
impl Freeze for TosaFloat16Case
impl RefUnwindSafe for TosaFloat16Case
impl Send for TosaFloat16Case
impl Sync for TosaFloat16Case
impl Unpin for TosaFloat16Case
impl UnsafeUnpin for TosaFloat16Case
impl UnwindSafe for TosaFloat16Case
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