From 8f523840638434699bb53e0c986a0f84b38f6b70 Mon Sep 17 00:00:00 2001 From: James Ward Date: Tue, 21 Feb 2023 10:37:24 +0000 Subject: Create MI tests for Tensors: TRANSPOSE_CONV2D Signed-off-by: James Ward Change-Id: I9ce5f8b26e03d53ef62d07da139f532f39a31d4b --- .../desc.json | 21 +++ .../input-0.json | 19 +++ .../test.json | 141 +++++++++++++++++++++ 3 files changed, 181 insertions(+) create mode 100644 operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_WeightZeroPointNotZero_1x1x2x3_f16xf16_accf32_st11_pad0000_os1x1x2x2/desc.json create mode 100644 operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_WeightZeroPointNotZero_1x1x2x3_f16xf16_accf32_st11_pad0000_os1x1x2x2/input-0.json create mode 100644 operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_WeightZeroPointNotZero_1x1x2x3_f16xf16_accf32_st11_pad0000_os1x1x2x2/test.json (limited to 'operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_WeightZeroPointNotZero_1x1x2x3_f16xf16_accf32_st11_pad0000_os1x1x2x2') diff --git a/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_WeightZeroPointNotZero_1x1x2x3_f16xf16_accf32_st11_pad0000_os1x1x2x2/desc.json b/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_WeightZeroPointNotZero_1x1x2x3_f16xf16_accf32_st11_pad0000_os1x1x2x2/desc.json new file mode 100644 index 000000000..56f2242d4 --- /dev/null +++ b/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_WeightZeroPointNotZero_1x1x2x3_f16xf16_accf32_st11_pad0000_os1x1x2x2/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": "Weight DType not INT8 and zero point not 0", + "profile": [ + "tosa-mi" + ] +} \ No newline at end of file diff --git a/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_WeightZeroPointNotZero_1x1x2x3_f16xf16_accf32_st11_pad0000_os1x1x2x2/input-0.json b/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_WeightZeroPointNotZero_1x1x2x3_f16xf16_accf32_st11_pad0000_os1x1x2x2/input-0.json new file mode 100644 index 000000000..f6eaa92ac --- /dev/null +++ b/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_WeightZeroPointNotZero_1x1x2x3_f16xf16_accf32_st11_pad0000_os1x1x2x2/input-0.json @@ -0,0 +1,19 @@ +{ + "type": "float16", + "data": [ + [ + [ + [ + 0.2099609375, + 0.1544189453125, + 0.1239013671875 + ], + [ + 0.92626953125, + 0.01384735107421875, + 0.60205078125 + ] + ] + ] + ] +} \ No newline at end of file diff --git a/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_WeightZeroPointNotZero_1x1x2x3_f16xf16_accf32_st11_pad0000_os1x1x2x2/test.json b/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_WeightZeroPointNotZero_1x1x2x3_f16xf16_accf32_st11_pad0000_os1x1x2x2/test.json new file mode 100644 index 000000000..5521f8463 --- /dev/null +++ b/operators/tensor/transpose_conv2d_1x1/transpose_conv2d_1x1_ERRORIF_WeightZeroPointNotZero_1x1x2x3_f16xf16_accf32_st11_pad0000_os1x1x2x2/test.json @@ -0,0 +1,141 @@ +{ + version: { + _major: 0, + _minor: 51, + _patch: 0, + _draft: true + }, + regions: [ + { + name: "main", + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-2" + ] + }, + { + op: "TRANSPOSE_CONV2D", + attribute_type: "TransposeConvAttribute", + attribute: { + out_pad: [ + 0, + 0, + 0, + 0 + ], + stride: [ + 1, + 1 + ], + output_shape: [ + 1, + 1, + 2, + 2 + ], + input_zp: 0, + weight_zp: 121 + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 1, + 2, + 3 + ], + type: "FP16" + }, + { + name: "const-1", + shape: [ + 2, + 1, + 1, + 3 + ], + type: "FP16", + data: [ + 148, + 59, + 195, + 53, + 55, + 56, + 145, + 57, + 19, + 53, + 164, + 55 + ] + }, + { + name: "const-2", + shape: [ + 2 + ], + type: "FP32", + data: [ + 167, + 45, + 81, + 63, + 161, + 207, + 62, + 63 + ] + }, + { + name: "result-0", + shape: [ + 1, + 1, + 2, + 2 + ], + type: "FP32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] + } + ] +} -- cgit v1.2.1