These two days, run a mask RCNN series of network code, and execute the command Python 3 setup A bunch of such errors are received during py build development, as follows:
.../detectron2/layers/csrc/deformable/deform_conv.h(136): error: identifier "AT_CHECK" is undefined
.../detectron2/layers/csrc/deformable/deform_conv.h(184): error: identifier "AT_CHECK" is undefined
.../detectron2/layers/csrc/deformable/deform_conv.h(234): error: identifier "AT_CHECK" is undefined
.../detectron2/layers/csrc/deformable/deform_conv.h(284): error: identifier "AT_CHECK" is undefined
.../detectron2/layers/csrc/deformable/deform_conv.h(341): error: identifier "AT_CHECK" is undefined
.../detectron2/layers/csrc/deformable/deform_conv_cuda.cu(155): error: identifier "AT_CHECK " is undefined
.../detectron2/layers/csrc/deformable/deform_conv_cuda.cu(338): error: identifier "AT_CHECK " is undefined
.../detectron2/layers/csrc/deformable/deform_conv_cuda.cu(503): error: identifier "AT_CHECK " is undefined
.../detectron2/layers/csrc/deformable/deform_conv_cuda.cu(696): error: identifier "AT_CHECK " is undefined
.../detectron2/layers/csrc/deformable/deform_conv_cuda.cu(823): error: identifier "AT_CHECK " is undefined
.../detectron2/layers/csrc/deformable/deform_conv_cuda.cu(953): error: identifier "AT_CHECK " is undefined
11 errors detected in the compilation of ".../detectron2/layers/csrc/deformable/deform_conv _cuda.cu".
Solution:
Replace all AT_CHECK in deform_conv_cuda.cpp with TORCH_CHECK
or macro definition:
#ifndef AT_CHECK #define AT_CHECK TORCH_CHECK #endif
Read More:
- [Solved] Python setup.py install Error: error: identifier “AT_CHECK“ is undefined
- [Solved] bushi RuntimeError: version_ <= kMaxSupportedFileFormatVersion INTERNAL ASSERT FAILED at /pytorch/caffe2/s
- [Solved] pytorch loss.backward() Error: RuntimeError: Function AddBackward0 returned an invalid gradient at index 1…
- [Solved] RuntimeError: cuda runtime error (100) : no CUDA-capable device is detected at
- RTX 3090 Run pytorch Error: CUDA error: no kernel image is available for execution on the device
- [Solved] RuntimeError (note: full exception trace is shown but execution is paused at: <module>)
- [Solved] Pycharm Use pip Error: Script file ‘D:\Anaconda3\envs\pytorch\Scripts\pip-script.py‘ is not present
- Pytorch directly creates a tensor on the GPU error [How to Solve]
- [CUDA Environment] Python Pytorch Error: CudaSetupArgument
- Pytorch Error: RuntimeError: value cannot be converted to type float without overflow: (0.00655336,-0.00
- [Pytorch Error Solution] Pytorch distributed RuntimeError: Address already in use
- RuntimeError: stack expects each tensor to be equal size, but got [x] at entry 0 and [x] at entry 1
- [Solved] Pytorch-geometric Error: No module named torch_sparse
- [Solved] RuntimeError : PyTorch was compiled without NumPy support
- [Solved] Pytorch-transformers Error: AttributeError: ‘str‘ object has no attribute ‘shape‘
- Pytorch ValueError: Expected more than 1 value per channel when training, got input size [1, 768
- Install PyTorch in Anaconda environment
- [Solved] PyTorch Error: TypeError: exceptions must derive from BaseException
- Pytorch: error message with chunks of 0 [How to Solve]
- Pytorch Run Error: BrokenPipeError [How to Solve]