mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
update nn.init doc to reflect the no_grad (#80882)
Fixes https://github.com/pytorch/pytorch/issues/80839 Pull Request resolved: https://github.com/pytorch/pytorch/pull/80882 Approved by: https://github.com/jbschlosser
This commit is contained in:
@ -6,6 +6,11 @@
|
|||||||
torch.nn.init
|
torch.nn.init
|
||||||
=============
|
=============
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
All the functions in this module are intended to be used to initialize neural network
|
||||||
|
parameters, so they all run in :func:`torch.no_grad` mode and will not be taken into
|
||||||
|
account by autograd.
|
||||||
|
|
||||||
.. currentmodule:: torch.nn.init
|
.. currentmodule:: torch.nn.init
|
||||||
.. autofunction:: calculate_gain
|
.. autofunction:: calculate_gain
|
||||||
.. autofunction:: uniform_
|
.. autofunction:: uniform_
|
||||||
|
Reference in New Issue
Block a user