ohhh, i think i know what’s happening.
You installed pytorch from conda, which installs version 0.1.9, but you are running the tests in master, which assume the master branch of torch.
To run the tests for 0.1.9, you can do:
git clone https://github.com/pytorch/pytorch
cd pytorch
git checkout v0.1.9
cd test
./run_test.sh