From 3166c3edeb64d834ba27031ddd39b5b1f940b604 Mon Sep 17 00:00:00 2001 From: Saoirse Stewart Date: Mon, 18 Feb 2019 15:24:53 +0000 Subject: IVGCVSW-2645 Add Serializer & Deserializer for Pooling2d Change-Id: Iba41da3cccd539a0175f2ed0ff9a8b6a23c5fb6f Signed-off-by: Aron Virginas-Tar Signed-off-by: Saoirse Stewart --- src/armnnSerializer/Schema.fbs | 45 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) (limited to 'src/armnnSerializer/Schema.fbs') 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 } -- cgit v1.2.1