Skip to content

Commit

Permalink
Adds torch.random to docs/toc (#23553)
Browse files Browse the repository at this point in the history
Summary:
Fix for   pytorch/pytorch.github.io#162
Pull Request resolved: #23553

Differential Revision: D16700003

Pulled By: soumith

fbshipit-source-id: 0d988985fee9aeadd01f9caba24987f960ce2470
  • Loading branch information
brianjo authored and facebook-github-bot committed Aug 7, 2019
1 parent 1a9334e commit b8b86de
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/source/index.rst
Expand Up @@ -45,6 +45,7 @@ PyTorch is an optimized tensor library for deep learning using GPUs and CPUs.
torch.hub <hub>
torch.jit <jit>
torch.multiprocessing <multiprocessing>
torch.random <random>
torch.utils.bottleneck <bottleneck>
torch.utils.checkpoint <checkpoint>
torch.utils.cpp_extension <cpp_extension>
Expand Down
21 changes: 21 additions & 0 deletions docs/source/random.rst
@@ -0,0 +1,21 @@
torch.random
===================================

.. currentmodule:: torch.random

.. automodule:: torch.random
:members:

Random Number Generator
-------------------------
.. autofunction:: get_rng_state
.. autofunction:: get_rng_state_all
.. autofunction:: set_rng_state
.. autofunction:: set_rng_state_all
.. autofunction:: manual_seed
.. autofunction:: manual_seed_all
.. autofunction:: seed
.. autofunction:: seed_all
.. autofunction:: initial_seed
.. autofunction:: fork_rng

0 comments on commit b8b86de

Please sign in to comment.