Skip to content Skip to sidebar Skip to footer

Error In Creating An Offline Pdf Documentatin For Pytorch

I wanted to make an offline PDF on my system for PyTorch documentation. After reading from several resources #1, #2, #3 git clone https://github.com/pytorch/pytorch cd pytorch/do

Solution 1:

The PyTorch version installed in your machine (1.4.0) is older than the one you cloned (most recent). Two ways to fix it:

  1. Checkout to the version you have installed (if you want the doc of 1.4 version):
git clone https://github.com/pytorch/pytorch

# move back to the 1.4 release, which you have installed in your machine
cd pytorch
git checkout release/1.4

cd docs
make latexpdf
  1. Upgrade to the most-recent PyTorch version (if you want the most recent doc):
# upgrade PyTorch to the nightly release (change it accordingly)
python -m pip install --pre torch torchvision torchaudio -f https://download.pytorch.org/whl/nightly/cu102/torch_nightly.html

git clone https://github.com/pytorch/pytorch

cd pytorch/docs/

make latexpdf

Post a Comment for "Error In Creating An Offline Pdf Documentatin For Pytorch"