Is there any way to run it on MacOS without Nvidia GPU?
YuliaInn opened this issue · 2 comments
YuliaInn commented
I installed PyTorch for MacOS. When I run ./run_lm-lstm-crf5.sh I get this:
AttributeError: module 'torch._C' has no attribute '_cuda_setDevice'
Does this mean that if I do not have Nvidia there is no way to run your tool?
yuzhimanhua commented
Could you try the following?
torch._C._cuda_setDevice(-1)
Also, even if you can run the code with CPU, it will be extremely slow.
YuliaInn commented
torch._C._cuda_setDevice(-1) did not work for me.
But I found a server with GPU server, thank you