Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead. #22

Open
victorjdcom opened this issue Oct 26, 2018 · 4 comments

Comments

@victorjdcom
Copy link

using pytorch1.0 as required by pytorch.encoding

@SanjunLiu
Copy link

I have the same problem, some body can help me? ww

@RicheyHuang
Copy link

@victorjdcom @SanjunLiu Using the version before pytorch 1.0 should solve the problem. In my test, I use pytorch 0.3.0 along with this branch of pytorch-encoding: https://github.com/RicheyHuang/PyTorch-Encoding
It took me so much time to find out the suitable version for those dependencies since they all had been updating and some versions of codes can only be found on the forks now...
Good luck!

@Veeupup
Copy link

Veeupup commented Feb 26, 2019

Try to change the version of pytorch.It may help you.
Good luck!

@BerryLJ
Copy link

BerryLJ commented Apr 3, 2019

you can try from torch.utils.ffi import create_extension change from torch.utils.cpp_extension import BuildExtension,your code will be work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants