piiswrong commented on a change in pull request #7261: Add grad_req parameter to Block that is passed to ParameterDict.get URL: https://github.com/apache/incubator-mxnet/pull/7261#discussion_r130414628
########## File path: python/mxnet/gluon/parameter.py ########## @@ -374,6 +374,15 @@ def __repr__(self): content='\n'.join([_indent(' {0}'.format(v), 2) for v in self.values()])) + def setattr(self, attr, value, prefix=""): + """Sets p.attr = value for all params p if their name starts with prefix. + + Can be useful to change the grad_req attribute of a set of parameters. Review comment: Please add explanation for arguments ``` Parameters ----------- ... ``` ---------------------------------------------------------------- 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