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 --- reference_model/src/ops/image.h | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'reference_model/src/ops/image.h') diff --git a/reference_model/src/ops/image.h b/reference_model/src/ops/image.h index fea4885..508d2c8 100644 --- a/reference_model/src/ops/image.h +++ b/reference_model/src/ops/image.h @@ -23,7 +23,7 @@ using namespace tosa; namespace TosaReference { -template +template class OpResize : public GraphNode { public: @@ -39,12 +39,9 @@ public: protected: TosaResizeAttribute* attribute; - std::vector output_size; - std::vector stride; - std::vector offset; - int32_t shift; - std::vector stride_fp; - std::vector offset_fp; + std::vector scale; + std::vector offset; + std::vector border; ResizeMode mode; TosaReference::TensorTemplate* in; TosaReference::TensorTemplate* out; -- cgit v1.2.1