aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Kunze <eric.kunze@arm.com>2022-05-24 15:22:06 -0700
committerEric Kunze <eric.kunze@arm.com>2022-06-07 16:19:30 -0700
commitec0327d25eba24ccea2a4580bf51a70a388b520f (patch)
treed6a99912c275e4b0ed93bfd97b9064a7b4afa25b
parent86c403b654fe6038f26ed7dccb982ffca970b920 (diff)
downloadreference_model-ec0327d25eba24ccea2a4580bf51a70a388b520f.tar.gz
Change size check in TILE to ERROR_IF
Now corresponds with the ERROR_IF in the specification Signed-off-by: Eric Kunze <eric.kunze@arm.com> Change-Id: I1f4e303c330d18661ca2e6ef65d0119baabedec6
-rw-r--r--reference_model/src/ops/data_layout.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/reference_model/src/ops/data_layout.cc b/reference_model/src/ops/data_layout.cc
index df7084d..49f53e8 100644
--- a/reference_model/src/ops/data_layout.cc
+++ b/reference_model/src/ops/data_layout.cc
@@ -497,11 +497,8 @@ int OpTileBase<Rank, Dtype>::checkTensorAttributes()
for (int32_t d = 0; d < Rank; d++)
{
- if (in->getShape()[d] * attribute->multiples()[d] != out->getShape()[d])
- {
- printNodeValidationError("unexpected output shape");
- return 1;
- }
+ ERROR_IF(in->getShape()[d] * attribute->multiples()[d] != out->getShape()[d],
+ "Output shape not equal to input * multiples;")
}
return 0;