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
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 @@
 
     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;