pub struct TosaFloat32Case {
pub name: &'static str,
pub artifact: &'static [u8],
pub inputs: &'static [Float32Tensor],
pub outputs: &'static [Float32Tensor],
pub absolute_tolerance: f32,
pub relative_tolerance: f32,
}Expand description
A stable TOSA graph and FP32 numerical oracle shared by host backends.
Fields§
§name: &'static strDiagnostic case name.
artifact: &'static [u8]TOSA 1.0 FlatBuffer payload.
inputs: &'static [Float32Tensor]Block inputs in declared slot order.
outputs: &'static [Float32Tensor]Block outputs in declared slot order.
absolute_tolerance: f32Maximum absolute error accepted for finite values.
relative_tolerance: f32Maximum relative error accepted for finite values.
Implementations§
Source§impl TosaFloat32Case
impl TosaFloat32Case
Sourcepub fn output_matches(&self, output: usize, actual: &[f32]) -> bool
pub fn output_matches(&self, output: usize, actual: &[f32]) -> bool
Compare one backend output with this case’s selected output oracle.
Trait Implementations§
Source§impl Clone for TosaFloat32Case
impl Clone for TosaFloat32Case
impl Copy for TosaFloat32Case
Source§impl Debug for TosaFloat32Case
impl Debug for TosaFloat32Case
Source§impl PartialEq for TosaFloat32Case
impl PartialEq for TosaFloat32Case
impl StructuralPartialEq for TosaFloat32Case
Auto Trait Implementations§
impl Freeze for TosaFloat32Case
impl RefUnwindSafe for TosaFloat32Case
impl Send for TosaFloat32Case
impl Sync for TosaFloat32Case
impl Unpin for TosaFloat32Case
impl UnsafeUnpin for TosaFloat32Case
impl UnwindSafe for TosaFloat32Case
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