szha commented on a change in pull request #9348: support regex of 
collect_params()
URL: https://github.com/apache/incubator-mxnet/pull/9348#discussion_r161120539
 
 

 ##########
 File path: python/mxnet/gluon/block.py
 ##########
 @@ -253,7 +253,7 @@ def collect_params(self, select=None):
         The selected :py:class:`ParameterDict`
         """
         ret = ParameterDict(self._params.prefix)
-        if select is None:
+        if not select:
 
 Review comment:
   You're right, and it should be fine as long as both empty string and None 
returns true.

----------------------------------------------------------------
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