diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-02-07 15:13:08 +0000 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-02-07 15:22:24 +0000 |
commit | 81e1634bb20b64da3647bd4c7e60e7f10f422272 (patch) | |
tree | b5de0533bbfc0588987d3237adce848e14b39762 /operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x4x2_f32 | |
parent | 1a93a54b3e0498fd5d57182098b953dca2e3b992 (diff) | |
download | conformance_tests-81e1634bb20b64da3647bd4c7e60e7f10f422272.tar.gz |
Regen various ERRORIF tests for tosa_mi after adjustment
NEGATE, TILE, REDUCE_MIN, REDUCE_MAX, RESIZE, SCATTER, GATHER
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I02a2a6591f82cf6975abc610c059912c97405c51
Diffstat (limited to 'operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x4x2_f32')
4 files changed, 213 insertions, 0 deletions
diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x4x2_f32/desc.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x4x2_f32/desc.json new file mode 100644 index 000000000..4517bc2ab --- /dev/null +++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x4x2_f32/desc.json @@ -0,0 +1,23 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0", + "input-1" + ], + "ifm_file": [ + "input-0.npy", + "input-1.npy" + ], + "ofm_name": [ + "result-0" + ], + "ofm_file": [ + "result-0.npy" + ], + "expected_return_code": 2, + "expected_failure": true, + "expected_failure_desc": "Output data type not supported for this configuration of operator", + "profile": [ + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x4x2_f32/input-0.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x4x2_f32/input-0.json new file mode 100644 index 000000000..c238214ef --- /dev/null +++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x4x2_f32/input-0.json @@ -0,0 +1,23 @@ +{ + "type": "float32", + "data": [ + [ + [ + 0.4627993702888489, + 0.3850894868373871 + ], + [ + 0.639563262462616, + 0.2664633095264435 + ], + [ + 0.13976840674877167, + 0.47787725925445557 + ], + [ + 0.41688936948776245, + 0.23256994783878326 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x4x2_f32/input-1.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x4x2_f32/input-1.json new file mode 100644 index 000000000..258a6a140 --- /dev/null +++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x4x2_f32/input-1.json @@ -0,0 +1,43 @@ +{ + "type": "float32", + "data": [ + [ + [ + 0.3675118088722229, + 0.36639246344566345 + ], + [ + 0.3274955749511719, + 0.3794640898704529 + ], + [ + 0.6857433319091797, + 0.296876460313797 + ], + [ + 0.9488579034805298, + 0.9163480401039124 + ], + [ + 0.48091042041778564, + 0.3283612132072449 + ], + [ + 0.5354347825050354, + 0.8485605120658875 + ], + [ + 0.652587354183197, + 0.8043918013572693 + ], + [ + 0.5327222943305969, + 0.6329176425933838 + ], + [ + 0.28815561532974243, + 0.7348931431770325 + ] + ] + ] +}
\ No newline at end of file diff --git a/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x4x2_f32/test.json b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x4x2_f32/test.json new file mode 100644 index 000000000..c9abf8912 --- /dev/null +++ b/operators/scatter_gather/scatter/scatter_ERRORIF_WrongOutputType_1x4x2_f32/test.json @@ -0,0 +1,124 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-2" + ] + }, + { + op: "SCATTER", + attribute_type: "NONE", + inputs: [ + "input-0", + "const-2", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 4, + 2 + ], + type: "FP32" + }, + { + name: "input-1", + shape: [ + 1, + 9, + 2 + ], + type: "FP32" + }, + { + name: "const-2", + shape: [ + 1, + 9 + ], + type: "INT32", + data: [ + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 2, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 3, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 3, + 0, + 0, + 0 + ] + }, + { + name: "result-0", + shape: [ + 1, + 4, + 2 + ], + type: "INT48" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} |