VC-R-CNN icon indicating copy to clipboard operation
VC-R-CNN copied to clipboard

error: identifier "AT_CHECK" is undefined

Open Abonnen opened this issue 4 years ago • 1 comments

I followed the instructions to install VC-R-CNN, however when I run the last command python setup.py build develop in install.sh, I got errors:

error: identifier "AT_CHECK" is undefined

I tried the solution in another issue , I replaced AT_CHECK by TORCH_CHECK in file vc_rcnn/csrc/cuda/deform_conv_cuda.cu and vc_rcnn/csrc/cuda/deform_pool_cuda.cu and it worked.

Actually, I don't know why this happened. If anyone get the same error, I hope it helps.

Abonnen avatar Sep 06 '20 02:09 Abonnen

add

#ifndf AT_CHECK
#define AT_CHECK TORCH_CHECK
#endif

at the very beginning of:

vc_rcnn/csrc/cuda/deform_conv_cuda.cu

and

vc_rcnn/csrc/cuda/deform_pool_cuda.cu

ArghyaPal avatar Oct 11 '21 17:10 ArghyaPal