PyTorch-Encoding icon indicating copy to clipboard operation
PyTorch-Encoding copied to clipboard

torch/tensor.h no such file or directory

Open cannonli7 opened this issue 4 years ago • 2 comments

after I enter "importing encoding" in command line, there is an error "torch/tensor.h no such file or directory", do you know how to fix it

cannonli7 avatar May 25 '21 08:05 cannonli7

Did you install the Pytorch-Encoding well?

xialang2012 avatar May 25 '21 09:05 xialang2012

Yes, I suggest installing by command " pip install git+https://github.com/zhanghang1989/PyTorch-Encoding/ ", you may need to try multiple times. Once you succeed, go to anaconda3/envs/.../site-packages/encoding/ , copy some .py files you need from folder Pytorch-Encoding(such as folder "dilated", log.py, lr_scheduler.py from folder "utils")

At 2021-05-25 17:40:41, "xialang2012" @.***> wrote:

Did you install the Pytorch-Encoding well?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

cannonli7 avatar May 28 '21 12:05 cannonli7