I built PyTorch from source running
python setup.py clean
python setup.py install

as described here 6 which mentions a similar problem.
I still get
TypeError: clamp() got an unexpected keyword argument 'out'

after calling either of the following:
x.clamp(-1, 0, out=x) 
torch.clamp (x, -1, 0, out=x)