From 4992c344c888774da0e5cffd4b607828bf46b74f Mon Sep 17 00:00:00 2001 From: Mike Kelly Date: Wed, 14 Aug 2019 11:33:11 +0100 Subject: [PATCH] IVGCVSW-3633 Fixed possible driver crash * Fixed possible driver crash due to supportedTypes arrays with the wrong size. Signed-off-by: Mike Kelly Change-Id: I52702b84089d02d3c63ff7aa5923a9f5628bec91 --- src/backends/reference/RefLayerSupport.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/backends/reference/RefLayerSupport.cpp b/src/backends/reference/RefLayerSupport.cpp index 56ca437..22d7914 100644 --- a/src/backends/reference/RefLayerSupport.cpp +++ b/src/backends/reference/RefLayerSupport.cpp @@ -372,7 +372,7 @@ bool RefLayerSupport::IsConvolution2dSupported(const TensorInfo& input, if (biases.has_value()) { - std::array biasesSupportedTypes = { + std::array biasesSupportedTypes = { DataType::Float32, DataType::Signed32 }; @@ -471,8 +471,8 @@ bool RefLayerSupport::IsDequantizeSupported(const TensorInfo& input, supported &= CheckSupportRule(TypeAnyOf(input, supportedInputTypes), reasonIfUnsupported, "Reference dequantize: input type not supported."); - std::array supportedOutputTypes = { - DataType::Float32, + std::array supportedOutputTypes = { + DataType::Float32 }; supported &= CheckSupportRule(TypeAnyOf(output, supportedOutputTypes), reasonIfUnsupported, @@ -491,7 +491,7 @@ bool RefLayerSupport::IsDetectionPostProcessSupported(const armnn::TensorInfo& i { bool supported = true; - std::vector supportedInputTypes = + std::array supportedInputTypes = { DataType::Float32, DataType::QuantisedAsymm8, @@ -1603,7 +1603,7 @@ bool RefLayerSupport::IsTransposeConvolution2dSupported(const TensorInfo& input, if (biases.has_value()) { - std::array biasesSupportedTypes = + std::array biasesSupportedTypes = { DataType::Float32, DataType::Signed32 -- 2.7.4