diff options
author | TatWai Chong <tatwai.chong@arm.com> | 2022-06-08 12:17:14 -0700 |
---|---|---|
committer | Eric Kunze <eric.kunze@arm.com> | 2022-08-10 23:12:28 +0000 |
commit | f732609a51630c98bc3f448937988fbcf20dc854 (patch) | |
tree | c19aeb8919e4ae8db84b13559bd5858f5e785382 /reference_model/src/ops/image.h | |
parent | 9391243d1c24d5a4e3c227ba9e3689cdb12d3e60 (diff) | |
download | reference_model-f732609a51630c98bc3f448937988fbcf20dc854.tar.gz |
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 <tatwai.chong@arm.com>
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: If0f330d04395762d2d907863235eda1532f5e1ff
Diffstat (limited to 'reference_model/src/ops/image.h')
-rw-r--r-- | reference_model/src/ops/image.h | 11 |
1 files changed, 4 insertions, 7 deletions
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 <DType InDtype, DType OutDtype> +template <DType InDtype, DType OutDtype, typename resize_t> class OpResize : public GraphNode { public: @@ -39,12 +39,9 @@ public: protected: TosaResizeAttribute* attribute; - std::vector<int32_t> output_size; - std::vector<int32_t> stride; - std::vector<int32_t> offset; - int32_t shift; - std::vector<float> stride_fp; - std::vector<float> offset_fp; + std::vector<int16_t> scale; + std::vector<int16_t> offset; + std::vector<int16_t> border; ResizeMode mode; TosaReference::TensorTemplate<TIn>* in; TosaReference::TensorTemplate<TOut>* out; |