aboutsummaryrefslogtreecommitdiff
path: root/chapters/data_layout.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'chapters/data_layout.adoc')
-rw-r--r--chapters/data_layout.adoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chapters/data_layout.adoc b/chapters/data_layout.adoc
index 09df5be..e625085 100644
--- a/chapters/data_layout.adoc
+++ b/chapters/data_layout.adoc
@@ -121,7 +121,7 @@ Returns a tensor with the same type/values as the input, with a new shape specif
[source,c++]
----
-REQUIRE(tensor_size(shape1) == tensor_size(shape));
+ERROR_IF(tensor_size(shape1) != tensor_size(shape));
for(i = 0; i < tensor_size(shape); i++) {
output[i] = input[i];
}