aboutsummaryrefslogtreecommitdiff
path: root/schema
diff options
context:
space:
mode:
authorTai Ly <tai.ly@arm.com>2023-08-21 17:00:29 +0000
committerTai Ly <tai.ly@arm.com>2023-08-23 15:12:30 +0000
commitc6939a4d269968a34b0ae0aa579f0f0736aaeccc (patch)
tree8925f10184fe6f4c8c179ad34d04a24d9e304bd7 /schema
parent442261bf67fa2ec4d86ed3e431a6373787b3e35a (diff)
downloadserialization_lib-c6939a4d269968a34b0ae0aa579f0f0736aaeccc.tar.gz
Add is_unranked flag to Tensors
This adds a bool field, is_unranked to TosaTensor in tosa.fbs to indicate whether a tensor with shape = {} is an unranked tensor or an 0-D tensor. For older tosa files without this field, the default value is false. Signed-off-by: Tai Ly <tai.ly@arm.com> Change-Id: I86950050b522565509863c483cd3a3c1c50f8f69
Diffstat (limited to 'schema')
-rw-r--r--schema/tosa.fbs1
1 files changed, 1 insertions, 0 deletions
diff --git a/schema/tosa.fbs b/schema/tosa.fbs
index 0943f11..9033351 100644
--- a/schema/tosa.fbs
+++ b/schema/tosa.fbs
@@ -282,6 +282,7 @@ table TosaTensor {
type:DType; // data type of the tensor
data: [ubyte] (force_align: 8); // raw data array if it's a constant tensor.
variable: bool; // is this a variable tensor
+ is_unranked: bool; // whether this is an unranked tensor
}
table TosaOperator {