pub struct TosaBfloat16Case {
pub name: &'static str,
pub artifact: &'static [u8],
pub inputs: &'static [Bfloat16Tensor],
pub outputs: &'static [Bfloat16Tensor],
}Expand description
A stable TOSA EXT-BF16 graph and bit-exact bfloat16 numerical oracle.
Fields§
§name: &'static strDiagnostic case name.
artifact: &'static [u8]TOSA 1.0 FlatBuffer payload.
inputs: &'static [Bfloat16Tensor]Block inputs in declared slot order.
outputs: &'static [Bfloat16Tensor]Block outputs in declared slot order.
Implementations§
Source§impl TosaBfloat16Case
impl TosaBfloat16Case
Sourcepub fn output_matches(&self, output: usize, actual: &[u16]) -> bool
pub fn output_matches(&self, output: usize, actual: &[u16]) -> bool
Compare one backend output bit-for-bit, allowing only NaN payload canonicalization.
Trait Implementations§
Source§impl Clone for TosaBfloat16Case
impl Clone for TosaBfloat16Case
Source§fn clone(&self) -> TosaBfloat16Case
fn clone(&self) -> TosaBfloat16Case
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 TosaBfloat16Case
Source§impl Debug for TosaBfloat16Case
impl Debug for TosaBfloat16Case
impl Eq for TosaBfloat16Case
Source§impl PartialEq for TosaBfloat16Case
impl PartialEq for TosaBfloat16Case
Source§fn eq(&self, other: &TosaBfloat16Case) -> bool
fn eq(&self, other: &TosaBfloat16Case) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TosaBfloat16Case
Auto Trait Implementations§
impl Freeze for TosaBfloat16Case
impl RefUnwindSafe for TosaBfloat16Case
impl Send for TosaBfloat16Case
impl Sync for TosaBfloat16Case
impl Unpin for TosaBfloat16Case
impl UnsafeUnpin for TosaBfloat16Case
impl UnwindSafe for TosaBfloat16Case
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