From 59c32b1816173b6971eebd1424f25eb1eae49dc2 Mon Sep 17 00:00:00 2001 From: Brian Johnson Date: Tue, 30 Jul 2019 07:50:23 -0700 Subject: [PATCH] Adds torch.random to docs/toc --- docs/source/index.rst | 1 + docs/source/random.rst | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 docs/source/random.rst diff --git a/docs/source/index.rst b/docs/source/index.rst index b22cb913d8167..93c118f1e4180 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -45,6 +45,7 @@ PyTorch is an optimized tensor library for deep learning using GPUs and CPUs. torch.hub torch.jit torch.multiprocessing + torch.random torch.utils.bottleneck torch.utils.checkpoint torch.utils.cpp_extension diff --git a/docs/source/random.rst b/docs/source/random.rst new file mode 100644 index 0000000000000..c7eaa945a72fc --- /dev/null +++ b/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 +