From 13c78a67a6a3d743352f0b6e349c52bf36e84468 Mon Sep 17 00:00:00 2001 From: Jerry Ge Date: Tue, 4 Oct 2022 20:32:39 -0700 Subject: [region] Add TosaSerializationRegion to serialization_lib - Rationale: add this fix to support constants access between multiple blocks by another layer of abstraction called Region - Changes: - flatbuffers schema update, regenerate header files - add TosaSerializationRegion for the handler - other relevant fixes Signed-off-by: Jerry Ge Change-Id: I4bb72503abfd629ae017d2f905184efbab244aa8 --- schema/tosa.fbs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'schema') diff --git a/schema/tosa.fbs b/schema/tosa.fbs index 4955139..4d5c611 100644 --- a/schema/tosa.fbs +++ b/schema/tosa.fbs @@ -297,7 +297,7 @@ table TosaTensor { table TosaOperator { op:Op; // operator enum - attribute: Attribute; // union structure. operator attribute + attribute:Attribute; // union structure. operator attribute inputs:[string]; // list of input tensor names outputs:[string]; // list of output tensor names } @@ -310,9 +310,14 @@ table TosaBasicBlock { outputs:[string]; // name of graph outputs } +table TosaRegion { + name:string; // name of region + blocks:[TosaBasicBlock]; // basic blocks array +} + table TosaGraph { - version: Version; - blocks:[TosaBasicBlock]; // basic blocks array + version:Version; + regions:[TosaRegion]; // regions array } root_type TosaGraph; -- cgit v1.2.1