DCNv2
DCNv2 copied to clipboard
‘THFloatBlas_gemv’ was not declared in this scope
When I do ./make.sh, error: command 'g++' failed with exit status1 pops up, I notice there is another error above the error, which shows ‘THFloatBlas_gemv’ was not declared in this scope note: suggested alternative:‘THFloatBlas_gemm’
What can I do with this ? Anyone knows? THX
@GreysonPhoenix https://github.com/lbin/DCNv2/tree/pytorch_1.6
@GreysonPhoenix https://github.com/lbin/DCNv2/tree/pytorch_1.6
THX
@GreysonPhoenix Did you find any solution? i am facing same while building.
running build running build_ext /usr/local/lib/python3.6/dist-packages/torch/utils/cpp_extension.py:335: UserWarning: Attempted to use ninja as the BuildExtension backend but we could not find ninja.. Falling back to using the slow distutils backend. warnings.warn(msg.format('we could not find ninja.')) building '_ext' extension creating build creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/content creating build/temp.linux-x86_64-3.6/content/DCNv2 creating build/temp.linux-x86_64-3.6/content/DCNv2/src creating build/temp.linux-x86_64-3.6/content/DCNv2/src/cpu creating build/temp.linux-x86_64-3.6/content/DCNv2/src/cuda g++ -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DWITH_CUDA -I/content/DCNv2/src -I/usr/local/lib/python3.6/dist-packages/torch/include -I/usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include -I/usr/local/lib/python3.6/dist-packages/torch/include/TH -I/usr/local/lib/python3.6/dist-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.6m -c /content/DCNv2/src/vision.cpp -o build/temp.linux-x86_64-3.6/content/DCNv2/src/vision.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Parallel.h:149:0, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/all.h:7, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/extension.h:4, from /content/DCNv2/src/cpu/vision.h:2, from /content/DCNv2/src/dcn_v2.h:3, from /content/DCNv2/src/vision.cpp:2: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ParallelOpenMP.h:84:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel for if ((end - begin) >= grain_size)
In file included from /content/DCNv2/src/vision.cpp:2:0: /content/DCNv2/src/dcn_v2.h: In function ‘at::Tensor dcn_v2_forward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int, int, int, int, int, int, int, int, int)’: /content/DCNv2/src/dcn_v2.h:25: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 (input.type().is_cuda()) ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/extension.h:4, from /content/DCNv2/src/cpu/vision.h:2, from /content/DCNv2/src/dcn_v2.h:3, from /content/DCNv2/src/vision.cpp:2: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:268:30: note: declared here DeprecatedTypeProperties & type() const { ^~~~ In file included from /content/DCNv2/src/vision.cpp:2:0: /content/DCNv2/src/dcn_v2.h: In function ‘std::vectorat::Tensor dcn_v2_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int, int, int, int, int, int, int, int, int)’: /content/DCNv2/src/dcn_v2.h:61: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 (input.type().is_cuda()) ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/extension.h:4, from /content/DCNv2/src/cpu/vision.h:2, from /content/DCNv2/src/dcn_v2.h:3, from /content/DCNv2/src/vision.cpp:2: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:268:30: note: declared here DeprecatedTypeProperties & type() const { ^~~~ In file included from /content/DCNv2/src/vision.cpp:2:0: /content/DCNv2/src/dcn_v2.h: In function ‘std::tuple<at::Tensor, at::Tensor> dcn_v2_psroi_pooling_forward(const at::Tensor&, const at::Tensor&, const at::Tensor&, int, float, int, int, int, int, int, float)’: /content/DCNv2/src/dcn_v2.h:107: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 (input.type().is_cuda()) ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/extension.h:4, from /content/DCNv2/src/cpu/vision.h:2, from /content/DCNv2/src/dcn_v2.h:3, from /content/DCNv2/src/vision.cpp:2: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:268:30: note: declared here DeprecatedTypeProperties & type() const { ^~~~ In file included from /content/DCNv2/src/vision.cpp:2:0: /content/DCNv2/src/dcn_v2.h: In function ‘std::tuple<at::Tensor, at::Tensor> dcn_v2_psroi_pooling_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int, float, int, int, int, int, int, float)’: /content/DCNv2/src/dcn_v2.h:155: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 (input.type().is_cuda()) ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include/torch/all.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/torch/extension.h:4, from /content/DCNv2/src/cpu/vision.h:2, from /content/DCNv2/src/dcn_v2.h:3, from /content/DCNv2/src/vision.cpp:2: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:268:30: note: declared here DeprecatedTypeProperties & type() const { ^~~~ g++ -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DWITH_CUDA -I/content/DCNv2/src -I/usr/local/lib/python3.6/dist-packages/torch/include -I/usr/local/lib/python3.6/dist-packages/torch/include/torch/csrc/api/include -I/usr/local/lib/python3.6/dist-packages/torch/include/TH -I/usr/local/lib/python3.6/dist-packages/torch/include/THC -I/usr/local/cuda/include -I/usr/include/python3.6m -c /content/DCNv2/src/cpu/dcn_v2_cpu.cpp -o build/temp.linux-x86_64-3.6/content/DCNv2/src/cpu/dcn_v2_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++14 In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Parallel.h:149:0, from /usr/local/lib/python3.6/dist-packages/torch/include/TH/THTensorApply.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/TH/THTensor.h:5, from /usr/local/lib/python3.6/dist-packages/torch/include/TH/TH.h:13, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:7: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ParallelOpenMP.h:84:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel for if ((end - begin) >= grain_size)
/content/DCNv2/src/cpu/dcn_v2_cpu.cpp: In function ‘at::Tensor dcn_v2_cpu_forward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int, int, int, int, int, int, int, int, int)’: /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:83:59: 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] ones.contiguous().data<scalar_t>(), k_, ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:84:59: 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] bias.contiguous().data<scalar_t>(), k_, 0.0f, ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:85:50: 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] output_n.data<scalar_t>(), n_); ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:87:64: 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] modulated_deformable_im2col_cpu(input_n.data<scalar_t>(), ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:88:66: 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] offset_n.data<scalar_t>(), ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:89:64: 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] mask_n.data<scalar_t>(), ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:94:65: 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] columns.data<scalar_t>()); ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:102:49: 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] columns.data<scalar_t>(), n, ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:103:48: 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] weight.data<scalar_t>(), k, 1.0f, ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:104:50: 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] output_n.data<scalar_t>(), n); ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp: In function ‘std::vectorat::Tensor dcn_v2_cpu_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int, int, int, int, int, int, int, int, int)’: /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:177:55: 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] grad_output_n.data<scalar_t>(), n, ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:178:48: 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] weight.data<scalar_t>(), m, 0.0f, ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:179:49: 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] columns.data<scalar_t>(), n); ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:182:70: 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] modulated_deformable_col2im_coord_cpu(columns.data<scalar_t>(), ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:183:71: 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] input_n.data<scalar_t>(), ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:184:72: 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] offset_n.data<scalar_t>(), ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:185:70: 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] mask_n.data<scalar_t>(), ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:190:77: 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] grad_offset_n.data<scalar_t>(), ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:191:75: 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] grad_mask_n.data<scalar_t>()); ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:193:64: 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] modulated_deformable_col2im_cpu(columns.data<scalar_t>(), ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:194:66: 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] offset_n.data<scalar_t>(), ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:195:64: 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] mask_n.data<scalar_t>(), ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:200:70: 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] grad_input_n.data<scalar_t>()); ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:203:64: 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] modulated_deformable_im2col_cpu(input_n.data<scalar_t>(), ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:204:66: 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] offset_n.data<scalar_t>(), ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:205:64: 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] mask_n.data<scalar_t>(), ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:210:65: 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] columns.data<scalar_t>()); ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:217:49: 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] columns.data<scalar_t>(), k_, ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:218:55: 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] grad_output_n.data<scalar_t>(), k_, 1.0f, ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:219:53: 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] grad_weight.data<scalar_t>(), n_); ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:225:55: 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] grad_output_n.data<scalar_t>(), k_, ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:226:46: 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] ones.data<scalar_t>(), 1, 1.0f, ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:227:51: 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] grad_bias.data<scalar_t>(), 1); ^ In file included from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Tensor.h:3:0, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/Context.h:4, from /usr/local/lib/python3.6/dist-packages/torch/include/ATen/ATen.h:5, from /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:4: /usr/local/lib/python3.6/dist-packages/torch/include/ATen/core/TensorBody.h:354:7: note: declared here T * data() const { ^~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:224:9: error: ‘THFloatBlas_gemv’ was not declared in this scope THFloatBlas_gemv('t', k_, m_, 1.0f, ^~~~~~~~~~~~~~~~ /content/DCNv2/src/cpu/dcn_v2_cpu.cpp:224:9: note: suggested alternative: ‘THFloatBlas_gemm’ THFloatBlas_gemv('t', k_, m_, 1.0f, ^~~~~~~~~~~~~~~~ THFloatBlas_gemm error: command 'g++' failed with exit status 1
If cuda version is latest versions, ex)CUDA 11.3 DCVv2_latest is working!!!!
https://github.com/jinfagang/DCNv2_latest