You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by gi...@git.apache.org on 2017/08/02 12:32:17 UTC

[GitHub] leezu opened a new issue #7306: Gluon / Autograd is_train documentation

leezu opened a new issue #7306: Gluon / Autograd is_train documentation
URL: https://github.com/apache/incubator-mxnet/issues/7306
 
 
   As far as I understand `AutogradRuntime::Get()->IsTraining()` is used throughout the [NDArray API](https://github.com/apache/incubator-mxnet/blob/dad83816511ec04157d2743ee1f220e74a6b0c27/src/c_api/c_api_ndarray.cc) to determine how to set the `OpContext` argument to the functions.
   
   `with autograd.record()`sets the training attribute of AutogradRuntime to True and resets it when leaving the block.
   
   Is this correct? This should be documented. The current Gluon documentation does not state anything about how `OpContext.is_train` is determined, even though this is very relevant to the BatchNorm and Dropout operators. If you confirm my understanding I can add a short note to the Gluon Tutorial. If a documentation page for autograd is added it would make sense to also mention it there.
   
 
----------------------------------------------------------------
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