From 526f6c7b5d20e967109ca92c8fc54c26c0438135 Mon Sep 17 00:00:00 2001 From: Eric Kunze Date: Fri, 12 Jan 2024 17:18:42 -0800 Subject: Add section of shape operators Rework of the shape operations. Shape operations are now done in shape specific operators rather than being based on type. shape_t is reworked to a list of size_t values. Signed-off-by: Eric Kunze Change-Id: I2fca0728f9caa6a6fc34a8ce9e389bb581eea959 --- tosa.xml | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 97 insertions(+), 25 deletions(-) (limited to 'tosa.xml') diff --git a/tosa.xml b/tosa.xml index 613fdf9..ed5a25b 100644 --- a/tosa.xml +++ b/tosa.xml @@ -822,7 +822,6 @@ - @@ -957,7 +956,6 @@ - LOGICAL_AND @@ -1169,7 +1167,6 @@ - @@ -1237,7 +1234,6 @@ - @@ -1936,7 +1932,6 @@ - @@ -1957,9 +1952,10 @@ Input tensor - - Number of pad elements at the start and end of each dimension - + + Number of pad elements at the start and end of each dimension. + The values in padding are interpreted as start, end of each dimension. + As an example for rank 2, the values would be interpreted as [start_dim0, end_dim0, start_dim1, end_dim1]. Constant value to be used as padding @@ -2003,9 +1999,8 @@ Axis in range from 0 to rank(shape) - 1 - - Output rank 0 tensor giving the size of the shape for the given axis - + + Output shape type of size 1 giving the size of the shape for the given axis @@ -2036,9 +2031,8 @@ - - 1D shape tensor giving the new shape. - + + shape_t giving the new shape. Output tensor of same type, size as the input tensor @@ -2090,7 +2084,6 @@ - @@ -2111,11 +2104,11 @@ Input tensor - + List of integer coordinates, of length equal to the rank of input1. Start coordinate for slicing. - + List of integer size values, of length equal to the rank of input1. Size of the input to be used. @@ -2153,7 +2146,7 @@ used. Input tensor - + Number of times to replicate input1 in each dimension @@ -2229,7 +2222,7 @@ used. 3D value tensor - + 2D index tensor @@ -2264,7 +2257,7 @@ used. 3D values in tensor - + 2D index tensor @@ -2305,17 +2298,17 @@ used. Input tensor - + [scale_y_n, scale_y_d, scale_x_n, scale_x_d] - + [offset_y, offset_x] - + [border_y, border_x] @@ -2559,7 +2552,6 @@ used. - @@ -2680,7 +2672,7 @@ used. Globally unique identifier for the declared variable tensor. - + The variable tensor shape @@ -2724,6 +2716,86 @@ used. + + + ADD_SHAPE + + + Input 1 + + + Input 2 + + + Output shape + + + + + CONCAT_SHAPE + + + List of input shape values + + + Output shape + + + + + CONST_SHAPE + + + Constant shape + + + Output shape + + + + + DIV_SHAPE + + + Input 1 + + + Input 2 + + + Output shape + + + + + MUL_SHAPE + + + Input 1 + + + Input 2 + + + Output shape + + + + + SUB_SHAPE + + + Input 1 + + + Input 2 + + + Output shape + + + + -- cgit v1.2.1