pub struct TosaInt32ToInt8RescaleCase {
pub name: &'static str,
pub artifact: &'static [u8],
pub input: Int32Tensor,
pub multiplier: i32,
pub shift: i8,
pub output_zero_point: i8,
pub output: PackedTensor,
}Expand description
A stable TOSA INT32-to-INT8 RESCALE with exact fixed-point rounding and saturation.
Fields§
§name: &'static strDiagnostic case name.
artifact: &'static [u8]TOSA 1.0 FlatBuffer payload.
input: Int32TensorSingle graph-visible INT32 input.
multiplier: i32Non-negative scale32 fixed-point multiplier.
shift: i8TOSA scale32 right shift.
output_zero_point: i8Signed INT8 zero point added after scaling.
output: PackedTensorExact signed INT8 output storage.
Implementations§
Source§impl TosaInt32ToInt8RescaleCase
impl TosaInt32ToInt8RescaleCase
Sourcepub fn output_matches(self, actual: &[u8]) -> bool
pub fn output_matches(self, actual: &[u8]) -> bool
Compare backend output bytes exactly with the signed INT8 oracle.
Trait Implementations§
Source§impl Clone for TosaInt32ToInt8RescaleCase
impl Clone for TosaInt32ToInt8RescaleCase
Source§fn clone(&self) -> TosaInt32ToInt8RescaleCase
fn clone(&self) -> TosaInt32ToInt8RescaleCase
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 TosaInt32ToInt8RescaleCase
Source§impl Debug for TosaInt32ToInt8RescaleCase
impl Debug for TosaInt32ToInt8RescaleCase
impl Eq for TosaInt32ToInt8RescaleCase
Source§impl PartialEq for TosaInt32ToInt8RescaleCase
impl PartialEq for TosaInt32ToInt8RescaleCase
Source§fn eq(&self, other: &TosaInt32ToInt8RescaleCase) -> bool
fn eq(&self, other: &TosaInt32ToInt8RescaleCase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TosaInt32ToInt8RescaleCase
Auto Trait Implementations§
impl Freeze for TosaInt32ToInt8RescaleCase
impl RefUnwindSafe for TosaInt32ToInt8RescaleCase
impl Send for TosaInt32ToInt8RescaleCase
impl Sync for TosaInt32ToInt8RescaleCase
impl Unpin for TosaInt32ToInt8RescaleCase
impl UnsafeUnpin for TosaInt32ToInt8RescaleCase
impl UnwindSafe for TosaInt32ToInt8RescaleCase
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