Generate offline documentation

Hi,

I’m running make html in docs folder in order to generate offline documentation but I got an error:

Traceback (most recent call last):
File “source/scripts/build_activation_images.py”, line 68, in
function = torch.nn.modules.activation.dictfunction_name
KeyError: ‘GELU’
Makefile:17: recipe for target ‘figures’ failed
make: *** [figures] Error 1

I cannot figure out how to fix it, can anyone help me ?
Thanks !

Do you have properly recursively clones the repo and installed pytorch before?

Yes everything is working fine expect the documentation

Can you give the full traceback please?

Same Error, my torch version is 1.3.1

Traceback (most recent call last):
  File "source/scripts/build_activation_images.py", line 68, in <module>
    function = torch.nn.modules.activation.__dict__[function_name]()
KeyError: 'GELU'
make: *** [figures] Error 1

Hi,

I just tried again from master and it compiles properly for me :confused:

GELU has only been added in master (not in 1.3.1). Make sure that you are using the python where the brand new pytorch is installed in.
Or build the 1.3.1 doc by first calling git checkout v1.3.1.

Hi,

I am in the master branch. What do you mean by full traceback ?

If you are on the master branch, you need to have a pytorch from the master branch installed. You can check with print(torch.__version__) in a command line.
If you have 1.3.1 installed, you will only be able to build the 1.3.1 doc.

2 Likes