问题

error: identifier “THCState_getCurrentStream” is undefined

AT_ASSERTM(trans.type().is_cuda(), “trans must be a CUDA tensor”);

在对DCNv2模型进行编译的时候出现了报错,记录一下解决办法。

解决

1、Google:
error: identifier “THCState_getCurrentStream“ is undefined似乎是 pytorch 版本的问题!好不容易才安装上啊!!!
2、yolact模型DCNv2模块编译错误解决方法

参考:

  1. I cann’t compile compile the DCNv2 #431
  2. yolact模型DCNv2模块编译错误解决方法

相关文章:

  • 2021-04-11
  • 2021-09-11
  • 2022-12-23
  • 2021-12-11
  • 2021-11-11
  • 2021-06-04
  • 2022-12-23
  • 2021-08-28
猜你喜欢
  • 2022-03-09
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
  • 2021-09-10
  • 2021-10-05
  • 2021-06-05
相关资源
相似解决方案