diff options
author | Kevin Cheng <kevin.cheng@arm.com> | 2021-09-29 16:57:55 -0700 |
---|---|---|
committer | Kevin Cheng <kevin.cheng@arm.com> | 2021-09-30 23:11:26 +0100 |
commit | c72b59cc5c1d9251c7794edbeae8fc6b7f30f783 (patch) | |
tree | 537e43be22c7b7f12258315b26e1f14c67028503 /reference_model/src/ops/ewise_unary.cc | |
parent | 903763c07f1c8a77783735b05a6a9d722bee1639 (diff) | |
download | reference_model-c72b59cc5c1d9251c7794edbeae8fc6b7f30f783.tar.gz |
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 <kevin.cheng@arm.com>
Change-Id: I689518933a2b56cd62793e3f28ea66a6e57b057c
Diffstat (limited to 'reference_model/src/ops/ewise_unary.cc')
-rw-r--r-- | reference_model/src/ops/ewise_unary.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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<Rank, Dtype>::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; } |