diff options
author | James Ward <james.ward@arm.com> | 2022-12-12 18:39:11 +0000 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2022-12-15 16:43:04 +0000 |
commit | 7f1ea8e05537354ab2d78744616140db22ce17dc (patch) | |
tree | 53c3a1eeaaa88100655895067a0c273de314ca9b | |
parent | 64285a1f25e2c7b85ed1f00b7947403e92baea00 (diff) | |
download | reference_model-7f1ea8e05537354ab2d78744616140db22ce17dc.tar.gz |
Create MI tests for Image: RESIZE
Signed-off-by: James Ward <james.ward@arm.com>
Change-Id: I440590fa59433b9ddc1934188f2b34b377129c1f
-rw-r--r-- | reference_model/src/arith_util.h | 1 | ||||
-rw-r--r-- | verif/conformance/tosa_main_profile_ops_info.json | 41 |
2 files changed, 41 insertions, 1 deletions
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": [ |