From 8301291be25af9a66c16b29a9231a7b814867ddc Mon Sep 17 00:00:00 2001 From: Eric Kunze Date: Tue, 19 Mar 2024 16:25:09 -0700 Subject: Move DIM to Shape operator section Is more appropriate than the Data Layout section Signed-off-by: Eric Kunze Change-Id: I5427d867b13a69dc0d66e268db4c64e047c65c7f --- chapters/data_layout.adoc | 11 ------ chapters/shape.adoc | 11 ++++++ tosa.xml | 96 +++++++++++++++++++++++------------------------ 3 files changed, 59 insertions(+), 59 deletions(-) diff --git a/chapters/data_layout.adoc b/chapters/data_layout.adoc index c6afc4f..7b98271 100644 --- a/chapters/data_layout.adoc +++ b/chapters/data_layout.adoc @@ -33,17 +33,6 @@ include::{generated}/operators/PAD.adoc[] include::{pseudocode}/operators/PAD.tosac[lines=10..-1] ---- -==== DIM - -Returns a length 1 shape_t of the size of the input tensor for the given axis. - -include::{generated}/operators/DIM.adoc[] - -[source,c++] ----- -include::{pseudocode}/operators/DIM.tosac[lines=10..-1] ----- - ==== RESHAPE Returns a tensor with the same type/values as the input, with a new shape specified by the shape argument. Reshape may operate on tensors of any rank. No data conversion happens during a reshape operation. diff --git a/chapters/shape.adoc b/chapters/shape.adoc index 1b58465..1f91cd4 100644 --- a/chapters/shape.adoc +++ b/chapters/shape.adoc @@ -49,6 +49,17 @@ include::{generated}/operators/CONST_SHAPE.adoc[] include::{pseudocode}/operators/CONST_SHAPE.tosac[lines=10..-1] ---- +==== DIM + +Returns a length 1 shape_t of the size of the input tensor for the given axis. + +include::{generated}/operators/DIM.adoc[] + +[source,c++] +---- +include::{pseudocode}/operators/DIM.tosac[lines=10..-1] +---- + ==== DIV_SHAPE Elementwise integer divide of input1 by input2. The result of the divide is truncated towards zero. diff --git a/tosa.xml b/tosa.xml index 5973ff1..0b4315b 100644 --- a/tosa.xml +++ b/tosa.xml @@ -2202,54 +2202,6 @@ - - DIM - - - Input tensor - - - - - Axis in range from 0 to rank(shape) - 1 - - - - Output shape type of size 1 giving the size of the shape for the given axis - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - RESHAPE @@ -3236,6 +3188,54 @@ used. + + DIM + + + Input tensor + + + + + Axis in range from 0 to rank(shape) - 1 + + + + Output shape type of size 1 giving the size of the shape for the given axis + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + DIV_SHAPE -- cgit v1.2.1