This is an automated email from the ASF dual-hosted git repository.

zhasheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 54d5777  add activation information for mxnet.gluon.nn._Conv (#12354)
54d5777 is described below

commit 54d5777dc2ff949c5f566fbe29a946a20cc3d3f7
Author: JackieWu <[email protected]>
AuthorDate: Sun Aug 26 03:40:37 2018 +0800

    add activation information for mxnet.gluon.nn._Conv (#12354)
---
 python/mxnet/gluon/nn/conv_layers.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/python/mxnet/gluon/nn/conv_layers.py 
b/python/mxnet/gluon/nn/conv_layers.py
index 96ecc21..5f20d20 100644
--- a/python/mxnet/gluon/nn/conv_layers.py
+++ b/python/mxnet/gluon/nn/conv_layers.py
@@ -153,6 +153,8 @@ class _Conv(HybridBlock):
             s += ', groups={num_group}'
         if self.bias is None:
             s += ', bias=False'
+        if self.act:
+            s += ', {}'.format(self.act)
         s += ')'
         shape = self.weight.shape
         return s.format(name=self.__class__.__name__,

Reply via email to