Skip to content

Commit 9687018

Browse files
ShawnZhongfacebook-github-bot
authored andcommitted
Remove duplicated entries in random.rst (pytorch#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: pytorch#39725 Differential Revision: D21983701 Pulled By: ngimel fbshipit-source-id: 5f515d7fd8034687e754e2c7b2ea9e154b3ea9b9
1 parent be83850 commit 9687018

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

docs/source/random.rst

-13
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,3 @@ torch.random
55

66
.. automodule:: torch.random
77
:members:
8-
9-
Random Number Generator
10-
-------------------------
11-
.. FIXME: We're missing torch.random.cuda docs.
12-
https://github.com/pytorch/pytorch/issues/27778
13-
14-
.. autofunction:: get_rng_state
15-
.. autofunction:: set_rng_state
16-
.. autofunction:: manual_seed
17-
.. autofunction:: seed
18-
.. autofunction:: initial_seed
19-
.. autofunction:: fork_rng
20-

0 commit comments

Comments
 (0)