From 8fd51f1923554002cda63fc88e8ea013ff5c5512 Mon Sep 17 00:00:00 2001 From: James Ward Date: Mon, 15 Aug 2022 13:19:11 +0100 Subject: Regenerate conformance tests for new RESIZE Change-Id: I325ca19b41a58c222679d3814e5bacff77614fa9 Signed-off-by: James Ward Signed-off-by: Jeremy Johnson --- frameworks/framework_compilation.manifest | 8 +++--- .../test_resize_bilinear_1x32x32x8_qi16.json | 29 ++++++++-------------- .../test_resize_bilinear_1x4x4x4_qi8.json | 29 ++++++++-------------- .../test_resize_nearest_1x4x8x19_qu8.json | 27 ++++++++------------ .../test_resize_nearest_1x8x4x17_qi8.json | 27 ++++++++------------ 5 files changed, 46 insertions(+), 74 deletions(-) (limited to 'frameworks') diff --git a/frameworks/framework_compilation.manifest b/frameworks/framework_compilation.manifest index 5f865b556..0a3367cd9 100644 --- a/frameworks/framework_compilation.manifest +++ b/frameworks/framework_compilation.manifest @@ -1,4 +1,4 @@ -tensorflow: 2.9.1.dev27+g5047f9792a6 -reference_model: 0.30.1.dev5+g8858862 -serialization_lib: 0.30.1.dev2+g4417b42 -tosa_mlir_translator: 0.30.1.dev1+g9e3bea5 +tensorflow: 2.9.1.dev29+g7c6f3ddc9ce +reference_model: 0.30.1.dev11+g3c59d5d +serialization_lib: 0.30.1.dev3+g49b1ca6 +tosa_mlir_translator: 0.30.1.dev2+gd13f5e6 diff --git a/frameworks/tflite/operators/resize_bilinear_1x32x32x8_qi16/test_resize_bilinear_1x32x32x8_qi16.json b/frameworks/tflite/operators/resize_bilinear_1x32x32x8_qi16/test_resize_bilinear_1x32x32x8_qi16.json index 2eed0d896..6098ff60d 100644 --- a/frameworks/tflite/operators/resize_bilinear_1x32x32x8_qi16/test_resize_bilinear_1x32x32x8_qi16.json +++ b/frameworks/tflite/operators/resize_bilinear_1x32x32x8_qi16/test_resize_bilinear_1x32x32x8_qi16.json @@ -13,26 +13,19 @@ op: "RESIZE", attribute_type: "ResizeAttribute", attribute: { - output_size: [ - 64, - 64 - ], - stride: [ - 512, - 512 + scale: [ + 4, + 2, + 4, + 2 ], offset: [ - -256, - -256 - ], - shift: 10, - stride_fp: [ - 0.0, - 0.0 + -1, + -1 ], - offset_fp: [ - 0.0, - 0.0 + border: [ + 1, + 1 ], mode: "BILINEAR" }, @@ -53,7 +46,7 @@ 16384 ], shift: [ - 34 + 18 ], scale32: false, double_round: false, 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 index d1528e4b5..d92b88b4d 100644 --- 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 @@ -13,26 +13,19 @@ op: "RESIZE", attribute_type: "ResizeAttribute", attribute: { - output_size: [ - 8, - 8 - ], - stride: [ - 512, - 512 + scale: [ + 4, + 2, + 4, + 2 ], offset: [ - -256, - -256 - ], - shift: 10, - stride_fp: [ - 0.0, - 0.0 + -1, + -1 ], - offset_fp: [ - 0.0, - 0.0 + border: [ + 1, + 1 ], mode: "BILINEAR" }, @@ -53,7 +46,7 @@ 1073741824 ], shift: [ - 50 + 34 ], scale32: true, double_round: false, diff --git a/frameworks/tflite/operators/resize_nearest_neighbor_1x4x8x19_qu8/test_resize_nearest_1x4x8x19_qu8.json b/frameworks/tflite/operators/resize_nearest_neighbor_1x4x8x19_qu8/test_resize_nearest_1x4x8x19_qu8.json index 40f64fefe..01d8ffad8 100644 --- a/frameworks/tflite/operators/resize_nearest_neighbor_1x4x8x19_qu8/test_resize_nearest_1x4x8x19_qu8.json +++ b/frameworks/tflite/operators/resize_nearest_neighbor_1x4x8x19_qu8/test_resize_nearest_1x4x8x19_qu8.json @@ -59,26 +59,19 @@ op: "RESIZE", attribute_type: "ResizeAttribute", attribute: { - output_size: [ - 8, - 16 - ], - stride: [ - 512, - 512 + scale: [ + 4, + 2, + 4, + 2 ], offset: [ - -256, - -256 - ], - shift: 10, - stride_fp: [ - 0.0, - 0.0 + -1, + -1 ], - offset_fp: [ - 0.0, - 0.0 + border: [ + 1, + 1 ], mode: "NEAREST" }, diff --git a/frameworks/tflite/operators/resize_nearest_neighbor_1x8x4x17_qi8/test_resize_nearest_1x8x4x17_qi8.json b/frameworks/tflite/operators/resize_nearest_neighbor_1x8x4x17_qi8/test_resize_nearest_1x8x4x17_qi8.json index 850216656..f8f693398 100644 --- a/frameworks/tflite/operators/resize_nearest_neighbor_1x8x4x17_qi8/test_resize_nearest_1x8x4x17_qi8.json +++ b/frameworks/tflite/operators/resize_nearest_neighbor_1x8x4x17_qi8/test_resize_nearest_1x8x4x17_qi8.json @@ -13,26 +13,19 @@ op: "RESIZE", attribute_type: "ResizeAttribute", attribute: { - output_size: [ - 16, - 8 - ], - stride: [ - 512, - 512 + scale: [ + 4, + 2, + 4, + 2 ], offset: [ - -256, - -256 - ], - shift: 10, - stride_fp: [ - 0.0, - 0.0 + -1, + -1 ], - offset_fp: [ - 0.0, - 0.0 + border: [ + 1, + 1 ], mode: "NEAREST" }, -- cgit v1.2.1