From 7f1ea8e05537354ab2d78744616140db22ce17dc Mon Sep 17 00:00:00 2001 From: James Ward Date: Mon, 12 Dec 2022 18:39:11 +0000 Subject: Create MI tests for Image: RESIZE Signed-off-by: James Ward Change-Id: I440590fa59433b9ddc1934188f2b34b377129c1f --- reference_model/src/arith_util.h | 1 - verif/conformance/tosa_main_profile_ops_info.json | 41 +++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/reference_model/src/arith_util.h b/reference_model/src/arith_util.h index a75d7a3..9c84a03 100644 --- a/reference_model/src/arith_util.h +++ b/reference_model/src/arith_util.h @@ -231,7 +231,6 @@ inline void truncateFloatToBFloat(float* src, int64_t size) { inline bool checkValidBFloat(float src) { /* Checks if the least significant two bytes are zero. */ - ASSERT_MEM(src); char src_as_bytes[sizeof(float)]; memcpy(src_as_bytes, &src, sizeof(float)); diff --git a/verif/conformance/tosa_main_profile_ops_info.json b/verif/conformance/tosa_main_profile_ops_info.json index 4328b9f..0cbe044 100644 --- a/verif/conformance/tosa_main_profile_ops_info.json +++ b/verif/conformance/tosa_main_profile_ops_info.json @@ -1125,6 +1125,47 @@ "tosa-mi" ] }, + "resize": { + "group": "image", + "generator_args": [ + [ + "--target-dtype", + "fp32", + "--target-dtype", + "fp16", + "--target-dtype", + "bf16", + "--fp-values-range", + "-2.0,2.0" + ], + [ + "--target-dtype", + "fp32", + "--fp-values-range", + "-2.0,2.0", + "--target-shape", + "1,1103,1,2", + "--max-resize-output-dim", + "9100" + ] + ], + "params": { + "offset": [], + "shape": [], + "type": [], + "mode": [], + "output_type": [], + "scale": ["sc2x1x3x1"], + "border": ["bor0x1"] + }, + "permutes": [ + "shape", + "type" + ], + "profile": [ + "tosa-mi" + ] + }, "select": { "group": "ew_ternary", "generator_args": [ -- cgit v1.2.1