diff options
Diffstat (limited to 'operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_11_f16')
3 files changed, 89 insertions, 0 deletions
diff --git a/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_11_f16/desc.json b/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_11_f16/desc.json new file mode 100644 index 000000000..a0c922627 --- /dev/null +++ b/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_11_f16/desc.json @@ -0,0 +1,22 @@ +{ + "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": "Output DType not INT8 and zero point not 0", + "profile": [ + "tosa-bi", + "tosa-mi" + ] +}
\ No newline at end of file diff --git a/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_11_f16/input-0.json b/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_11_f16/input-0.json new file mode 100644 index 000000000..6f44a21f4 --- /dev/null +++ b/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_11_f16/input-0.json @@ -0,0 +1,16 @@ +{ + "type": "float16", + "data": [ + 0.309814453125, + 0.00994110107421875, + 0.2310791015625, + 0.60546875, + 0.1123046875, + 0.6552734375, + 0.81982421875, + 0.318115234375, + 0.08197021484375, + 0.1396484375, + 0.35791015625 + ] +}
\ No newline at end of file diff --git a/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_11_f16/test.json b/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_11_f16/test.json new file mode 100644 index 000000000..7a10df1ca --- /dev/null +++ b/operators/ew_unary/negate/negate_ERRORIF_OutputZeroPointNotZero_11_f16/test.json @@ -0,0 +1,51 @@ +{ + version: { + _major: 0, + _minor: 41, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "NEGATE", + attribute_type: "NegateAttribute", + attribute: { + input1_zp: 0, + output_zp: -102 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 11 + ], + type: "FP16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |