aboutsummaryrefslogtreecommitdiff
path: root/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8
diff options
context:
space:
mode:
Diffstat (limited to 'frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8')
-rw-r--r--frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/Conformance-TosaOutput_0.json407
-rw-r--r--frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/desc.json19
-rw-r--r--frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/model-tflite.json259
-rw-r--r--frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/placeholder_0.json111
-rw-r--r--frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/test_resize_bilinear_1x4x4x4_qi8.json119
5 files changed, 915 insertions, 0 deletions
diff --git a/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/Conformance-TosaOutput_0.json b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/Conformance-TosaOutput_0.json
new file mode 100644
index 000000000..9362a41e5
--- /dev/null
+++ b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/Conformance-TosaOutput_0.json
@@ -0,0 +1,407 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ [
+ [
+ 40,
+ 105,
+ 77,
+ -128
+ ],
+ [
+ 33,
+ 104,
+ 26,
+ -89
+ ],
+ [
+ 19,
+ 103,
+ -77,
+ -10
+ ],
+ [
+ 1,
+ 51,
+ -92,
+ 0
+ ],
+ [
+ -22,
+ -52,
+ -19,
+ -59
+ ],
+ [
+ -42,
+ -108,
+ 43,
+ -66
+ ],
+ [
+ -59,
+ -119,
+ 96,
+ -22
+ ],
+ [
+ -68,
+ -124,
+ 122,
+ 0
+ ]
+ ],
+ [
+ [
+ 34,
+ 69,
+ 65,
+ -125
+ ],
+ [
+ 24,
+ 71,
+ 22,
+ -96
+ ],
+ [
+ 5,
+ 75,
+ -62,
+ -37
+ ],
+ [
+ -3,
+ 35,
+ -75,
+ -15
+ ],
+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],
+ [
+ 26,
+ 5,
+ 24,
+ -29
+ ],
+ [
+ 16,
+ 21,
+ 0,
+ -5
+ ],
+ [
+ -13,
+ 24,
+ -8,
+ 5
+ ],
+ [
+ -61,
+ 12,
+ 1,
+ -1
+ ],
+ [
+ -85,
+ 7,
+ 6,
+ -4
+ ]
+ ],
+ [
+ [
+ -58,
+ 115,
+ 36,
+ 53
+ ],
+ [
+ -51,
+ 70,
+ 16,
+ 38
+ ],
+ [
+ -36,
+ -20,
+ -23,
+ 7
+ ],
+ [
+ -10,
+ -36,
+ -20,
+ 12
+ ],
+ [
+ 26,
+ 22,
+ 28,
+ 51
+ ],
+ [
+ 16,
+ 27,
+ 40,
+ 42
+ ],
+ [
+ -40,
+ -21,
+ 16,
+ -15
+ ],
+ [
+ -68,
+ -44,
+ 5,
+ -43
+ ]
+ ],
+ [
+ [
+ -99,
+ 120,
+ 85,
+ 111
+ ],
+ [
+ -89,
+ 66,
+ 43,
+ 86
+ ],
+ [
+ -68,
+ -41,
+ -41,
+ 35
+ ],
+ [
+ -28,
+ -56,
+ -41,
+ 32
+ ],
+ [
+ 31,
+ 23,
+ 42,
+ 79
+ ],
+ [
+ 31,
+ 29,
+ 63,
+ 61
+ ],
+ [
+ -30,
+ -37,
+ 24,
+ -22
+ ],
+ [
+ -60,
+ -70,
+ 4,
+ -63
+ ]
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/desc.json b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/desc.json
new file mode 100644
index 000000000..ba69705bf
--- /dev/null
+++ b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/desc.json
@@ -0,0 +1,19 @@
+{
+ "tosa_file": "test_resize_bilinear_1x4x4x4_qi8.json",
+ "ifm_name": [
+ "TosaInput_0"
+ ],
+ "ifm_file": [
+ "placeholder_0.npy"
+ ],
+ "ofm_name": [
+ "TosaOutput_0"
+ ],
+ "ofm_file": [
+ "output_0.npy"
+ ],
+ "expected_failure": false,
+ "expected_result_file": [
+ "Conformance-TosaOutput_0.npy"
+ ]
+} \ No newline at end of file
diff --git a/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/model-tflite.json b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/model-tflite.json
new file mode 100644
index 000000000..e651b34c8
--- /dev/null
+++ b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/model-tflite.json
@@ -0,0 +1,259 @@
+{
+ version: 3,
+ operator_codes: [
+ {
+ deprecated_builtin_code: 23,
+ version: 3,
+ builtin_code: "RESIZE_BILINEAR"
+ }
+ ],
+ subgraphs: [
+ {
+ tensors: [
+ {
+ shape: [
+ 1,
+ 4,
+ 4,
+ 4
+ ],
+ type: "INT8",
+ buffer: 1,
+ name: "serving_default_placeholder_0:0",
+ quantization: {
+ scale: [
+ 0.015684
+ ],
+ zero_point: [
+ 0
+ ],
+ details_type: "NONE",
+ quantized_dimension: 0
+ },
+ is_variable: false
+ },
+ {
+ shape: [
+ 2
+ ],
+ type: "INT32",
+ buffer: 2,
+ name: "resize/size",
+ quantization: {
+ details_type: "NONE",
+ quantized_dimension: 0
+ },
+ is_variable: false
+ },
+ {
+ shape: [
+ 1,
+ 8,
+ 8,
+ 4
+ ],
+ type: "INT8",
+ buffer: 3,
+ name: "PartitionedCall:0",
+ quantization: {
+ scale: [
+ 0.015684
+ ],
+ zero_point: [
+ 0
+ ],
+ details_type: "NONE",
+ quantized_dimension: 0
+ },
+ is_variable: false
+ }
+ ],
+ inputs: [
+ 0
+ ],
+ outputs: [
+ 2
+ ],
+ operators: [
+ {
+ opcode_index: 0,
+ inputs: [
+ 0,
+ 1
+ ],
+ outputs: [
+ 2
+ ],
+ builtin_options_type: "ResizeBilinearOptions",
+ builtin_options: {
+ align_corners: false,
+ half_pixel_centers: true
+ },
+ custom_options_format: "FLEXBUFFERS"
+ }
+ ],
+ name: "main"
+ }
+ ],
+ description: "MLIR Converted.",
+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json b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/placeholder_0.json
new file mode 100644
index 000000000..fd2006265
--- /dev/null
+++ b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/placeholder_0.json
@@ -0,0 +1,111 @@
+{
+ "type": "int32",
+ "data": [
+ [
+ [
+ [
+ 40,
+ 105,
+ 77,
+ -128
+ ],
+ [
+ 12,
+ 102,
+ -128,
+ 29
+ ],
+ [
+ -33,
+ -103,
+ 17,
+ -88
+ ],
+ [
+ -68,
+ -124,
+ 122,
+ 0
+ ]
+ ],
+ [
+ [
+ 16,
+ -40,
+ 27,
+ -117
+ ],
+ [
+ -57,
+ 3,
+ -32,
+ -120
+ ],
+ [
+ 112,
+ -61,
+ 1,
+ 127
+ ],
+ [
+ -23,
+ -89,
+ 95,
+ 36
+ ]
+ ],
+ [
+ [
+ 65,
+ 98,
+ -111,
+ -121
+ ],
+ [
+ 61,
+ 27,
+ 76,
+ -58
+ ],
+ [
+ -5,
+ 19,
+ -44,
+ -24
+ ],
+ [
+ -93,
+ 32,
+ 6,
+ 16
+ ]
+ ],
+ [
+ [
+ -99,
+ 120,
+ 85,
+ 111
+ ],
+ [
+ -58,
+ -95,
+ -83,
+ 9
+ ],
+ [
+ 61,
+ 62,
+ 83,
+ 102
+ ],
+ [
+ -60,
+ -70,
+ 4,
+ -63
+ ]
+ ]
+ ]
+ ]
+} \ No newline at end of file
diff --git a/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/test_resize_bilinear_1x4x4x4_qi8.json b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/test_resize_bilinear_1x4x4x4_qi8.json
new file mode 100644
index 000000000..ba109037c
--- /dev/null
+++ b/frameworks/tflite/operators/resize_bilinear_1x4x4x4_qi8/test_resize_bilinear_1x4x4x4_qi8.json
@@ -0,0 +1,119 @@
+{
+ version: {
+ _major: 0,
+ _minor: 30,
+ _patch: 0,
+ _draft: false
+ },
+ blocks: [
+ {
+ name: "main",
+ operators: [
+ {
+ op: "RESIZE",
+ attribute_type: "ResizeAttribute",
+ attribute: {
+ output_size: [
+ 8,
+ 8
+ ],
+ stride: [
+ 512,
+ 512
+ ],
+ offset: [
+ -256,
+ -256
+ ],
+ shift: 10,
+ stride_fp: [
+ 0.0,
+ 0.0
+ ],
+ offset_fp: [
+ 0.0,
+ 0.0
+ ],
+ mode: "BILINEAR"
+ },
+ inputs: [
+ "TosaInput_0"
+ ],
+ outputs: [
+ "layer_0"
+ ]
+ },
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 1073741824
+ ],
+ shift: [
+ 50
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "layer_0"
+ ],
+ outputs: [
+ "TosaOutput_0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "TosaInput_0",
+ shape: [
+ 1,
+ 4,
+ 4,
+ 4
+ ],
+ type: "INT8",
+ data: [
+
+ ]
+ },
+ {
+ name: "TosaOutput_0",
+ shape: [
+ 1,
+ 8,
+ 8,
+ 4
+ ],
+ type: "INT8",
+ data: [
+
+ ]
+ },
+ {
+ name: "layer_0",
+ shape: [
+ 1,
+ 8,
+ 8,
+ 4
+ ],
+ type: "INT32",
+ data: [
+
+ ]
+ }
+ ],
+ inputs: [
+ "TosaInput_0"
+ ],
+ outputs: [
+ "TosaOutput_0"
+ ]
+ }
+ ]
+}