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_53_bf16_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_53_bf16_outf32')
4 files changed, 191 insertions, 0 deletions
diff --git a/operators/type_conversion/cast/cast_53_bf16_outf32/Conformance-result-0.json b/operators/type_conversion/cast/cast_53_bf16_outf32/Conformance-result-0.json new file mode 100644 index 000000000..6c4642402 --- /dev/null +++ b/operators/type_conversion/cast/cast_53_bf16_outf32/Conformance-result-0.json @@ -0,0 +1,58 @@ +{ + "type": "float32", + "data": [ + -1.578125, + -1.7265625, + 0.376953125, + -1.4140625, + 1.296875, + -0.7578125, + -1.421875, + 1.6796875, + -1.3359375, + -0.859375, + -1.3828125, + -1.53125, + -1.9140625, + -1.7734375, + -1.296875, + -1.78125, + 0.36328125, + 0.72265625, + -0.423828125, + -0.7265625, + 0.01806640625, + 1.5, + 1.3984375, + -1.8203125, + -1.2734375, + -1.046875, + -1.0, + 0.283203125, + -0.333984375, + -1.796875, + -0.50390625, + 0.0947265625, + -1.5859375, + 1.328125, + -1.7890625, + 1.6953125, + -1.6015625, + 1.3671875, + 1.609375, + 1.9140625, + 1.203125, + 1.1171875, + 0.56640625, + 1.109375, + -1.4609375, + 0.1435546875, + 0.056884765625, + 1.4296875, + -0.1484375, + -0.458984375, + 0.5546875, + -0.93359375, + -1.4375 + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_53_bf16_outf32/desc.json b/operators/type_conversion/cast/cast_53_bf16_outf32/desc.json new file mode 100644 index 000000000..d418e4060 --- /dev/null +++ b/operators/type_conversion/cast/cast_53_bf16_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_53_bf16_outf32/input-0.json b/operators/type_conversion/cast/cast_53_bf16_outf32/input-0.json new file mode 100644 index 000000000..6c4642402 --- /dev/null +++ b/operators/type_conversion/cast/cast_53_bf16_outf32/input-0.json @@ -0,0 +1,58 @@ +{ + "type": "float32", + "data": [ + -1.578125, + -1.7265625, + 0.376953125, + -1.4140625, + 1.296875, + -0.7578125, + -1.421875, + 1.6796875, + -1.3359375, + -0.859375, + -1.3828125, + -1.53125, + -1.9140625, + -1.7734375, + -1.296875, + -1.78125, + 0.36328125, + 0.72265625, + -0.423828125, + -0.7265625, + 0.01806640625, + 1.5, + 1.3984375, + -1.8203125, + -1.2734375, + -1.046875, + -1.0, + 0.283203125, + -0.333984375, + -1.796875, + -0.50390625, + 0.0947265625, + -1.5859375, + 1.328125, + -1.7890625, + 1.6953125, + -1.6015625, + 1.3671875, + 1.609375, + 1.9140625, + 1.203125, + 1.1171875, + 0.56640625, + 1.109375, + -1.4609375, + 0.1435546875, + 0.056884765625, + 1.4296875, + -0.1484375, + -0.458984375, + 0.5546875, + -0.93359375, + -1.4375 + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_53_bf16_outf32/test.json b/operators/type_conversion/cast/cast_53_bf16_outf32/test.json new file mode 100644 index 000000000..31fd8f4ef --- /dev/null +++ b/operators/type_conversion/cast/cast_53_bf16_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: [ + 53 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 53 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |