From 15b05304087df1e84a08b9961c2bc4071594985b Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Mon, 31 Jul 2023 10:26:46 +0100 Subject: IVGCVSW-7825 Resolving CTS failures with Android Q and Hal 1.2. * The POW operator causes 23 CTS failures on the combination of Android Q and Hal 1.2. The problem does not manifest on later version of Android or other version of the Hal. Signed-off-by: Colm Donelan Change-Id: Ib89417b35dc51c8fcb273f63663875ef41ab3dde --- 1.2/HalPolicy.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/1.2/HalPolicy.cpp b/1.2/HalPolicy.cpp index 39616c55..9a6266e5 100644 --- a/1.2/HalPolicy.cpp +++ b/1.2/HalPolicy.cpp @@ -133,8 +133,10 @@ bool HalPolicy::ConvertOperation(const Operation& operation, const Model& model, return ConvertPad(operation, model, data); case V1_2::OperationType::PAD_V2: return ConvertPadV2(operation, model, data); - case V1_2::OperationType::POW: - return ConvertElementwiseBinary(operation, model, data, BinaryOperation::Power); +// There's a problem with the combination of Hal 1.2, Android Q and the POW operator. The problem does not happen +// with Hal 1.3. +// case V1_2::OperationType::POW: +// return ConvertElementwiseBinary(operation, model, data, BinaryOperation::Power); case V1_2::OperationType::PRELU: return ConvertPrelu(operation, model, data); case V1_2::OperationType::QUANTIZE: -- cgit v1.2.1