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

raise ImportError("torch.utils.ffi is deprecated. Please use cpp extensions instead.") ImportError: torch.utils.ffi is deprecated. Please use cpp extensions instead. #52

Open
karlcao opened this issue Nov 20, 2019 · 6 comments

Comments

@karlcao
Copy link

karlcao commented Nov 20, 2019

I follow the guidance, but pytorch1.0 do not support torch.utils.ffi. I can not run the code

@karlcao
Copy link
Author

karlcao commented Nov 20, 2019

can not from torch.utils.ffi import _warp

@swjtulinxi
Copy link

你好,请问单张gpu是不是可以直接用nn.BatchNorm2d,然后DataParallelModel(deeplab),,DataParallelCriterion(criterion)这两句都可以不要对吧

@swjtulinxi
Copy link

还有你这个代码当中的模型中输出两个值下,x和dsn,dsn用于辅助损失函数,像pspnet那样,但计算loss时并没有把dsn考虑进去

@eternaldolphin
Copy link

can not from torch.utils.ffi import _warp

how do you solve the problem?I have the same problem with you.

@skyler9901
Copy link

1.find the following sentence:
from torch.utils.ffi import create_extension
change it to :
from torch.utils.cpp_extension import BuildExtension
2. find the following sentence:
ffi = create_extension(…)
change it to:
ffi = BuildExtension(…)

@fachengxionglxq
Copy link

这个好像并不能解决问题

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