Expand description
Device-neutral numerical acceptance cases for hardware backends.
Each case couples a stable TOSA artifact with exact input shapes and a numerical oracle. Host backends consume the same bytes and values, so a provider cannot quietly substitute a backend-specific graph while claiming cross-device equivalence.
Structs§
- Bfloat16
Tensor - One immutable bfloat16 tensor represented by exact storage bits.
- Float16
Tensor - One immutable IEEE-754 binary16 tensor in a numerical acceptance case.
- Float32
Tensor - One immutable FP32 tensor in a numerical acceptance case.
- Int32
Tensor - One immutable INT32 tensor produced by an integer-profile acceptance case.
- Packed
Tensor - One immutable packed low-precision tensor.
- Tosa
Bfloat16 Case - A stable TOSA EXT-BF16 graph and bit-exact bfloat16 numerical oracle.
- Tosa
Float16 Case - A stable TOSA graph and binary16 numerical oracle shared by host backends.
- Tosa
Float32 Case - A stable TOSA graph and FP32 numerical oracle shared by host backends.
- Tosa
Fp8To Bfloat16 Case - A stable explicit FP8 → BF16 CAST with a bit-exact output oracle.
- Tosa
Fp32 Operator Case - One FP32-tier operator case shared by host backends: a stable TOSA 1.0 graph over FP32 tensors with BOOL and INT32 auxiliaries, and a numerical oracle for its single output.
- Tosa
Int8 Matmul Case - A stable TOSA INT8 matrix multiplication with exact INT32 accumulation.
- Tosa
Int32 ToInt8 Rescale Case - A stable TOSA INT32-to-INT8 RESCALE with exact fixed-point rounding and saturation.
- Tosa
Packed Case - A stable TOSA graph and packed low-precision oracle shared by host backends.
- Tosa
RawCase - One mixed-type TOSA operator case with a numerical output oracle.
Enums§
- Fp32
Tier Tensor - Raw tensor storage used by the shared FP32-tier operator cases.
- PackedD
Type - Packed scalar encoding used by a low-precision TOSA acceptance case.
- RawTensor
- Raw tensor storage used by mixed-type Hexagon operator-parity cases.
Constants§
- ADD_
FP16 - Binary16 broadcast addition over
[2, 1]and[1, 3]inputs. - CAST_
FP8E4 M3_ TO_ BF16 - Explicit FP8 E4M3 → BF16 CAST spanning signed zeros, subnormals, ordinary values, finite maximum, and NaN. All 256 byte encodings repeat four times across one XDNA conversion tile.
- CAST_
FP8E5 M2_ TO_ BF16 - Explicit FP8 E5M2 → BF16 CAST spanning signed zeros, subnormals, one, finite maximum, infinity, and NaN. All 256 byte encodings repeat four times across one XDNA conversion tile.
- FP32_
BINARY_ CASES - FP32 broadcast binary operators over
[2, 1]and[1, 3]inputs producing[2, 3]. - FP32_
LOGICAL_ CASES - FP32 comparisons, BOOL logic, and selection.
- FP32_
MOVEMENT_ CASES - Static FP32 constants and data-movement operators.
- FP32_
OPERATOR_ CASE_ GROUPS - Every FP32-tier operator case group, for backends that iterate the whole tier.
- FP32_
REDUCTION_ CASES - FP32 reductions and INT32 argmax over a
[2, 3]input along axis 1. - FP32_
UNARY_ CASES - FP32 unary and activation operators over
[0.5, 1, 2, 4]. - HEXAGON_
LOGICAL_ CASES - Mixed BOOL/FP16 comparison, logical, and selection cases.
- HEXAGON_
MOVEMENT_ CASES - Static constants and FP16 data-movement cases.
- HEXAGON_
REDUCTION_ CASES - FP16 reductions and INT32 argmax over a two-row input.
- HEXAGON_
UNARY_ FP16_ CASES - FP16 unary and activation cases supported by the QNN HTP operator package.
- IDENTITY_
EDGES_ FP16 - Binary16 identity over NaN, infinities, signed zeros, a subnormal, and finite values.
- IDENTITY_
EDGES_ FP32 - FP32 identity over NaN, infinities, signed zeros, a subnormal, and ordinary finite values.
- IDENTITY_
FP8E4 M3 - FP8 E4M3 identity over signed zeros, subnormals, ordinary values, finite maximum, and NaN.
- IDENTITY_
FP8E5 M2 - FP8 E5M2 identity over signed zeros, subnormals, one, finite maximum, infinity, and NaN.
- IDENTITY_
INT4 - Packed INT4 identity spanning the TOSA-defined finite range.
- IDENTITY_
INT8 - INT8 identity spanning negative, zero, and positive values.
- LINEAR_
TANH_ FP32 - Three-operator FP32 graph:
tanh(x · w + bias)with constant zero points and a[1, 1, 2]bias broadcast over the[1, 2, 2]product. Inputs are the mock classifier’s features and weights; the oracle is evaluated in binary64 and rounded. - MATMUL_
FP16 - Binary16 batched matrix multiplication with non-square operands.
- MATMUL_
FP32 - FP32 batched matrix multiplication with non-square operands.
- MATMUL_
INT8 - Non-square INT8 batched matrix multiplication with nonzero zero points and INT32 accumulation.
- MAXIMUM_
FP16 - Binary16 broadcast maximum over
[2, 1]and[1, 3]inputs. - MAX_
POOL2D_ BF16 - BF16 two-channel NHWC max pooling with a 2x2 kernel, stride two, zero padding, and an exact integer-valued oracle.
- MAX_
POOL2D_ FP16 - Binary16 two-channel NHWC max pooling with a 2x2 kernel and stride two.
- MAX_
POOL2D_ FP32 - FP32 two-channel NHWC max pooling with a 2x2 kernel and stride two.
- MINIMUM_
FP16 - Binary16 broadcast minimum over
[2, 1]and[1, 3]inputs. - MOCK_
LINEAR_ CLASSIFIER_ FP16 - Two-sample, three-feature FP16 linear classifier with a direct-bound 3x2 weight matrix.
- MUL_
FP16 - Binary16 broadcast multiplication with a compile-time zero shift.
- POW_
FP16 - Binary16 broadcast power over
[2, 1]and[1, 3]inputs. - QUANTIZED_
CLASSIFIER_ INT8 - Exact INT8 quantized linear classifier: two samples, three features, two classes, INT32 logits with unambiguous per-sample argmax winners.
- RESCALE_
INT32_ TO_ INT8 - Signed scale32 RESCALE covering ties, negative values, saturation, and a nonzero output point.
- SUB_
FP16 - Binary16 broadcast subtraction over
[2, 1]and[1, 3]inputs.