aboutsummaryrefslogtreecommitdiff
path: root/src/armnnSerializer/Schema.fbs
diff options
context:
space:
mode:
Diffstat (limited to 'src/armnnSerializer/Schema.fbs')
-rw-r--r--src/armnnSerializer/Schema.fbs45
1 files changed, 44 insertions, 1 deletions
diff --git a/src/armnnSerializer/Schema.fbs b/src/armnnSerializer/Schema.fbs
index 411b89ad8e..048181a2b1 100644
--- a/src/armnnSerializer/Schema.fbs
+++ b/src/armnnSerializer/Schema.fbs
@@ -17,6 +17,11 @@ enum DataType : byte {
Boolean = 4
}
+enum DataLayout : byte {
+ NHWC = 0,
+ NCHW = 1
+}
+
table TensorInfo {
dimensions:[uint];
dataType:DataType;
@@ -67,7 +72,8 @@ enum LayerType : uint {
Input = 1,
Multiplication = 2,
Output = 3,
- Softmax = 4
+ Pooling2d = 4,
+ Softmax = 5
}
// Base layer table to be used as part of other layers
@@ -97,6 +103,42 @@ table MultiplicationLayer {
base:LayerBase;
}
+table Pooling2dLayer {
+ base:LayerBase;
+ descriptor:Pooling2dDescriptor;
+}
+
+enum PoolingAlgorithm : byte {
+ Max = 0,
+ Average = 1,
+ L2 = 2
+}
+
+enum OutputShapeRounding : byte {
+ Floor = 0,
+ Ceiling = 1
+}
+
+enum PaddingMethod : byte {
+ IgnoreValue = 0,
+ Exclude = 1
+}
+
+table Pooling2dDescriptor {
+ poolType:PoolingAlgorithm;
+ padLeft:uint;
+ padRight:uint;
+ padTop:uint;
+ padBottom:uint;
+ poolWidth:uint;
+ poolHeight:uint;
+ strideX:uint;
+ strideY:uint;
+ outputShapeRounding:OutputShapeRounding;
+ paddingMethod:PaddingMethod;
+ dataLayout:DataLayout;
+}
+
table SoftmaxLayer {
base:LayerBase;
descriptor:SoftmaxDescriptor;
@@ -115,6 +157,7 @@ union Layer {
InputLayer,
MultiplicationLayer,
OutputLayer,
+ Pooling2dLayer,
SoftmaxLayer
}