From 57e8885147a230102593a90a8fb332a44158b273 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Fri, 17 Jun 2022 13:07:57 +0100 Subject: Updating DEPTHWISE_CONV2D_1X1 tests for v0.30.0 release Signed-off-by: Jeremy Johnson Change-Id: Id3d138848a488ccec21fa9551867837ee1bb1aba --- .../desc.json | 18 + .../input-0.json | 969 +++++++++++++++++++++ .../test.json | 132 +++ 3 files changed, 1119 insertions(+) create mode 100644 operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_PadSmallerZero_1x13x24x1_i8xi4_st11_pad-2-2-2-2_dilat11/desc.json create mode 100644 operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_PadSmallerZero_1x13x24x1_i8xi4_st11_pad-2-2-2-2_dilat11/input-0.json create mode 100644 operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_PadSmallerZero_1x13x24x1_i8xi4_st11_pad-2-2-2-2_dilat11/test.json (limited to 'operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_PadSmallerZero_1x13x24x1_i8xi4_st11_pad-2-2-2-2_dilat11') diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_PadSmallerZero_1x13x24x1_i8xi4_st11_pad-2-2-2-2_dilat11/desc.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_PadSmallerZero_1x13x24x1_i8xi4_st11_pad-2-2-2-2_dilat11/desc.json new file mode 100644 index 000000000..3e4e27fec --- /dev/null +++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_PadSmallerZero_1x13x24x1_i8xi4_st11_pad-2-2-2-2_dilat11/desc.json @@ -0,0 +1,18 @@ +{ + "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": "At least one pad is smaller than zero" +} \ No newline at end of file diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_PadSmallerZero_1x13x24x1_i8xi4_st11_pad-2-2-2-2_dilat11/input-0.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_PadSmallerZero_1x13x24x1_i8xi4_st11_pad-2-2-2-2_dilat11/input-0.json new file mode 100644 index 000000000..206002881 --- /dev/null +++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_PadSmallerZero_1x13x24x1_i8xi4_st11_pad-2-2-2-2_dilat11/input-0.json @@ -0,0 +1,969 @@ +{ + "type": "int32", + "data": [ + [ + [ + [ + -44 + ], + [ + 71 + ], + [ + 56 + ], + [ + 1 + ], + [ + -120 + ], + [ + 120 + ], + [ + -103 + ], + [ + -30 + ], + [ + -4 + ], + [ + 44 + ], + [ + -76 + ], + [ + -59 + ], + [ + 24 + ], + [ + -48 + ], + [ + -41 + ], + [ + 12 + ], + [ + 76 + ], + [ + -98 + ], + [ + 46 + ], + [ + 5 + ], + [ + -4 + ], + [ + -18 + ], + [ + -4 + ], + [ + 50 + ] + ], + [ + [ + 11 + ], + [ + -108 + ], + [ + -82 + ], + [ + 95 + ], + [ + -66 + ], + [ + 72 + ], + [ + 13 + ], + [ + 51 + ], + [ + -25 + ], + [ + -112 + ], + [ + -101 + ], + [ + -63 + ], + [ + -94 + ], + [ + -87 + ], + [ + -38 + ], + [ + 114 + ], + [ + -34 + ], + [ + -7 + ], + [ + 91 + ], + [ + 51 + ], + [ + 94 + ], + [ + -11 + ], + [ + 37 + ], + [ + 95 + ] + ], + [ + [ + 63 + ], + [ + -44 + ], + [ + 126 + ], + [ + -8 + ], + [ + -95 + ], + [ + -86 + ], + [ + 75 + ], + [ + 103 + ], + [ + -18 + ], + [ + -115 + ], + [ + 75 + ], + [ + -79 + ], + [ + -112 + ], + [ + 27 + ], + [ + -92 + ], + [ + 57 + ], + [ + 45 + ], + [ + 9 + ], + [ + 85 + ], + [ + -109 + ], + [ + 35 + ], + [ + -54 + ], + [ + -72 + ], + [ + 4 + ] + ], + [ + [ + 115 + ], + [ + 117 + ], + [ + 51 + ], + [ + -19 + ], + [ + -9 + ], + [ + -86 + ], + [ + 121 + ], + [ + -122 + ], + [ + -63 + ], + [ + -6 + ], + [ + 21 + ], + [ + -7 + ], + [ + -110 + ], + [ + 44 + ], + [ + -38 + ], + [ + -56 + ], + [ + -35 + ], + [ + 60 + ], + [ + -121 + ], + [ + -121 + ], + [ + 44 + ], + [ + -51 + ], + [ + 29 + ], + [ + -24 + ] + ], + [ + [ + 72 + ], + [ + -5 + ], + [ + -100 + ], + [ + -46 + ], + [ + -8 + ], + [ + 81 + ], + [ + -115 + ], + [ + -98 + ], + [ + -81 + ], + [ + -79 + ], + [ + -8 + ], + [ + -95 + ], + [ + -8 + ], + [ + -93 + ], + [ + 100 + ], + [ + -45 + ], + [ + 73 + ], + [ + 113 + ], + [ + -88 + ], + [ + 39 + ], + [ + -27 + ], + [ + 89 + ], + [ + -12 + ], + [ + 80 + ] + ], + [ + [ + 104 + ], + [ + -65 + ], + [ + -86 + ], + [ + 56 + ], + [ + 59 + ], + [ + -45 + ], + [ + -47 + ], + [ + -56 + ], + [ + -64 + ], + [ + 117 + ], + [ + -95 + ], + [ + 84 + ], + [ + 28 + ], + [ + 86 + ], + [ + 21 + ], + [ + 33 + ], + [ + 38 + ], + [ + -4 + ], + [ + 115 + ], + [ + -107 + ], + [ + -106 + ], + [ + 115 + ], + [ + -34 + ], + [ + -55 + ] + ], + [ + [ + -29 + ], + [ + -72 + ], + [ + 78 + ], + [ + 114 + ], + [ + 56 + ], + [ + -58 + ], + [ + -95 + ], + [ + 105 + ], + [ + -13 + ], + [ + 68 + ], + [ + -78 + ], + [ + -63 + ], + [ + 81 + ], + [ + -108 + ], + [ + 121 + ], + [ + -11 + ], + [ + 116 + ], + [ + -55 + ], + [ + -98 + ], + [ + -27 + ], + [ + 32 + ], + [ + -109 + ], + [ + 76 + ], + [ + -2 + ] + ], + [ + [ + 3 + ], + [ + 127 + ], + [ + 119 + ], + [ + 16 + ], + [ + 15 + ], + [ + -60 + ], + [ + -69 + ], + [ + 99 + ], + [ + -82 + ], + [ + 39 + ], + [ + -111 + ], + [ + 19 + ], + [ + 78 + ], + [ + 21 + ], + [ + -33 + ], + [ + 21 + ], + [ + -118 + ], + [ + 25 + ], + [ + -115 + ], + [ + -30 + ], + [ + -107 + ], + [ + -8 + ], + [ + 70 + ], + [ + -71 + ] + ], + [ + [ + -18 + ], + [ + -67 + ], + [ + -115 + ], + [ + 18 + ], + [ + -64 + ], + [ + 28 + ], + [ + -90 + ], + [ + -106 + ], + [ + -106 + ], + [ + -70 + ], + [ + 3 + ], + [ + 63 + ], + [ + -31 + ], + [ + 42 + ], + [ + 3 + ], + [ + -110 + ], + [ + -4 + ], + [ + 67 + ], + [ + 38 + ], + [ + 27 + ], + [ + -16 + ], + [ + 114 + ], + [ + -21 + ], + [ + -15 + ] + ], + [ + [ + 18 + ], + [ + -108 + ], + [ + 50 + ], + [ + 121 + ], + [ + 19 + ], + [ + -8 + ], + [ + 91 + ], + [ + 100 + ], + [ + -28 + ], + [ + 116 + ], + [ + -18 + ], + [ + -6 + ], + [ + 90 + ], + [ + 124 + ], + [ + -104 + ], + [ + 123 + ], + [ + 110 + ], + [ + 100 + ], + [ + 23 + ], + [ + 122 + ], + [ + -19 + ], + [ + 18 + ], + [ + 48 + ], + [ + 44 + ] + ], + [ + [ + -115 + ], + [ + -18 + ], + [ + 18 + ], + [ + 1 + ], + [ + 89 + ], + [ + -112 + ], + [ + 14 + ], + [ + 1 + ], + [ + -27 + ], + [ + -76 + ], + [ + -47 + ], + [ + -8 + ], + [ + -99 + ], + [ + 122 + ], + [ + 2 + ], + [ + -115 + ], + [ + 83 + ], + [ + -29 + ], + [ + -119 + ], + [ + -16 + ], + [ + -38 + ], + [ + 6 + ], + [ + 75 + ], + [ + 11 + ] + ], + [ + [ + -58 + ], + [ + 9 + ], + [ + -79 + ], + [ + 91 + ], + [ + 91 + ], + [ + 32 + ], + [ + -103 + ], + [ + 77 + ], + [ + -84 + ], + [ + 82 + ], + [ + 115 + ], + [ + -97 + ], + [ + -101 + ], + [ + 99 + ], + [ + 58 + ], + [ + -96 + ], + [ + 83 + ], + [ + -73 + ], + [ + -128 + ], + [ + -55 + ], + [ + -24 + ], + [ + -68 + ], + [ + 17 + ], + [ + 119 + ] + ], + [ + [ + 51 + ], + [ + -44 + ], + [ + -16 + ], + [ + -13 + ], + [ + 8 + ], + [ + 40 + ], + [ + -16 + ], + [ + 122 + ], + [ + -107 + ], + [ + 15 + ], + [ + -81 + ], + [ + -78 + ], + [ + 93 + ], + [ + 25 + ], + [ + 30 + ], + [ + -82 + ], + [ + -59 + ], + [ + -46 + ], + [ + -25 + ], + [ + 33 + ], + [ + 85 + ], + [ + -68 + ], + [ + -58 + ], + [ + 119 + ] + ] + ] + ] +} \ No newline at end of file diff --git a/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_PadSmallerZero_1x13x24x1_i8xi4_st11_pad-2-2-2-2_dilat11/test.json b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_PadSmallerZero_1x13x24x1_i8xi4_st11_pad-2-2-2-2_dilat11/test.json new file mode 100644 index 000000000..d60d74c20 --- /dev/null +++ b/operators/tensor/depthwise_conv2d_1x1/depthwise_conv2d_1x1_ERRORIF_PadSmallerZero_1x13x24x1_i8xi4_st11_pad-2-2-2-2_dilat11/test.json @@ -0,0 +1,132 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-1" + ] + }, + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-2" + ] + }, + { + op: "DEPTHWISE_CONV2D", + attribute_type: "ConvAttribute", + attribute: { + pad: [ + -2, + -2, + -2, + -2 + ], + stride: [ + 1, + 1 + ], + dilation: [ + 1, + 1 + ], + input_zp: 98, + weight_zp: 0 + }, + inputs: [ + "input-0", + "const-1", + "const-2" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 13, + 24, + 1 + ], + type: "INT8" + }, + { + name: "const-1", + shape: [ + 1, + 1, + 1, + 4 + ], + type: "INT4", + data: [ + 234, + 227 + ] + }, + { + name: "const-2", + shape: [ + 4 + ], + type: "INT32", + data: [ + 154, + 177, + 75, + 71, + 170, + 22, + 236, + 202, + 35, + 38, + 214, + 207, + 43, + 97, + 65, + 26 + ] + }, + { + name: "result-0", + shape: [ + 1, + 9, + 20, + 4 + ], + type: "INT32" + } + ], + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ] +} -- cgit v1.2.1