From 3cb85f329c2128c671dae1ecfdf3ab136f254d84 Mon Sep 17 00:00:00 2001 From: Ellen Norris-Thompson Date: Mon, 17 Jun 2019 11:32:49 +0100 Subject: IVGCVSW-3219: Add QSymm16 support to the ResizeBilinear Reference workload * Adds CreateWorkload and LayerTests for QSymm16 * Updated ResizeBilinearQueueDescriptor::Validate function * Reimplemented RefLayerSupport::IsResizeBilinearSupported Signed-off-by: Ellen Norris-Thompson Change-Id: Id9d14d3b41d26ac3d51227ab248ce8cca9dc9969 --- src/backends/reference/RefLayerSupport.cpp | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) (limited to 'src/backends/reference/RefLayerSupport.cpp') diff --git a/src/backends/reference/RefLayerSupport.cpp b/src/backends/reference/RefLayerSupport.cpp index a25338f906..919dd5fd6c 100644 --- a/src/backends/reference/RefLayerSupport.cpp +++ b/src/backends/reference/RefLayerSupport.cpp @@ -1183,11 +1183,24 @@ bool RefLayerSupport::IsResizeBilinearSupported(const TensorInfo& input, const TensorInfo& output, Optional reasonIfUnsupported) const { - ignore_unused(output); - return IsSupportedForDataTypeRef(reasonIfUnsupported, - input.GetDataType(), - &TrueFunc<>, - &TrueFunc<>); + bool supported = true; + std::array supportedTypes = + { + DataType::Float32, + DataType::QuantisedAsymm8, + DataType::QuantisedSymm16 + }; + + supported &= CheckSupportRule(TypeAnyOf(input, supportedTypes), reasonIfUnsupported, + "Reference ResizeBilinear: input type not supported"); + + supported &= CheckSupportRule(TypeAnyOf(output, supportedTypes), reasonIfUnsupported, + "Reference ResizeBilinear: output type not supported"); + + supported &= CheckSupportRule(TypesAreEqual(input, output), reasonIfUnsupported, + "Reference ResizeBilinear: input and output types not matching"); + + return supported; } bool RefLayerSupport::IsRsqrtSupported(const TensorInfo& input, -- cgit v1.2.1