From ec0327d25eba24ccea2a4580bf51a70a388b520f Mon Sep 17 00:00:00 2001 From: Eric Kunze Date: Tue, 24 May 2022 15:22:06 -0700 Subject: Change size check in TILE to ERROR_IF Now corresponds with the ERROR_IF in the specification Signed-off-by: Eric Kunze Change-Id: I1f4e303c330d18661ca2e6ef65d0119baabedec6 --- reference_model/src/ops/data_layout.cc | 7 ++----- 1 file 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::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; -- cgit v1.2.1