From 0a87936e7261fc074797111d274c40fca17d9509 Mon Sep 17 00:00:00 2001 From: Mike Kelly Date: Mon, 29 Jul 2019 16:56:31 +0100 Subject: IVGCVSW-3591 Fixed unexpectedly skipped SUB tests * A model that has Inputs with different quantized scales is not compliant with 1.1 Signed-off-by: Mike Kelly Change-Id: Ifb8277d78f05b5ef017effa879322a08c0efc851 --- 1.2/HalPolicy.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '1.2/HalPolicy.cpp') diff --git a/1.2/HalPolicy.cpp b/1.2/HalPolicy.cpp index 8dbfd897..8502640c 100644 --- a/1.2/HalPolicy.cpp +++ b/1.2/HalPolicy.cpp @@ -61,7 +61,6 @@ bool HandledByV1_1(V1_2::OperationType operationType) case V1_1::OperationType::SPACE_TO_BATCH_ND: case V1_1::OperationType::SQUEEZE: case V1_1::OperationType::STRIDED_SLICE: - case V1_1::OperationType::SUB: case V1_1::OperationType::TRANSPOSE: return true; default: @@ -161,6 +160,8 @@ bool HalPolicy::ConvertOperation(const Operation& operation, const Model& model, return ConvertSoftmax(operation, model, data); case V1_2::OperationType::SPACE_TO_DEPTH: return ConvertSpaceToDepth(operation, model, data); + case V1_2::OperationType::SUB: + return ConvertSub(operation, model, data); case V1_2::OperationType::TANH: return ConvertTanH(operation, model, data); case V1_2::OperationType::LSTM: @@ -1003,6 +1004,12 @@ bool HalPolicy::ConvertSoftmax(const Operation& operation, const Model& model, C return SetupAndTrackLayerOutputSlot(operation, 0, *layer, model, data); } +bool HalPolicy::ConvertSub(const Operation& operation, const Model& model, ConversionData& data) +{ + ALOGV("hal_1_2::HalPolicy::ConvertSub()"); + return ::ConvertSub(operation, model, data); +} + bool HalPolicy::ConvertTanH(const Operation& operation, const Model& model, ConversionData& data) { ALOGV("hal_1_2::HalPolicy::ConvertTanH()"); -- cgit v1.2.1