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_47_f32_outbf16 | |
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_47_f32_outbf16')
4 files changed, 179 insertions, 0 deletions
diff --git a/operators/type_conversion/cast/cast_47_f32_outbf16/Conformance-result-0.json b/operators/type_conversion/cast/cast_47_f32_outbf16/Conformance-result-0.json new file mode 100644 index 000000000..a7a028214 --- /dev/null +++ b/operators/type_conversion/cast/cast_47_f32_outbf16/Conformance-result-0.json @@ -0,0 +1,52 @@ +{ + "type": "float32", + "data": [ + -0.5546875, + 0.05078125, + 0.9453125, + 1.5390625, + 1.6796875, + 0.0145263671875, + 0.0810546875, + 1.1953125, + -0.7421875, + 1.34375, + -0.0233154296875, + -1.53125, + -1.7109375, + 1.3671875, + -1.7734375, + -0.875, + -0.66015625, + -1.3046875, + -0.7421875, + 0.96875, + -1.9375, + 1.3046875, + 1.421875, + -0.5078125, + -1.3828125, + 0.40234375, + -1.515625, + -0.5390625, + 1.828125, + 1.9765625, + 1.0859375, + -0.75390625, + 0.75, + 0.8203125, + -0.447265625, + 0.5625, + -1.953125, + -1.15625, + 0.10009765625, + -1.34375, + -1.3359375, + 1.34375, + 1.953125, + 0.2236328125, + 1.3515625, + 1.9609375, + -1.4296875 + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_47_f32_outbf16/desc.json b/operators/type_conversion/cast/cast_47_f32_outbf16/desc.json new file mode 100644 index 000000000..d418e4060 --- /dev/null +++ b/operators/type_conversion/cast/cast_47_f32_outbf16/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_47_f32_outbf16/input-0.json b/operators/type_conversion/cast/cast_47_f32_outbf16/input-0.json new file mode 100644 index 000000000..389819b54 --- /dev/null +++ b/operators/type_conversion/cast/cast_47_f32_outbf16/input-0.json @@ -0,0 +1,52 @@ +{ + "type": "float32", + "data": [ + -0.557370662689209, + 0.050956979393959045, + 0.9468227624893188, + 1.5456115007400513, + 1.684228777885437, + 0.014531700871884823, + 0.0811004564166069, + 1.1994816064834595, + -0.7421972155570984, + 1.349529504776001, + -0.023433413356542587, + -1.536573052406311, + -1.7117633819580078, + 1.3679728507995605, + -1.7777283191680908, + -0.8775542378425598, + -0.6634798645973206, + -1.3080222606658936, + -0.7444265484809875, + 0.9707702398300171, + -1.9412686824798584, + 1.3086936473846436, + 1.426192045211792, + -0.5109537243843079, + -1.3855483531951904, + 0.40336161851882935, + -1.521309733390808, + -0.5403225421905518, + 1.8337167501449585, + 1.9818578958511353, + 1.0884195566177368, + -0.75615394115448, + 0.7506601810455322, + 0.8216254711151123, + -0.44863322377204895, + 0.5635545253753662, + -1.9570894241333008, + -1.1637693643569946, + 0.10035321116447449, + -1.3449947834014893, + -1.3363724946975708, + 1.3452171087265015, + 1.9565320014953613, + 0.2238777130842209, + 1.356278896331787, + 1.9612866640090942, + -1.4336163997650146 + ] +}
\ No newline at end of file diff --git a/operators/type_conversion/cast/cast_47_f32_outbf16/test.json b/operators/type_conversion/cast/cast_47_f32_outbf16/test.json new file mode 100644 index 000000000..000587416 --- /dev/null +++ b/operators/type_conversion/cast/cast_47_f32_outbf16/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: [ + 47 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 47 + ], + type: "BF16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |