From c72b59cc5c1d9251c7794edbeae8fc6b7f30f783 Mon Sep 17 00:00:00 2001 From: Kevin Cheng Date: Wed, 29 Sep 2021 16:57:55 -0700 Subject: Fixes to pass NEGATE op test. - Elementwise unary op input/output type should match. - TOSA_UNPREDICTABLE should ONLY be sent when a tensor with negative dimension is read/written Signed-off-by: Kevin Cheng Change-Id: I689518933a2b56cd62793e3f28ea66a6e57b057c --- reference_model/src/ops/ewise_unary.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'reference_model/src/ops') diff --git a/reference_model/src/ops/ewise_unary.cc b/reference_model/src/ops/ewise_unary.cc index 041bbdb..13e517b 100644 --- a/reference_model/src/ops/ewise_unary.cc +++ b/reference_model/src/ops/ewise_unary.cc @@ -48,9 +48,9 @@ int UnaryNode::checkTensorAttributes() } // output and input must be the same types - if (inputs[0]->matchRankSize(*outputs[0])) + if (inputs[0]->matchRankTypeShape(*outputs[0])) { - printNodeValidationError("UnaryNode: input and output rank must match"); + printNodeValidationError("UnaryNode: input and output rank/type/shape must match"); return 1; } -- cgit v1.2.1