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

focal_loss_cuda.obj : error LNK2001: 无法解析的外部符号 "public: long __cdecl at::Tensor::item<long>(void)const " (??$item@J@Tensor@at@@QEBAJXZ) build\lib.win-amd64-3.8\mmdet\cv_core\_ext.cp38-win_amd64.pyd : fatal error LNK1120: 1 个无法解析的外部命令 #23

Open
ouening opened this issue Dec 18, 2020 · 0 comments

Comments

@ouening
Copy link

ouening commented Dec 18, 2020

OS: Win10
CUDA: 11.0
pytorch: 1.7.1+cu110
python: 3.8

编译mmdetection-mini时出现了以下错误:

LIB:build\temp.win-amd64-3.8\Release\./mmdet/cv_core/ops/csrc/pytorch\_ext.cp38-win_amd64.lib
  正在创建库 build\temp.win-amd64-3.8\Release\./mmdet/cv_core/ops/csrc/pytorch\_ext.cp38-win_amd64.lib 和对象 build\temp.win-amd64-3.8\Release\./mmdet/cv_core/ops/csrc/pytorch\_ext.cp38-win_amd64.exp
focal_loss_cuda.obj : error LNK2001: 无法解析的外部符号 "public: long __cdecl at::Tensor::item<long>(void)const " (??$item@J@Tensor@at@@QEBAJXZ)
build\lib.win-amd64-3.8\mmdet\cv_core\_ext.cp38-win_amd64.pyd : fatal error LNK1120: 1 个无法解析的外部命令
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x64\\link.exe' failed with exit status 1120

windows下的mmcv-full已经在mmcv的讨论open-mmlab/mmcv#709 (comment) 中实现了编译安装。mmdetection是可以正常编译的。

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

1 participant