/usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:262:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
mmdet/ops/nms/src/nms_cuda.cpp:4:23: error: ‘AT_CHECK’ was not declared in this scope
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^
mmdet/ops/nms/src/nms_cuda.cpp:4:23: note: in definition of macro ‘CHECK_CUDA’
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^~~~~~~~
mmdet/ops/nms/src/nms_cuda.cpp:4:23: note: suggested alternative: ‘DCHECK’
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^
mmdet/ops/nms/src/nms_cuda.cpp:4:23: note: in definition of macro ‘CHECK_CUDA’
#define CHECK_CUDA(x) AT_CHECK(x.type().is_cuda(), #x, " must be a CUDAtensor ")
^~~~~~~~
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1现在我得到的所有信息:
8.2
正常吗?发生了什么?库达错误?gcc出错了吗?如何解决。我被急忙用它来运行‘m检测程序。
发布于 2020-05-28 22:26:14
解决办法是:
conda install pytorch cudatoolkit==10.0 torchvision -c pytorch -y如果使用的分支早于v2.0.0。
或者:
conda install pytorch cudatoolkit torchvision -c pytorch -y如果分支等于v2.0.0。
我花了三天时间才弄明白。基本上,如果您安装了cudatoolkit==10.0,这将迫使pytorch降级为pytorch版本1.4,这使得整个工作正常进行。这一点都不明显。在我看来,这是my检测安装指南中的一个错误。
发布于 2022-04-25 02:30:58
AT_CHECK不用于新版本的pytorch。
解决方案:尝试将所有AT_CHECK替换为TORCH_CHECK
https://stackoverflow.com/questions/61559479
复制相似问题