diff options
author | James Ward <james.ward@arm.com> | 2023-01-31 12:20:46 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2023-02-02 22:02:40 +0000 |
commit | de1c2ce9e0710f39464069d880fac7bb9ec24d1a (patch) | |
tree | 795ca43d4958ce877b7acad79931cdbfeaa4970d /operators/type_conversion/cast/cast_37_i8_outf32 | |
parent | ee8287e7d32a98f5e6197a361702bfc07e6efd91 (diff) | |
download | conformance_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_37_i8_outf32')
4 files changed, 159 insertions, 0 deletions
diff --git a/operators/type_conversion/cast/cast_37_i8_outf32/Conformance-result-0.json b/operators/type_conversion/cast/cast_37_i8_outf32/Conformance-result-0.json new file mode 100644 index 000000000..5f14ea388 --- /dev/null +++ b/operators/type_conversion/cast/cast_37_i8_outf32/Conformance-result-0.json @@ -0,0 +1,42 @@ +{ + "type": "float32", + "data": [ + 54.0, + 40.0, + 70.0, + -126.0, + 93.0, + 61.0, + 61.0, + -28.0, + 77.0, + -31.0, + -116.0, + 104.0, + -68.0, + -102.0, + 31.0, + -69.0, + 91.0, + -15.0, + -127.0, + 115.0, + 3.0, + -61.0, + 45.0, + 7.0, + -121.0, + 66.0, + -26.0, + 51.0, + 101.0, + 28.0, + 43.0, + -63.0, + -68.0, + -22.0, + 90.0, + 6.0, + -39.0 + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_37_i8_outf32/desc.json b/operators/type_conversion/cast/cast_37_i8_outf32/desc.json new file mode 100644 index 000000000..d418e4060 --- /dev/null +++ b/operators/type_conversion/cast/cast_37_i8_outf32/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_37_i8_outf32/input-0.json b/operators/type_conversion/cast/cast_37_i8_outf32/input-0.json new file mode 100644 index 000000000..11d74a8e8 --- /dev/null +++ b/operators/type_conversion/cast/cast_37_i8_outf32/input-0.json @@ -0,0 +1,42 @@ +{ + "type": "int32", + "data": [ + 54, + 40, + 70, + -126, + 93, + 61, + 61, + -28, + 77, + -31, + -116, + 104, + -68, + -102, + 31, + -69, + 91, + -15, + -127, + 115, + 3, + -61, + 45, + 7, + -121, + 66, + -26, + 51, + 101, + 28, + 43, + -63, + -68, + -22, + 90, + 6, + -39 + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_37_i8_outf32/test.json b/operators/type_conversion/cast/cast_37_i8_outf32/test.json new file mode 100644 index 000000000..f96c13ece --- /dev/null +++ b/operators/type_conversion/cast/cast_37_i8_outf32/test.json @@ -0,0 +1,52 @@ +{ + 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: [ + 37 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 37 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |