Remove duplicated entries in random.rst (#39725)

Summary:
In the current master doc, every function under [`torch.random`](https://pytorch.org/docs/master/random.html) appears twice because the function docs are generated by both `automodule` and `autofunction`.

This PR removes the parts generated by `autofunction`.

See changed docs at https://5751500-65600975-gh.circle-artifacts.com/0/docs/random.html:

![image](https://user-images.githubusercontent.com/6421097/84165823-bf720580-aa39-11ea-9149-c428d43260f8.png)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39725

Differential Revision: D21983701

Pulled By: ngimel

fbshipit-source-id: 5f515d7fd8034687e754e2c7b2ea9e154b3ea9b9
This commit is contained in:
Shawn Zhong 2020-06-10 16:47:06 -07:00 committed by Facebook GitHub Bot
parent be838504a3
commit 96870181c6

View File

@ -5,16 +5,3 @@ torch.random
.. automodule:: torch.random
:members:
Random Number Generator
-------------------------
.. FIXME: We're missing torch.random.cuda docs.
https://github.com/pytorch/pytorch/issues/27778
.. autofunction:: get_rng_state
.. autofunction:: set_rng_state
.. autofunction:: manual_seed
.. autofunction:: seed
.. autofunction:: initial_seed
.. autofunction:: fork_rng