diff options
author | James Ward <james.ward@arm.com> | 2022-12-14 17:32:32 +0000 |
---|---|---|
committer | James Ward <james.ward@arm.com> | 2022-12-14 17:32:32 +0000 |
commit | 7125e9b2ef21580734f6ec654f6c47da6d870ebe (patch) | |
tree | 37b2efd772f64df271fe7cc7700b6b2f83ea41e5 /operators/activation/sigmoid/sigmoid_ERRORIF_WrongInputList_11x10_bf16 | |
parent | 9438531ceffbf9f8c6c123b93ec81656f6685fef (diff) | |
download | conformance_tests-7125e9b2ef21580734f6ec654f6c47da6d870ebe.tar.gz |
Create MI tests for Activation: SIGMOID, TANH
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I9e8fb2ab4b4227ffb68a2a216265f5d9425b0178
Diffstat (limited to 'operators/activation/sigmoid/sigmoid_ERRORIF_WrongInputList_11x10_bf16')
3 files changed, 207 insertions, 0 deletions
diff --git a/operators/activation/sigmoid/sigmoid_ERRORIF_WrongInputList_11x10_bf16/desc.json b/operators/activation/sigmoid/sigmoid_ERRORIF_WrongInputList_11x10_bf16/desc.json new file mode 100644 index 000000000..b4526f1cb --- /dev/null +++ b/operators/activation/sigmoid/sigmoid_ERRORIF_WrongInputList_11x10_bf16/desc.json @@ -0,0 +1,21 @@ +{ + "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": "Op input list does not match expected input", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/activation/sigmoid/sigmoid_ERRORIF_WrongInputList_11x10_bf16/input-0.json b/operators/activation/sigmoid/sigmoid_ERRORIF_WrongInputList_11x10_bf16/input-0.json new file mode 100644 index 000000000..0ade1e8bb --- /dev/null +++ b/operators/activation/sigmoid/sigmoid_ERRORIF_WrongInputList_11x10_bf16/input-0.json @@ -0,0 +1,137 @@ +{ + "type": "float32", + "data": [ + [ + 0.474609375, + 0.24609375, + 0.6796875, + 0.8515625, + 0.08154296875, + 0.81640625, + 0.8515625, + 0.96484375, + 0.82421875, + 0.55078125 + ], + [ + 0.06982421875, + 0.07421875, + 0.1962890625, + 0.4453125, + 0.953125, + 0.1748046875, + 0.53515625, + 0.99609375, + 0.01373291015625, + 0.046875 + ], + [ + 0.26953125, + 0.224609375, + 0.498046875, + 0.419921875, + 0.58203125, + 0.146484375, + 0.68359375, + 0.2138671875, + 0.451171875, + 0.033203125 + ], + [ + 0.796875, + 0.625, + 0.2080078125, + 0.6015625, + 0.435546875, + 0.82421875, + 0.98046875, + 0.12451171875, + 0.48828125, + 0.2578125 + ], + [ + 0.74609375, + 0.034423828125, + 0.54296875, + 0.85546875, + 0.388671875, + 0.8359375, + 0.146484375, + 0.91796875, + 0.7890625, + 0.390625 + ], + [ + 0.1298828125, + 0.51953125, + 0.66796875, + 0.12890625, + 0.9296875, + 0.76171875, + 0.94921875, + 0.298828125, + 0.431640625, + 0.2392578125 + ], + [ + 0.2734375, + 0.14453125, + 0.125, + 0.66796875, + 0.15625, + 0.1328125, + 0.53125, + 0.703125, + 0.77734375, + 0.578125 + ], + [ + 0.201171875, + 0.5703125, + 0.625, + 0.2578125, + 0.1435546875, + 0.921875, + 0.095703125, + 0.275390625, + 0.2314453125, + 0.890625 + ], + [ + 0.5, + 0.953125, + 0.828125, + 0.75390625, + 0.1767578125, + 0.34375, + 0.81640625, + 0.98046875, + 0.875, + 0.9453125 + ], + [ + 0.640625, + 0.482421875, + 0.51171875, + 0.45703125, + 0.154296875, + 0.3046875, + 0.09033203125, + 0.08837890625, + 0.310546875, + 0.6640625 + ], + [ + 0.61328125, + 0.55859375, + 0.74609375, + 0.421875, + 0.44140625, + 0.515625, + 0.06640625, + 0.578125, + 0.75, + 0.26171875 + ] + ] +}
\ No newline at end of file diff --git a/operators/activation/sigmoid/sigmoid_ERRORIF_WrongInputList_11x10_bf16/test.json b/operators/activation/sigmoid/sigmoid_ERRORIF_WrongInputList_11x10_bf16/test.json new file mode 100644 index 000000000..35394d779 --- /dev/null +++ b/operators/activation/sigmoid/sigmoid_ERRORIF_WrongInputList_11x10_bf16/test.json @@ -0,0 +1,49 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "SIGMOID", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11, + 10 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 11, + 10 + ], + type: "BF16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |