ptrendx commented on a change in pull request #13362: Add NHWC layout support 
to Pooling (cuDNN only)
URL: https://github.com/apache/incubator-mxnet/pull/13362#discussion_r239253297
 
 

 ##########
 File path: python/mxnet/gluon/nn/conv_layers.py
 ##########
 @@ -673,7 +673,7 @@ def __init__(self, channels, kernel_size, strides=(1, 1, 
1), padding=(0, 0, 0),
 class _Pooling(HybridBlock):
     """Abstract class for different pooling layers."""
     def __init__(self, pool_size, strides, padding, ceil_mode, global_pool,
-                 pool_type, count_include_pad=None, **kwargs):
+                 pool_type, layout, count_include_pad=None, **kwargs):
 
 Review comment:
   I'm not sure I understand - that option was already exposed to users, e.g. 
see here: 
https://mxnet.incubator.apache.org/api/python/gluon/nn.html#mxnet.gluon.nn.MaxPool1D
   It just was not passed up to base class and to C++ because pooling supported 
only 1 layout.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to