[Solved] Python setup.py install Error: error: identifier “AT_CHECK“ is undefined

Problem:

Run Python setup.py install error: identifier “at_check” is undefined

Solution:
Add the following codes in the corresponding error report file

#ifndef AT_CHECK
#define AT_CHECK TORCH_CHECK 
#endif

Reference source:
https://github.com/mrlooi/rotated_maskrcnn/issues/31

Read More: