IVGCVSW-2685 Serialize / de-serialize the DepthwiseConvolution2d layer
Change-Id: I37e360c824b30cb14cbef86f6ff7636bc9382109
Signed-off-by: Aron Virginas-Tar <Aron.Virginas-Tar@arm.com>
diff --git a/src/armnnSerializer/Schema.fbs b/src/armnnSerializer/Schema.fbs
index cbc7da0..6c542b1 100644
--- a/src/armnnSerializer/Schema.fbs
+++ b/src/armnnSerializer/Schema.fbs
@@ -75,7 +75,8 @@
Pooling2d = 4,
Reshape = 5,
Softmax = 6,
- Convolution2d = 7
+ Convolution2d = 7,
+ DepthwiseConvolution2d = 8
}
// Base layer table to be used as part of other layers
@@ -168,6 +169,24 @@
beta:float;
}
+table DepthwiseConvolution2dLayer {
+ base:LayerBase;
+ descriptor:DepthwiseConvolution2dDescriptor;
+ weights:ConstTensor;
+ biases:ConstTensor;
+}
+
+table DepthwiseConvolution2dDescriptor {
+ padLeft:uint;
+ padRight:uint;
+ padTop:uint;
+ padBottom:uint;
+ strideX:uint;
+ strideY:uint;
+ biasEnabled:bool = false;
+ dataLayout:DataLayout = NCHW;
+}
+
table OutputLayer {
base:BindableLayerBase;
}
@@ -184,6 +203,7 @@
union Layer {
AdditionLayer,
Convolution2dLayer,
+ DepthwiseConvolution2dLayer,
InputLayer,
MultiplicationLayer,
OutputLayer,