From 7e725cfbcbe2c997574158384c10c5068eb2e595 Mon Sep 17 00:00:00 2001 From: Manuel Bottini Date: Wed, 12 Aug 2020 16:05:16 +0100 Subject: COMPMID-3655: PixelWiseMultiplication incorrectly validated in Graph Change-Id: Iaae7c3fb8812c9a0c9547dfa28dda7810a81de82 Signed-off-by: Manuel Bottini Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3727 Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins Reviewed-by: Michele Di Giorgio Reviewed-by: Sang-Hoon Park --- arm_compute/graph/backends/ValidateHelpers.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'arm_compute/graph') diff --git a/arm_compute/graph/backends/ValidateHelpers.h b/arm_compute/graph/backends/ValidateHelpers.h index 0aec2aec1c..70eae6c3ad 100644 --- a/arm_compute/graph/backends/ValidateHelpers.h +++ b/arm_compute/graph/backends/ValidateHelpers.h @@ -601,7 +601,6 @@ Status validate_eltwise_Layer(EltwiseLayerNode &node) const RoundingPolicy round_policy = node.rounding_policy(); const ActivationLayerInfo act_info = node.fused_activation(); const QuantizationInfo quant_info = node.output_quant_info(); - const float scale = (quant_info.scale().empty()) ? 1.0f : quant_info.scale()[0]; // Validate function if(eltwise_op == EltwiseOperation::Add) @@ -614,7 +613,7 @@ Status validate_eltwise_Layer(EltwiseLayerNode &node) } else if(eltwise_op == EltwiseOperation::Mul) { - return EltwiseLayerFunctions::PixelWiseMultiplication::validate(input1, input2, output, scale, convert_policy, round_policy, act_info); + return EltwiseLayerFunctions::PixelWiseMultiplication::validate(input1, input2, output, 1.0f, convert_policy, round_policy, act_info); } else if(eltwise_op == EltwiseOperation::Max) { -- cgit v1.2.1