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/docs/
make latexpdf
First two commands are working fine. Third command leads to the following error
Traceback (most recent call last):
File "source/scripts/build_activation_images.py", line 70, in <module>
function = torch.nn.modules.activation.__dict__[function_name]()
KeyError: 'SiLU'
How to overcome this error and make a PDF document of PyTorch?
1.4.0
is the version of PyTorch in my system
print(torch.__version__)
1.4.0
3.8.3
is the version of Python in my system
python -V
Python 3.8.3
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…