aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2022-11-16 14:39:55 +0000
committerJeremy Johnson <jeremy.johnson@arm.com>2022-11-16 14:46:02 +0000
commit874bb4fe493b2958a21e9a84c22828e82d4ff167 (patch)
tree4e4a0e31a9ba5c912373ba3a0419c8c84b03688e /operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1
parent7596fd972b49fecfd1c0cc0a425a5d8c64e9c33c (diff)
downloadconformance_tests-874bb4fe493b2958a21e9a84c22828e82d4ff167.tar.gz
Updating conformance files for BF16 support
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: Iabe3a47a30eaea83f29b160ae2227e57ec22e96d
Diffstat (limited to 'operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1')
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1/desc.json22
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1/input-0.json61
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1/test.json84
3 files changed, 167 insertions, 0 deletions
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1/desc.json b/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1/desc.json
new file mode 100644
index 000000000..992afc22b
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1/desc.json
@@ -0,0 +1,22 @@
+{
+ "tosa_file": "test.json",
+ "ifm_name": [
+ "input-0"
+ ],
+ "ifm_file": [
+ "input-0.npy"
+ ],
+ "ofm_name": [
+ "result-0"
+ ],
+ "ofm_file": [
+ "result-0.npy"
+ ],
+ "expected_return_code": 2,
+ "expected_failure": true,
+ "expected_failure_desc": "Input data type not supported for this operator",
+ "profile": [
+ "tosa-bi",
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1/input-0.json b/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1/input-0.json
new file mode 100644
index 000000000..58b32d52e
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1/input-0.json
@@ -0,0 +1,61 @@
+{
+ "type": "bool",
+ "data": [
+ [
+ false,
+ true,
+ false,
+ false,
+ false,
+ true,
+ false,
+ true,
+ false,
+ true,
+ false,
+ true
+ ],
+ [
+ false,
+ true,
+ true,
+ false,
+ false,
+ false,
+ true,
+ true,
+ true,
+ true,
+ true,
+ false
+ ],
+ [
+ false,
+ false,
+ true,
+ false,
+ true,
+ false,
+ false,
+ true,
+ false,
+ false,
+ false,
+ false
+ ],
+ [
+ false,
+ false,
+ true,
+ true,
+ true,
+ true,
+ false,
+ false,
+ true,
+ true,
+ true,
+ false
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1/test.json
new file mode 100644
index 000000000..c81294e75
--- /dev/null
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1/test.json
@@ -0,0 +1,84 @@
+{
+ version: {
+ _major: 0,
+ _minor: 41,
+ _patch: 0,
+ _draft: true
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: -28,
+ multiplier: [
+ 1945640576,
+ 1772247552,
+ 2020305024,
+ 1804184448,
+ 2131625984,
+ 2146599168,
+ 1768162560,
+ 1974912640,
+ 2118920832,
+ 1971165056,
+ 1472555392,
+ 1848440832
+ ],
+ shift: [
+ 23,
+ 25,
+ 23,
+ 24,
+ 27,
+ 25,
+ 25,
+ 23,
+ 26,
+ 26,
+ 23,
+ 23
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 4,
+ 12
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 4,
+ 12
+ ],
+ type: "INT8"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+}