环境信息如下:
cuda 10.2
GCC 7.3.0
pytorch 1.5.0
torchvision 0.6.0
python 3.7.10
ninja 1.10.2
主要报错信息:
- 1
In file included from /root/jxl/Deformable-DETR-main/models/ops/src/cpu/ms_deform_attn_cpu.cpp:14:0:
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h:7:23: fatal error: cublas_v2.h: 没有那个文件或目录
- 2
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1400, in _run_ninja_build
check=True)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
- 3
Traceback (most recent call last):
File "setup.py", line 70, in <module>
cmdclass={"build_ext": torch.utils.cpp_extension.BuildExtension}
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 580, in build_extensions
build_ext.build_extensions(self)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
depends=ext.depends)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 423, in unix_wrap_ninja_compile
with_cuda=with_cuda)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1140, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1413, in _run_ninja_build
raise RuntimeError(message)
RuntimeError: Error compiling objects for extension
(deformable_detr) root@nongxin:~/jxl/Deformable-DETR-main/models/ops# sh ./make.sh
running build
running build_py
running build_ext
building 'MultiScaleDeformableAttention' extension
Emitting ninja build file /root/jxl/Deformable-DETR-main/models/ops/build/temp.linux-x86_64-3.7/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/3] c++ -MMD -MF /root/jxl/Deformable-DETR-main/models/ops/build/temp.linux-x86_64-3.7/root/jxl/Deformable-DETR-main/models/ops/src/cpu/ms_deform_attn_cpu.o.d -pthread -B /root/anaconda3/envs/deformable_detr/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/root/jxl/Deformable-DETR-main/models/ops/src -I/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include -I/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/TH -I/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/THC -I/root/anaconda3/envs/deformable_detr/include/python3.7m -c -c /root/jxl/Deformable-DETR-main/models/ops/src/cpu/ms_deform_attn_cpu.cpp -o /root/jxl/Deformable-DETR-main/models/ops/build/temp.linux-x86_64-3.7/root/jxl/Deformable-DETR-main/models/ops/src/cpu/ms_deform_attn_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=MultiScaleDeformableAttention -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
FAILED: /root/jxl/Deformable-DETR-main/models/ops/build/temp.linux-x86_64-3.7/root/jxl/Deformable-DETR-main/models/ops/src/cpu/ms_deform_attn_cpu.o
c++ -MMD -MF /root/jxl/Deformable-DETR-main/models/ops/build/temp.linux-x86_64-3.7/root/jxl/Deformable-DETR-main/models/ops/src/cpu/ms_deform_attn_cpu.o.d -pthread -B /root/anaconda3/envs/deformable_detr/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/root/jxl/Deformable-DETR-main/models/ops/src -I/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include -I/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/TH -I/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/THC -I/root/anaconda3/envs/deformable_detr/include/python3.7m -c -c /root/jxl/Deformable-DETR-main/models/ops/src/cpu/ms_deform_attn_cpu.cpp -o /root/jxl/Deformable-DETR-main/models/ops/build/temp.linux-x86_64-3.7/root/jxl/Deformable-DETR-main/models/ops/src/cpu/ms_deform_attn_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=MultiScaleDeformableAttention -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /root/jxl/Deformable-DETR-main/models/ops/src/cpu/ms_deform_attn_cpu.cpp:14:0:
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/cuda/CUDAContext.h:7:23: fatal error: cublas_v2.h: 没有那个文件或目录
compilation terminated.
[2/3] /usr/bin/nvcc -DWITH_CUDA -I/root/jxl/Deformable-DETR-main/models/ops/src -I/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include -I/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/TH -I/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/THC -I/root/anaconda3/envs/deformable_detr/include/python3.7m -c -c /root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu -o /root/jxl/Deformable-DETR-main/models/ops/build/temp.linux-x86_64-3.7/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr --compiler-options '-fPIC' -DCUDA_HAS_FP16=1 -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=MultiScaleDeformableAttention -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -std=c++14
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_im2col_cuda.cuh(261): warning: variable "q_col" was declared but never referenced
detected during instantiation of "void ms_deformable_im2col_cuda(cudaStream_t, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *) [with scalar_t=double]"
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu(64): here
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_im2col_cuda.cuh(762): warning: variable "q_col" was declared but never referenced
detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]"
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu(134): here
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_im2col_cuda.cuh(872): warning: variable "q_col" was declared but never referenced
detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]"
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu(134): here
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_im2col_cuda.cuh(331): warning: variable "q_col" was declared but never referenced
detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]"
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu(134): here
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_im2col_cuda.cuh(436): warning: variable "q_col" was declared but never referenced
detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]"
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu(134): here
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_im2col_cuda.cuh(544): warning: variable "q_col" was declared but never referenced
detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]"
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu(134): here
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_im2col_cuda.cuh(649): warning: variable "q_col" was declared but never referenced
detected during instantiation of "void ms_deformable_col2im_cuda(cudaStream_t, const scalar_t *, const scalar_t *, const int64_t *, const int64_t *, const scalar_t *, const scalar_t *, int, int, int, int, int, int, int, scalar_t *, scalar_t *, scalar_t *) [with scalar_t=double]"
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu(134): here
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu: In function ‘at::Tensor ms_deform_attn_cuda_forward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int)’:
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:34:62: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
AT_ASSERTM(value.type().is_cuda(), "value must be a CUDA tensor");
^
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:262:1: note: declared here
DeprecatedTypeProperties & type() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:35:71: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
AT_ASSERTM(spatial_shapes.type().is_cuda(), "spatial_shapes must be a CUDA tensor");
^
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:262:1: note: declared here
DeprecatedTypeProperties & type() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:36:74: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
AT_ASSERTM(level_start_index.type().is_cuda(), "level_start_index must be a CUDA tensor");
^
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:262:1: note: declared here
DeprecatedTypeProperties & type() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:37:69: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
AT_ASSERTM(sampling_loc.type().is_cuda(), "sampling_loc must be a CUDA tensor");
^
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:262:1: note: declared here
DeprecatedTypeProperties & type() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:38:68: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
AT_ASSERTM(attn_weight.type().is_cuda(), "attn_weight must be a CUDA tensor");
^
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:262:1: note: declared here
DeprecatedTypeProperties & type() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu: In lambda function:
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:64:43: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
AT_DISPATCH_FLOATING_TYPES(value.type(), "ms_deform_attn_forward_cuda", ([&] {
^
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:262:1: note: declared here
DeprecatedTypeProperties & type() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:64:98: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated: passing at::DeprecatedTypeProperties to an AT_DISPATCH macro is deprecated, pass an at::ScalarType instead [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:46:1: note: declared here
inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties &t) {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu: In lambda function:
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:64:269: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:64:348: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:64:384: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:64:417: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:64:500: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:64:658: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu: In lambda function:
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:64:821: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:64:900: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:64:936: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:64:968: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:64:1050: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:64:1207: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu: In function ‘std::vector<at::Tensor> ms_deform_attn_cuda_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int)’:
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:100:62: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
AT_ASSERTM(value.type().is_cuda(), "value must be a CUDA tensor");
^
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:262:1: note: declared here
DeprecatedTypeProperties & type() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:101:71: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
AT_ASSERTM(spatial_shapes.type().is_cuda(), "spatial_shapes must be a CUDA tensor");
^
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:262:1: note: declared here
DeprecatedTypeProperties & type() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:102:74: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
AT_ASSERTM(level_start_index.type().is_cuda(), "level_start_index must be a CUDA tensor");
^
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:262:1: note: declared here
DeprecatedTypeProperties & type() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:103:69: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
AT_ASSERTM(sampling_loc.type().is_cuda(), "sampling_loc must be a CUDA tensor");
^
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:262:1: note: declared here
DeprecatedTypeProperties & type() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:104:68: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
AT_ASSERTM(attn_weight.type().is_cuda(), "attn_weight must be a CUDA tensor");
^
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:262:1: note: declared here
DeprecatedTypeProperties & type() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:105:68: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
AT_ASSERTM(grad_output.type().is_cuda(), "grad_output must be a CUDA tensor");
^
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:262:1: note: declared here
DeprecatedTypeProperties & type() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu: In lambda function:
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:43: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
AT_DISPATCH_FLOATING_TYPES(value.type(), "ms_deform_attn_backward_cuda", ([&] {
^
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:262:1: note: declared here
DeprecatedTypeProperties & type() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:98: warning: ‘c10::ScalarType detail::scalar_type(const at::DeprecatedTypeProperties&)’ is deprecated: passing at::DeprecatedTypeProperties to an AT_DISPATCH macro is deprecated, pass an at::ScalarType instead [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:46:1: note: declared here
inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties &t) {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu: In lambda function:
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:277: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:303: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:382: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:418: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:451: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:534: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:695: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:779: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:867: warning: ‘T* at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu: In lambda function:
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:1090: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:1115: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:1194: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:1230: warning: ‘T* at::Tensor::data() const [with T = long int]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:1262: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:1344: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:1504: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:1587: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
/root/jxl/Deformable-DETR-main/models/ops/src/cuda/ms_deform_attn_cuda.cu:134:1674: warning: ‘T* at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data<T>() is deprecated. Please use Tensor.data_ptr<T>() instead. [-Wdeprecated-declarations]
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:341:1: note: declared here
T * data() const {
^
[3/3] c++ -MMD -MF /root/jxl/Deformable-DETR-main/models/ops/build/temp.linux-x86_64-3.7/root/jxl/Deformable-DETR-main/models/ops/src/vision.o.d -pthread -B /root/anaconda3/envs/deformable_detr/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/root/jxl/Deformable-DETR-main/models/ops/src -I/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include -I/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/TH -I/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/THC -I/root/anaconda3/envs/deformable_detr/include/python3.7m -c -c /root/jxl/Deformable-DETR-main/models/ops/src/vision.cpp -o /root/jxl/Deformable-DETR-main/models/ops/build/temp.linux-x86_64-3.7/root/jxl/Deformable-DETR-main/models/ops/src/vision.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=MultiScaleDeformableAttention -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /root/jxl/Deformable-DETR-main/models/ops/src/vision.cpp:11:0:
/root/jxl/Deformable-DETR-main/models/ops/src/ms_deform_attn.h: In function ‘at::Tensor ms_deform_attn_forward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int)’:
/root/jxl/Deformable-DETR-main/models/ops/src/ms_deform_attn.h:29:20: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
if (value.type().is_cuda())
^
In file included from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:11:0,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /root/jxl/Deformable-DETR-main/models/ops/src/cpu/ms_deform_attn_cpu.h:12,
from /root/jxl/Deformable-DETR-main/models/ops/src/ms_deform_attn.h:13,
from /root/jxl/Deformable-DETR-main/models/ops/src/vision.cpp:11:
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:262:30: note: declared here
DeprecatedTypeProperties & type() const {
^
In file included from /root/jxl/Deformable-DETR-main/models/ops/src/vision.cpp:11:0:
/root/jxl/Deformable-DETR-main/models/ops/src/ms_deform_attn.h: In function ‘std::vector<at::Tensor> ms_deform_attn_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int)’:
/root/jxl/Deformable-DETR-main/models/ops/src/ms_deform_attn.h:51:20: warning: ‘at::DeprecatedTypeProperties& at::Tensor::type() const’ is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
if (value.type().is_cuda())
^
In file included from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:11:0,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/ATen.h:5,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:4,
from /root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /root/jxl/Deformable-DETR-main/models/ops/src/cpu/ms_deform_attn_cpu.h:12,
from /root/jxl/Deformable-DETR-main/models/ops/src/ms_deform_attn.h:13,
from /root/jxl/Deformable-DETR-main/models/ops/src/vision.cpp:11:
/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:262:30: note: declared here
DeprecatedTypeProperties & type() const {
^
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1400, in _run_ninja_build
check=True)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "setup.py", line 70, in <module>
cmdclass={"build_ext": torch.utils.cpp_extension.BuildExtension}
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 580, in build_extensions
build_ext.build_extensions(self)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 196, in build_extension
_build_ext.build_extension(self, ext)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/distutils/command/build_ext.py", line 534, in build_extension
depends=ext.depends)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 423, in unix_wrap_ninja_compile
with_cuda=with_cuda)
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1140, in _write_ninja_file_and_compile_objects
error_prefix='Error compiling objects for extension')
File "/root/anaconda3/envs/deformable_detr/lib/python3.7/site-packages/torch/utils/cpp_extension.py", line 1413, in _run_ninja_build
raise RuntimeError(message)
RuntimeError: Error compiling objects for extension