aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion/cast/cast_25x20_bf16_outi8
diff options
context:
space:
mode:
authorJames Ward <james.ward@arm.com>2023-01-31 12:20:46 +0000
committerEric Kunze <eric.kunze@arm.com>2023-02-02 22:02:40 +0000
commitde1c2ce9e0710f39464069d880fac7bb9ec24d1a (patch)
tree795ca43d4958ce877b7acad79931cdbfeaa4970d /operators/type_conversion/cast/cast_25x20_bf16_outi8
parentee8287e7d32a98f5e6197a361702bfc07e6efd91 (diff)
downloadconformance_tests-de1c2ce9e0710f39464069d880fac7bb9ec24d1a.tar.gz
Create MI tests for Type Conversion: CAST
Signed-off-by: James Ward <james.ward@arm.com> Change-Id: I2faca325583245248e7043cf3359e696ececac19
Diffstat (limited to 'operators/type_conversion/cast/cast_25x20_bf16_outi8')
-rw-r--r--operators/type_conversion/cast/cast_25x20_bf16_outi8/Conformance-result-0.json555
-rw-r--r--operators/type_conversion/cast/cast_25x20_bf16_outi8/desc.json23
-rw-r--r--operators/type_conversion/cast/cast_25x20_bf16_outi8/input-0.json555
-rw-r--r--operators/type_conversion/cast/cast_25x20_bf16_outi8/test.json54
4 files changed, 1187 insertions, 0 deletions
diff --git a/operators/type_conversion/cast/cast_25x20_bf16_outi8/Conformance-result-0.json b/operators/type_conversion/cast/cast_25x20_bf16_outi8/Conformance-result-0.json
new file mode 100644
index 000000000..934962b3f
--- /dev/null
+++ b/operators/type_conversion/cast/cast_25x20_bf16_outi8/Conformance-result-0.json
@@ -0,0 +1,555 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ 2,
+ 0,
+ 1,
+ -2,
+ -1,
+ 0,
+ 2,
+ -1,
+ 1,
+ 1,
+ -2,
+ -1,
+ -1,
+ 0,
+ 1,
+ 0,
+ -1,
+ 1,
+ 0,
+ 0
+ ],
+ [
+ 0,
+ -1,
+ 1,
+ 0,
+ -1,
+ -1,
+ 0,
+ 0,
+ -1,
+ 1,
+ 1,
+ -2,
+ 1,
+ 0,
+ 2,
+ -1,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000000..d418e4060
--- /dev/null
+++ b/operators/type_conversion/cast/cast_25x20_bf16_outi8/desc.json
@@ -0,0 +1,23 @@
+{
+ "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": 0,
+ "expected_failure": false,
+ "expected_result_file": [
+ "Conformance-result-0.npy"
+ ],
+ "profile": [
+ "tosa-mi"
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/cast/cast_25x20_bf16_outi8/input-0.json b/operators/type_conversion/cast/cast_25x20_bf16_outi8/input-0.json
new file mode 100644
index 000000000..e042ac663
--- /dev/null
+++ b/operators/type_conversion/cast/cast_25x20_bf16_outi8/input-0.json
@@ -0,0 +1,555 @@
+{
+ "type": "float32",
+ "data": [
+ [
+ 1.796875,
+ -0.1474609375,
+ 0.51953125,
+ -1.90625,
+ -0.8828125,
+ 0.021484375,
+ 1.5390625,
+ -0.9140625,
+ 1.09375,
+ 0.6484375,
+ -1.53125,
+ -0.82421875,
+ -1.046875,
+ -0.2294921875,
+ 0.5390625,
+ -0.265625,
+ -1.015625,
+ 0.78125,
+ 0.3359375,
+ 0.0771484375
+ ],
+ [
+ 0.216796875,
+ -1.109375,
+ 0.71875,
+ -0.44921875,
+ -0.54296875,
+ -1.3984375,
+ 0.38671875,
+ 0.41015625,
+ -0.63671875,
+ 1.4375,
+ 1.375,
+ -1.5625,
+ 0.77734375,
+ -0.423828125,
+ 1.9921875,
+ -1.09375,
+ -0.875,
+ -0.2314453125,
+ -0.921875,
+ 0.765625
+ ],
+ [
+ -0.076171875,
+ -1.109375,
+ 0.025390625,
+ 1.5546875,
+ 1.1640625,
+ -0.004669189453125,
+ -0.84375,
+ -1.2734375,
+ 1.5078125,
+ 0.83984375,
+ 0.287109375,
+ 1.515625,
+ -1.5078125,
+ 0.7265625,
+ -1.1328125,
+ -1.515625,
+ -0.13671875,
+ -0.44921875,
+ 1.7578125,
+ -0.703125
+ ],
+ [
+ 1.2578125,
+ 0.9921875,
+ 0.66796875,
+ 1.6796875,
+ -0.3671875,
+ -0.439453125,
+ -1.3515625,
+ -0.89453125,
+ 1.515625,
+ -0.10205078125,
+ -0.6328125,
+ -1.1328125,
+ -0.06005859375,
+ 0.86328125,
+ -0.8515625,
+ 1.0234375,
+ 0.515625,
+ 1.1484375,
+ -0.99609375,
+ 0.5234375
+ ],
+ [
+ -1.3828125,
+ -0.54296875,
+ 0.89453125,
+ 0.5234375,
+ -1.2421875,
+ 1.4296875,
+ -1.78125,
+ 0.380859375,
+ 1.9296875,
+ 0.1259765625,
+ 1.1953125,
+ 0.37890625,
+ 1.125,
+ 0.62109375,
+ 0.76171875,
+ -1.0859375,
+ 0.96484375,
+ -1.046875,
+ 1.921875,
+ -1.0859375
+ ],
+ [
+ -1.046875,
+ 1.4296875,
+ -1.0234375,
+ -0.5546875,
+ 0.85546875,
+ -1.359375,
+ -1.359375,
+ -0.054443359375,
+ -1.0234375,
+ -1.0546875,
+ -1.9609375,
+ -0.515625,
+ -0.7265625,
+ -1.875,
+ 0.484375,
+ 0.50390625,
+ -1.7109375,
+ -0.73046875,
+ 1.484375,
+ 0.328125
+ ],
+ [
+ -0.3515625,
+ -0.138671875,
+ -1.1640625,
+ 1.2421875,
+ 1.6484375,
+ 1.640625,
+ -1.1015625,
+ -0.75390625,
+ -1.3515625,
+ -0.76953125,
+ -0.66796875,
+ 0.53125,
+ -1.234375,
+ 1.671875,
+ -1.5859375,
+ -1.96875,
+ 1.4140625,
+ 0.8125,
+ -0.578125,
+ 0.380859375
+ ],
+ [
+ -1.1015625,
+ -1.3203125,
+ -0.115234375,
+ -0.5859375,
+ 0.458984375,
+ -1.125,
+ 0.6484375,
+ 1.0625,
+ -1.328125,
+ -1.8203125,
+ -0.2412109375,
+ 1.09375,
+ 0.6015625,
+ 0.8046875,
+ -0.38671875,
+ -1.0546875,
+ 0.126953125,
+ -1.1796875,
+ 0.90234375,
+ -1.2109375
+ ],
+ [
+ -0.83203125,
+ 0.026123046875,
+ -0.052978515625,
+ 0.40234375,
+ -0.25,
+ 1.671875,
+ 1.359375,
+ 1.515625,
+ 0.515625,
+ 0.5390625,
+ 0.435546875,
+ -0.259765625,
+ -0.7109375,
+ 0.3671875,
+ -1.890625,
+ -1.96875,
+ 1.40625,
+ -1.8125,
+ 0.09912109375,
+ 0.458984375
+ ],
+ [
+ -1.203125,
+ 1.578125,
+ -1.234375,
+ 1.53125,
+ 1.046875,
+ -1.03125,
+ -1.390625,
+ -0.734375,
+ -0.40625,
+ -1.015625,
+ 1.9921875,
+ -1.078125,
+ 1.3203125,
+ -1.359375,
+ 1.9140625,
+ -1.09375,
+ -0.3125,
+ 0.2333984375,
+ -1.515625,
+ 1.265625
+ ],
+ [
+ -0.8984375,
+ 0.1962890625,
+ 0.1982421875,
+ 0.41015625,
+ -1.7734375,
+ -1.3203125,
+ -1.3515625,
+ -0.7890625,
+ -1.4140625,
+ 1.6875,
+ 0.0517578125,
+ 0.494140625,
+ -0.56640625,
+ -0.89453125,
+ 0.0126953125,
+ -0.8203125,
+ -0.625,
+ -0.1884765625,
+ 0.0228271484375,
+ 1.9296875
+ ],
+ [
+ -1.1015625,
+ -0.0478515625,
+ -1.3984375,
+ -0.59765625,
+ 0.8671875,
+ -1.296875,
+ 0.32421875,
+ -0.33203125,
+ -1.7890625,
+ 1.7265625,
+ -0.34375,
+ 1.1328125,
+ -0.333984375,
+ 1.7421875,
+ -0.8359375,
+ -0.349609375,
+ 1.03125,
+ -0.625,
+ -0.5390625,
+ 1.9765625
+ ],
+ [
+ 0.2216796875,
+ 0.75390625,
+ 0.5703125,
+ 1.3046875,
+ 1.4453125,
+ 0.251953125,
+ -0.8203125,
+ -1.90625,
+ 0.45703125,
+ 1.296875,
+ -0.197265625,
+ -1.3359375,
+ -0.84765625,
+ 0.039794921875,
+ 1.34375,
+ -1.3125,
+ 0.447265625,
+ 1.0078125,
+ 1.7421875,
+ -1.53125
+ ],
+ [
+ 1.703125,
+ 0.404296875,
+ 1.0625,
+ -1.78125,
+ 0.0245361328125,
+ 0.490234375,
+ -0.76953125,
+ -0.271484375,
+ 0.216796875,
+ 0.2099609375,
+ -1.828125,
+ -0.2412109375,
+ -1.140625,
+ 1.6640625,
+ 1.90625,
+ -0.80078125,
+ -1.296875,
+ -1.1171875,
+ -0.0888671875,
+ 1.4921875
+ ],
+ [
+ 0.00014400482177734375,
+ -1.7734375,
+ -1.8359375,
+ -1.0859375,
+ 1.3671875,
+ 0.484375,
+ 0.25,
+ -0.72265625,
+ 1.7109375,
+ -0.671875,
+ 1.3359375,
+ 1.578125,
+ -0.06640625,
+ 1.5703125,
+ -0.890625,
+ 0.6328125,
+ -1.640625,
+ -0.10400390625,
+ -1.125,
+ -1.7421875
+ ],
+ [
+ -1.984375,
+ -0.69921875,
+ 0.357421875,
+ -0.1787109375,
+ -0.7890625,
+ 1.9609375,
+ 1.7578125,
+ -1.4921875,
+ -0.337890625,
+ 0.59375,
+ 0.93359375,
+ -0.53125,
+ 0.984375,
+ -1.5,
+ -0.671875,
+ 0.86328125,
+ 0.5,
+ 1.34375,
+ -1.8125,
+ -1.296875
+ ],
+ [
+ -1.8046875,
+ -1.2265625,
+ -1.9765625,
+ 0.0167236328125,
+ 0.11279296875,
+ 0.62890625,
+ -0.458984375,
+ -1.984375,
+ 0.6953125,
+ -1.78125,
+ 1.4609375,
+ -1.90625,
+ 0.12158203125,
+ 1.578125,
+ 0.2890625,
+ 0.43359375,
+ 0.72265625,
+ -1.5078125,
+ 0.69921875,
+ 1.515625
+ ],
+ [
+ 1.890625,
+ -0.2275390625,
+ -0.62109375,
+ 1.0078125,
+ 0.1708984375,
+ -0.96875,
+ -1.3046875,
+ -1.3125,
+ -0.1630859375,
+ -1.3125,
+ -1.9140625,
+ -1.7890625,
+ 1.71875,
+ -1.703125,
+ -1.703125,
+ -0.1943359375,
+ -1.015625,
+ 1.84375,
+ 1.640625,
+ -0.380859375
+ ],
+ [
+ -0.2041015625,
+ -0.498046875,
+ -1.84375,
+ -0.828125,
+ -1.5078125,
+ -1.5859375,
+ 0.2431640625,
+ -1.6015625,
+ -1.5859375,
+ -0.07763671875,
+ -0.23046875,
+ -1.4453125,
+ -1.9765625,
+ -1.2265625,
+ -1.0546875,
+ 1.1953125,
+ 1.65625,
+ -0.375,
+ -0.37890625,
+ 0.84765625
+ ],
+ [
+ 0.50390625,
+ -1.2578125,
+ -1.5625,
+ -0.2490234375,
+ 0.2578125,
+ -1.4375,
+ -0.82421875,
+ -0.7734375,
+ -0.953125,
+ -0.15625,
+ 0.609375,
+ 0.037353515625,
+ -1.1875,
+ -1.5859375,
+ 1.28125,
+ -0.08251953125,
+ -1.75,
+ -0.96484375,
+ 1.2109375,
+ 1.0
+ ],
+ [
+ 1.5,
+ 0.408203125,
+ -0.306640625,
+ -0.29296875,
+ -1.21875,
+ 0.6015625,
+ 0.33984375,
+ -1.375,
+ 1.5390625,
+ -0.5234375,
+ -1.796875,
+ -0.6875,
+ 1.4765625,
+ 1.6640625,
+ -0.038330078125,
+ 1.8203125,
+ 1.5,
+ 1.296875,
+ 1.4375,
+ -0.470703125
+ ],
+ [
+ 1.0234375,
+ 0.30859375,
+ 0.875,
+ -1.28125,
+ 0.921875,
+ 1.828125,
+ -0.7890625,
+ 1.9375,
+ -0.486328125,
+ -1.1953125,
+ -1.546875,
+ 1.1328125,
+ 0.21875,
+ -0.76953125,
+ 0.43359375,
+ -0.66796875,
+ -0.2060546875,
+ 1.4453125,
+ 0.671875,
+ 1.046875
+ ],
+ [
+ 0.33203125,
+ 1.9609375,
+ -1.03125,
+ -0.94921875,
+ -1.625,
+ 0.2158203125,
+ 0.453125,
+ 0.90234375,
+ -0.65625,
+ -1.9453125,
+ 0.52734375,
+ 1.9921875,
+ -0.8203125,
+ -1.2578125,
+ -0.87109375,
+ -0.296875,
+ -0.99609375,
+ -0.609375,
+ 0.55078125,
+ -0.6171875
+ ],
+ [
+ -0.4140625,
+ -1.8359375,
+ 1.6640625,
+ -0.37109375,
+ -0.68359375,
+ -1.6484375,
+ 0.53515625,
+ 1.453125,
+ -1.828125,
+ -1.4140625,
+ -1.4140625,
+ 0.408203125,
+ 1.6796875,
+ -0.248046875,
+ -0.62109375,
+ 1.0625,
+ 0.96875,
+ -1.0078125,
+ -1.3515625,
+ -0.56640625
+ ],
+ [
+ 1.1015625,
+ 0.77734375,
+ 0.66015625,
+ 1.3125,
+ -0.890625,
+ -0.640625,
+ -1.828125,
+ 1.46875,
+ 0.328125,
+ -0.8046875,
+ -1.71875,
+ 0.890625,
+ 0.9921875,
+ 0.6640625,
+ -1.1796875,
+ 1.6484375,
+ 1.0078125,
+ 0.62890625,
+ 0.6015625,
+ 1.6171875
+ ]
+ ]
+} \ No newline at end of file
diff --git a/operators/type_conversion/cast/cast_25x20_bf16_outi8/test.json b/operators/type_conversion/cast/cast_25x20_bf16_outi8/test.json
new file mode 100644
index 000000000..3f738ebbc
--- /dev/null
+++ b/operators/type_conversion/cast/cast_25x20_bf16_outi8/test.json
@@ -0,0 +1,54 @@
+{
+ version: {
+ _major: 0,
+ _minor: 51,
+ _patch: 0,
+ _draft: true
+ },
+ regions: [
+ {
+ name: "main",
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 25,
+ 20
+ ],
+ type: "BF16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 25,
+ 20
+ ],
+ type: "INT8"
+ }
+ ],
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ]
+ }
+ ]
+}