commit | 830b43b1d1bd82edd57dee1f5cac12e2b5cf0e04 | [log] [tgz] |
---|---|---|
author | Dominic Symes <dominic.symes@arm.com> | Tue May 09 10:14:49 2023 +0100 |
committer | Dominic Symes <dominic.symes@arm.com> | Wed Aug 16 11:50:24 2023 +0100 |
tree | 971d15dc6ae00118d7be2df9a50dd7445d8428d9 | |
parent | e1f517c541a61d18defc671028b24824c1eadd57 [diff] |
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 <dominic.symes@arm.com> Change-Id: I484bd44452453b5e05d0d8a82689564587b224e4
This repository contains the source files for the TOSA specification. See the specification itself for details on the purpose and definition of the specification.
The TOSA specification is written in asciidoc format, and has been built using the following tools:
The default make
build creates both an html and a pdf version of the specification in out/html and out/pdf
If only an html build is required, make html
will build only the html file, and asciidoctor-pdf is not needed.
If only a pdf build is required, make pdf
will build only the pdf.