From 298a029348e07903b1f78eb9994230fa205e869e Mon Sep 17 00:00:00 2001 From: Dominic Symes Date: Thu, 22 Oct 2020 15:36:24 +0100 Subject: Make rank() consistent across files Complete the function naming change from dimensions() to rank(). Fix MATMUL to use apply_add() for additions, consistent with the other operations. Signed-off-by: Dominic Symes Change-Id: I6ba84cf8b016505e8477b04dd00f2a2bf3194492 --- chapters/data_layout.adoc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'chapters/data_layout.adoc') diff --git a/chapters/data_layout.adoc b/chapters/data_layout.adoc index 3a7c3c3..bec551b 100644 --- a/chapters/data_layout.adoc +++ b/chapters/data_layout.adoc @@ -77,7 +77,7 @@ Zero-pads a tensor along borders of each dimension. ---- for_each (index in shape) { index1 = index - for (i=0; i(input1, shape1, index1, input1_zp, padding) @@ -151,7 +151,7 @@ Returns a tensor with the same type/values as the input, with the data reversed [source,c] ---- -assert(0<=axis && axis(input, shape1, tmp_index); @@ -232,7 +232,7 @@ Replicates input 0 multiplies times along each dimension. ---- for_each (index in shape) { tmp_index = index; - for (i=0; i