IVGCVSW-4675 Fixes for VTS 1.3 GeneratedTest.Test/armnn_resize*
authorDavid Monahan <david.monahan@arm.com>
Mon, 20 Apr 2020 15:14:54 +0000 (16:14 +0100)
committerDavid Monahan <david.monahan@arm.com>
Tue, 21 Apr 2020 15:11:18 +0000 (15:11 +0000)
 * Adding HalfPixelCenters parameter to Resize Descriptor

!android-nn-driver:3061

Signed-off-by: David Monahan <david.monahan@arm.com>
Change-Id: I2713125525f434f5abe5a87183723e482df27a43

include/armnn/Descriptors.hpp

index 95eeaaa..13765e8 100644 (file)
@@ -737,6 +737,7 @@ struct ResizeDescriptor
         , m_Method(ResizeMethod::NearestNeighbor)
         , m_DataLayout(DataLayout::NCHW)
         , m_BilinearAlignCorners(false)
+        , m_HalfPixelCenters(false)
     {}
 
     bool operator ==(const ResizeDescriptor& rhs) const
@@ -745,7 +746,8 @@ struct ResizeDescriptor
                m_TargetHeight         == rhs.m_TargetHeight &&
                m_Method               == rhs.m_Method &&
                m_DataLayout           == rhs.m_DataLayout &&
-               m_BilinearAlignCorners == rhs.m_BilinearAlignCorners;
+               m_BilinearAlignCorners == rhs.m_BilinearAlignCorners &&
+               m_HalfPixelCenters     == rhs.m_HalfPixelCenters;
     }
 
     /// Target width value.
@@ -759,6 +761,8 @@ struct ResizeDescriptor
     DataLayout m_DataLayout;
     /// Aligned corners for bilinear method
     bool m_BilinearAlignCorners;
+    /// Half Pixel Centers
+    bool m_HalfPixelCenters;
 };