ChaiBapchya commented on a change in pull request #13955: adding the gluon 
implementation of deformable convolution
URL: https://github.com/apache/incubator-mxnet/pull/13955#discussion_r249946796
 
 

 ##########
 File path: python/mxnet/gluon/contrib/nn/conv_layers.py
 ##########
 @@ -0,0 +1,221 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+# coding: utf-8
+# pylint: disable= arguments-differ
+"""Custom neural network layers in model_zoo."""
+__all__ = ['Deformable_Convolution']
+
+from .... import symbol
+from ...block import HybridBlock
+from ....base import numeric_types
+from ...nn import Activation
+
+class Deformable_Convolution(HybridBlock):
+    """Deformable Convolution v_1
+
+    Normal Convolution uses sampling points in a regular grid, while the 
sampling points of Deformable Convolution[1]
+    can be offset. The offset is learned with a separately convolution layer 
during the training. Both the convolution
+    layer for generating the output features and the offsets are included in 
this gluon layer.
+
+    Parameters
+    ----------
+    channels : int, default 0
+        The dimensionality of the output space
+        i.e. the number of output channels in the convolution.
+    kernel_size : int or tuple/list of n ints
+        Specifies the dimensions of the convolution window.
+    strides: int or tuple/list of n ints,
+        Specifies the strides of the convolution.
+    padding : int or tuple/list of n ints,
+        If padding is non-zero, then the input is implicitly zero-padded
+        on both sides for padding number of points
+    dilation: int or tuple/list of n ints,
+        Specifies the dilation rate to use for dilated convolution.
+    groups : int
 
 Review comment:
   default 1

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to