You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/05/11 10:56:47 UTC

[GitHub] ArneNx opened a new issue #10904: switch_bucket() sets grad_req to 'write' by default and overwrites other settings

ArneNx opened a new issue #10904: switch_bucket() sets grad_req to 'write' by default and overwrites other settings
URL: https://github.com/apache/incubator-mxnet/issues/10904
 
 
   https://github.com/apache/incubator-mxnet/blob/251ae71a20d8318ab20f4c19520f74b881fdf3ff/python/mxnet/module/bucketing_module.py#L353
   
   I want to set the ``grad_req`` for all my parameters to ``'add'`` by using specifying it in the ``bind()`` call on my top-level module. 
   The problem is that I use a ``BucketingModule``. So when I call ``forward``, it automatically calls the ``switch_bucket`` method, which then calls ``bind`` again without specifying ``grad_req`` and therefore setting it to ``'write'``. 
   
   Is this intended behavior? Can I somehow work around this while still using bucketing?
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services