diff options
Diffstat (limited to 'operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16')
3 files changed, 88 insertions, 0 deletions
diff --git a/operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16/desc.json b/operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16/desc.json new file mode 100644 index 000000000..b8879370e --- /dev/null +++ b/operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_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": "Input 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_InputZeroPointNotZero_10_f16/input-0.json b/operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16/input-0.json new file mode 100644 index 000000000..1578b8af1 --- /dev/null +++ b/operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16/input-0.json @@ -0,0 +1,15 @@ +{ + "type": "float16", + "data": [ + 0.90283203125, + 0.455810546875, + 0.202392578125, + 0.305908203125, + 0.5791015625, + 0.1767578125, + 0.8564453125, + 0.75830078125, + 0.71923828125, + 0.43212890625 + ] +}
\ No newline at end of file diff --git a/operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16/test.json b/operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_f16/test.json new file mode 100644 index 000000000..aac8e7743 --- /dev/null +++ b/operators/ew_unary/negate/negate_ERRORIF_InputZeroPointNotZero_10_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: -108, + output_zp: 0 + }, + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 10 + ], + type: "FP16" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} |