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.