From f732609a51630c98bc3f448937988fbcf20dc854 Mon Sep 17 00:00:00 2001 From: TatWai Chong Date: Wed, 8 Jun 2022 12:17:14 -0700 Subject: Update TOSA resize to match specification Attribute stride and shift are removed, and has new scale and border. Also add tests in the generator to test tf.resize with all option combinations. Signed-off-by: TatWai Chong Signed-off-by: Jeremy Johnson Change-Id: If0f330d04395762d2d907863235eda1532f5e1ff --- verif/frameworks/tosa_verif_framework_generator.py | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'verif/frameworks/tosa_verif_framework_generator.py') diff --git a/verif/frameworks/tosa_verif_framework_generator.py b/verif/frameworks/tosa_verif_framework_generator.py index 8d8b155..4167227 100755 --- a/verif/frameworks/tosa_verif_framework_generator.py +++ b/verif/frameworks/tosa_verif_framework_generator.py @@ -698,6 +698,30 @@ TF_OP_LIST = { ), }, }, + "resize_bilinear_v1_align_corners": { + "operands": (1, 0), + "build_fcn": ( + TBuilder.ResizeBilinearV1AlignCorners, + TGen.tgPooling, + ArgGen.agNone, + ), + "types": { + "tf": TYPE_F, + "tflite": list( + TYPE_F + [QuantType.ALL_U8, QuantType.ALL_I8, QuantType.ALL_I16] + ), + }, + }, + "resize_bilinear_v1_none": { + "operands": (1, 0), + "build_fcn": (TBuilder.ResizeBilinearV1None, TGen.tgPooling, ArgGen.agNone), + "types": { + "tf": TYPE_F, + "tflite": list( + TYPE_F + [QuantType.ALL_U8, QuantType.ALL_I8, QuantType.ALL_I16] + ), + }, + }, "left_shift": { "operands": (1, 0), "build_fcn": (TBuilder.LeftShift, TGen.tgBasic, ArgGen.agShift), -- cgit v1.2.1