summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKrishna <krishnakalyan3@gmail.com>2019-02-15 10:34:16 -0800
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2019-02-15 10:48:18 -0800
commitb892f694400ae09eaff213fcc974fa764cdf3815 (patch)
tree7c6fd799db5585c7f1e918b30def79acebb700dc /docs
parent38139bc356b5dd59be7938be386f68138ef33ff3 (diff)
downloadpytorch-b892f694400ae09eaff213fcc974fa764cdf3815.tar.gz
pytorch-b892f694400ae09eaff213fcc974fa764cdf3815.tar.bz2
pytorch-b892f694400ae09eaff213fcc974fa764cdf3815.zip
one_hot docs missing (#17142)
Summary: one_hot docs is missing [here](https://pytorch.org/docs/master/nn.html#one-hot). I dug around and could not find a way to get this working properly. Differential Revision: D14104414 Pulled By: zou3519 fbshipit-source-id: 3f45c8a0878409d218da167f13b253772f5cc963
Diffstat (limited to 'docs')
-rw-r--r--docs/source/nn.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/source/nn.rst b/docs/source/nn.rst
index f552ebb41c..09fb41956c 100644
--- a/docs/source/nn.rst
+++ b/docs/source/nn.rst
@@ -794,11 +794,6 @@ Utilities
.. autofunction:: torch.nn.utils.remove_spectral_norm
-:hidden:`one_hot`
-~~~~~~~~~~~~~~~~~
-
-.. autofunction:: torch.nn.utils.one_hot
-
.. currentmodule:: torch.nn.utils.rnn
@@ -1171,6 +1166,11 @@ Sparse functions
.. autofunction:: embedding_bag
+:hidden:`one_hot`
+~~~~~~~~~~~~~~~~~
+
+.. autofunction:: one_hot
+
Distance functions
----------------------------------