From 1aa23bd44af0ae508dc83d26e66dfc6d68d837f8 Mon Sep 17 00:00:00 2001 From: James Ward Date: Wed, 14 Dec 2022 12:54:33 +0000 Subject: Create MI tests for EW Unary: ABS, CEIL, FLOOR, NEGATE Signed-off-by: James Ward Change-Id: I2359051636ec6f3924bfc854c227993a883067cc --- .../ceil_ERRORIF_WrongOutputType_12_f16/desc.json | 21 ++++++++++ .../input-0.json | 17 ++++++++ .../ceil_ERRORIF_WrongOutputType_12_f16/test.json | 47 ++++++++++++++++++++++ 3 files changed, 85 insertions(+) create mode 100644 operators/ew_unary/ceil/ceil_ERRORIF_WrongOutputType_12_f16/desc.json create mode 100644 operators/ew_unary/ceil/ceil_ERRORIF_WrongOutputType_12_f16/input-0.json create mode 100644 operators/ew_unary/ceil/ceil_ERRORIF_WrongOutputType_12_f16/test.json (limited to 'operators/ew_unary/ceil/ceil_ERRORIF_WrongOutputType_12_f16') diff --git a/operators/ew_unary/ceil/ceil_ERRORIF_WrongOutputType_12_f16/desc.json b/operators/ew_unary/ceil/ceil_ERRORIF_WrongOutputType_12_f16/desc.json new file mode 100644 index 000000000..d57e8394e --- /dev/null +++ b/operators/ew_unary/ceil/ceil_ERRORIF_WrongOutputType_12_f16/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": "Output data type not supported for this configuration of operator", + "profile": [ + "tosa-mi" + ] +} \ No newline at end of file diff --git a/operators/ew_unary/ceil/ceil_ERRORIF_WrongOutputType_12_f16/input-0.json b/operators/ew_unary/ceil/ceil_ERRORIF_WrongOutputType_12_f16/input-0.json new file mode 100644 index 000000000..497b90c4d --- /dev/null +++ b/operators/ew_unary/ceil/ceil_ERRORIF_WrongOutputType_12_f16/input-0.json @@ -0,0 +1,17 @@ +{ + "type": "float16", + "data": [ + 0.049285888671875, + 0.06524658203125, + 0.414794921875, + 0.3349609375, + 0.61572265625, + 0.03790283203125, + 0.167724609375, + 0.2095947265625, + 0.4404296875, + 0.246826171875, + 0.1376953125, + 0.59765625 + ] +} \ No newline at end of file diff --git a/operators/ew_unary/ceil/ceil_ERRORIF_WrongOutputType_12_f16/test.json b/operators/ew_unary/ceil/ceil_ERRORIF_WrongOutputType_12_f16/test.json new file mode 100644 index 000000000..c06a2681c --- /dev/null +++ b/operators/ew_unary/ceil/ceil_ERRORIF_WrongOutputType_12_f16/test.json @@ -0,0 +1,47 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CEIL", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 12 + ], + type: "INT8" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1