Skip to content

Commit

Permalink
[nnpackage] Update circle schema (Samsung#12862)
Browse files Browse the repository at this point in the history
This commit updates circle schema to 0.8.
It's a copy from  `res/CircleSchema/0.8`.

ONE-DCO-1.0-Signed-off-by: Hyeongseok Oh <[email protected]>
  • Loading branch information
hseok-oh authored Apr 15, 2024
1 parent d619e49 commit c5d216d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions nnpackage/schema/circle_schema.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
// Version 0.5: Base up to TensorFlow Lite v2.10.1 schema.
// Version 0.6: Base up to TensorFlow Lite v2.13.0 schema.
// Version 0.7: Base up to TensorFlow Lite v2.15.0 schema, deprecate data_format in Subgraph table
// Version 0.8: GRU op is added. UINT4 is added.

namespace circle;

Expand All @@ -45,6 +46,7 @@ file_extension "circle";

// The type of data stored in a tensor.
enum TensorType : byte {
UINT4 = -1,
FLOAT32 = 0,
FLOAT16 = 1,
INT32 = 2,
Expand Down Expand Up @@ -268,6 +270,7 @@ table Tensor {
// set of acceptable options.
// LINT.IfChange
enum BuiltinOperator : int32 {
GRU = -5,
BCQ_GATHER = -4,
BCQ_FULLY_CONNECTED = -3,
INSTANCE_NORM = -2,
Expand Down Expand Up @@ -616,6 +619,7 @@ union BuiltinOptions {
BitcastOptions,
BitwiseXorOptions,
RightShiftOptions,
GRUOptions = 251,
BCQGatherOptions = 252,
BCQFullyConnectedOptions = 253,
InstanceNormOptions = 254,
Expand Down Expand Up @@ -1478,6 +1482,12 @@ table ReduceWindowOptions{
reduce_function: ReduceWindowFunction;
}

table GRUOptions {
fused_activation_function:ActivationFunctionType;
return_sequences : bool;
time_major : bool;
}

table BCQGatherOptions {
input_hidden_size: int;
axis: int;
Expand Down

0 comments on commit c5d216d

Please sign in to comment.