Missing torch.nn.utils.clip_grad_norm in Anaconda-based pytorch Installation!
So, I would like to know how can I repair this error? I think somehow the installation procedure, above mentioned command, is a little incomplete! Thanks
mderakhshani
Below is an example for installing PyTorch from source. <SCODE>$ git clone https://github.com/pytorch/pytorch
$ export CMAKE_PREFIX_PATH=/home/yunjey/anaconda3   # your anaconda path
$ conda install numpy mkl setuptools cmake gcc cffi
$ conda install -c soumith magma-cuda80
$ export MACOSX_DEPLOYMENT_TARGET=10.9   # if OSX
$ pip install -r requirements.txt
$ python setup.py install<ECODE>
yunjey
Thanks, problem was solved.
mderakhshani
We’ll be publishing new binaries soon and they will include that function.
apaszke
mderakhshani
mderakhshani
We’re working on fixing some issues with compilers over optimizing the binaries with AVX2 vector instructions, that are not available in lots of older CPUs. We’re going to publish them once we’re done with that.
apaszke