From 830b43b1d1bd82edd57dee1f5cac12e2b5cf0e04 Mon Sep 17 00:00:00 2001 From: Dominic Symes Date: Tue, 9 May 2023 10:14:49 +0100 Subject: Add DIM operator and operations on shape_t values Shape inference derives the shape of tensors in the graph from input shapes. Operations such as RESHAPE may need calculations to derive the new tensor shape. This patch: - Adds a DIM operator to get the size of a tensor in a given axis as a rank 0 tensor of type shape_t - Allows RESHAPE to take a 1D shape tensor as input for the new shape - Allows RESIZE, TILE, PAD to take input sizes based on shape tensors. - Allows ADD, SUB, MUL, INTDIV to operate on rank 0 shape_t tensors - Allows CONCAT to concatenate 0D shape_t tensors to a 1D shape_t tensor - Adds CONST support for shape_t tensors In this version of the specification shape tensors must be resolvable to constants at backend compile time. Signed-off-by: Dominic Symes Change-Id: I484bd44452453b5e05d0d8a82689564587b224e4 --- tosa.xsd | 1 + 1 file changed, 1 insertion(+) (limited to 'tosa.xsd') diff --git a/tosa.xsd b/tosa.xsd index b6aa162..440dbbd 100644 --- a/tosa.xsd +++ b/tosa.xsd @@ -43,6 +43,7 @@ + -- cgit v1.2.1