fix hub doc formatting issues (#19434)

Summary:
minor fixes for doc
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19434

Differential Revision: D15003903

Pulled By: ailzhang

fbshipit-source-id: 400768d9a5ee24f9183faeec9762b688c48c531b
This commit is contained in:
Ailing Zhang
2019-04-18 15:58:45 -07:00
committed by Facebook Github Bot
parent a5c4348d54
commit 4c93be0fa0

View File

@ -98,11 +98,10 @@ Where are my downloaded models saved?
The locations are used in the order of
- hub_dir: user specified path. It can be set in the following ways:
- Calling ``hub.set_dir(<PATH_TO_HUB_DIR>)``
- ``$TORCH_HOME/hub``, if environment variable ``TORCH_HOME`` is set.
- ``$XDG_CACHE_HOME/torch/hub``, if environment variable ``XDG_CACHE_HOME` is set.
- ``~/.cache/torch/hub``
- Calling ``hub.set_dir(<PATH_TO_HUB_DIR>)``
- ``$TORCH_HOME/hub``, if environment variable ``TORCH_HOME`` is set.
- ``$XDG_CACHE_HOME/torch/hub``, if environment variable ``XDG_CACHE_HOME`` is set.
- ``~/.cache/torch/hub``
.. autofunction:: set_dir