From f057e6ff03c88c169a0e2996108bde7b3d65273c Mon Sep 17 00:00:00 2001 From: David Monahan Date: Mon, 22 Jun 2020 09:55:23 +0100 Subject: IVGCVSW-4709 Re-enable Android-NN Resize Parameters * Re-enabled support for Align Corners and Half Pixel Centers Signed-off-by: David Monahan Change-Id: Iec8f5f5b5a1142547957ad9128037315b1da7935 --- ConversionUtils_1_2.hpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/ConversionUtils_1_2.hpp b/ConversionUtils_1_2.hpp index 817aebd1..0ad50f31 100644 --- a/ConversionUtils_1_2.hpp +++ b/ConversionUtils_1_2.hpp @@ -1902,16 +1902,8 @@ bool ConvertResize(const HalOperation& operation, return Fail("%s: Operand has invalid data type for resizing by scale", __func__); } - descriptor.m_AlignCorners = GetOptionalBool(operation, 4, model, data); - descriptor.m_HalfPixelCenters = GetOptionalBool(operation, 5, model, data); - if (descriptor.m_AlignCorners) - { - return Fail("%s: Resize Align Corners is not currently supported", __func__); - } - if (descriptor.m_HalfPixelCenters) - { - return Fail("%s: Resize Half Pixel Centers is not currently supported", __func__); - } + descriptor.m_AlignCorners = GetOptionalBool(operation, 4, model, data); + descriptor.m_HalfPixelCenters = GetOptionalBool(operation, 5, model, data); bool isSupported = false; FORWARD_LAYER_SUPPORT_FUNC(__func__, -- cgit v1.2.1