aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/graph/backends/ValidateHelpers.h
diff options
context:
space:
mode:
authorManuel Bottini <manuel.bottini@arm.com>2020-08-12 16:05:16 +0100
committerManuel Bottini <manuel.bottini@arm.com>2020-08-24 11:11:51 +0000
commit7e725cfbcbe2c997574158384c10c5068eb2e595 (patch)
tree687ad9bcd0ad32637d0360a76f7089e8f2a77697 /arm_compute/graph/backends/ValidateHelpers.h
parentf8e358463b4b612eb958fa2dd7588dbefe9b3e2a (diff)
downloadComputeLibrary-7e725cfbcbe2c997574158384c10c5068eb2e595.tar.gz
COMPMID-3655: PixelWiseMultiplication incorrectly validated in Graph
Change-Id: Iaae7c3fb8812c9a0c9547dfa28dda7810a81de82 Signed-off-by: Manuel Bottini <manuel.bottini@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/3727 Tested-by: Arm Jenkins <bsgcomp@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Reviewed-by: Sang-Hoon Park <sang-hoon.park@arm.com>
Diffstat (limited to 'arm_compute/graph/backends/ValidateHelpers.h')
-rw-r--r--arm_compute/graph/backends/ValidateHelpers.h3
1 files changed, 1 insertions, 2 deletions
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)
{