Open KnightHarute opened 3 years ago
I have the same error with these different setups: Python 3.8/3.6.13/3.8 Torch: 1.4/1.4/1.8 Torchvision: 0.5/0.5/0.9 Cuda: 11.2
Have You Updated Your GCC version? It needs gcc version greater than 8.0 yours is 7.5
Ubuntu18 conda python=3.6.13 torch=1.7.0+cu101 torchvision=0.8.1+cu101 cuda=10.1 gcc=7.5
Just simply python setup.py build develop and got the error below: `running build running build_ext /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/utils/cpp_extension.py:339: 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/home creating build/temp.linux-x86_64-3.6/home/binyu creating build/temp.linux-x86_64-3.6/home/binyu/DCNv2 creating build/temp.linux-x86_64-3.6/home/binyu/DCNv2/src creating build/temp.linux-x86_64-3.6/home/binyu/DCNv2/src/cpu creating build/temp.linux-x86_64-3.6/home/binyu/DCNv2/src/cuda g++ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/binyu/DCNv2/src -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/TH -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-10.1/include -I/home/binyu/anaconda3/envs/laneaf_conda/include/python3.6m -c /home/binyu/DCNv2/src/vision.cpp -o build/temp.linux-x86_64-3.6/home/binyu/DCNv2/src/vision.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -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 /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/binyu/DCNv2/src/cpu/vision.h:2, from /home/binyu/DCNv2/src/dcn_v2.h:3, from /home/binyu/DCNv2/src/vision.cpp:2: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-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 /home/binyu/DCNv2/src/vision.cpp:2:0: /home/binyu/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)’: /home/binyu/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 /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /home/binyu/DCNv2/src/cpu/vision.h:2, from /home/binyu/DCNv2/src/dcn_v2.h:3, from /home/binyu/DCNv2/src/vision.cpp:2: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here DeprecatedTypeProperties & type() const { ^~~~ In file included from /home/binyu/DCNv2/src/vision.cpp:2:0: /home/binyu/DCNv2/src/dcn_v2.h: In function ‘std::vector 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)’:
/home/binyu/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 /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/binyu/DCNv2/src/cpu/vision.h:2,
from /home/binyu/DCNv2/src/dcn_v2.h:3,
from /home/binyu/DCNv2/src/vision.cpp:2:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
In file included from /home/binyu/DCNv2/src/vision.cpp:2:0:
/home/binyu/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)’:
/home/binyu/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 /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/binyu/DCNv2/src/cpu/vision.h:2,
from /home/binyu/DCNv2/src/dcn_v2.h:3,
from /home/binyu/DCNv2/src/vision.cpp:2:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
In file included from /home/binyu/DCNv2/src/vision.cpp:2:0:
/home/binyu/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)’:
/home/binyu/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 /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /home/binyu/DCNv2/src/cpu/vision.h:2,
from /home/binyu/DCNv2/src/dcn_v2.h:3,
from /home/binyu/DCNv2/src/vision.cpp:2:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
g++ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/binyu/DCNv2/src -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/TH -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-10.1/include -I/home/binyu/anaconda3/envs/laneaf_conda/include/python3.6m -c /home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp -o build/temp.linux-x86_64-3.6/home/binyu/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
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/TH/THTensorApply.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/TH/THTensor.h:5,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/TH/TH.h:13,
from /home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:7:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ParallelOpenMP.h:84:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
pragma omp parallel for if ((end - begin) >= grain_size)
/home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp: In function ‘std::vector 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)’:
/home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:211:70: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
modulated_deformable_col2im_coord_cpu(columns.data(),
^
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:4:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here
T data() const {
^~~~
/home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:212:71: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
input_n.data(),
^
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:4:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here
T data() const {
^~~~
/home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:213:72: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
offset_n.data(),
^
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:4:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here
T data() const {
^~~~
/home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:214:70: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
mask_n.data(),
^
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:4:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here
T data() const {
^~~~
/home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:219:77: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
grad_offset_n.data(),
^
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:4:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here
T data() const {
^~~~
/home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:220:75: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
grad_mask_n.data());
^
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:4:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here
T data() const {
^~~~
/home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:222:64: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
modulated_deformable_col2im_cpu(columns.data(),
^
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:4:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here
T data() const {
^~~~
/home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:223:66: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
offset_n.data(),
^
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:4:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here
T data() const {
^~~~
/home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:224:64: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
mask_n.data(),
^
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:4:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here
T data() const {
^~~~
/home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:229:70: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
grad_input_n.data());
^
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:4:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here
T data() const {
^~~~
/home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:232:64: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
modulated_deformable_im2col_cpu(input_n.data(),
^
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:4:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here
T data() const {
^~~~
/home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:233:66: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
offset_n.data(),
^
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:4:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here
T data() const {
^~~~
/home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:234:64: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
mask_n.data(),
^
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:4:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here
T data() const {
^~~~
/home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:239:65: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
columns.data());
^
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/DCNv2/src/cpu/dcn_v2_cpu.cpp:4:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here
T data() const {
^~~~
g++ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/binyu/DCNv2/src -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/TH -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-10.1/include -I/home/binyu/anaconda3/envs/laneaf_conda/include/python3.6m -c /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp -o build/temp.linux-x86_64-3.6/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -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 /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/TH/THTensorApply.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/TH/THTensor.h:5,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/TH/TH.h:13,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:18:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-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 /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In lambda function: /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:41: 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(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { ^ /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:137:28: note: in definition of macro ‘AT_DISPATCH_FLOATING_TYPES’ const auto& the_type = TYPE; \ ^~~~ In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here DeprecatedTypeProperties & type() const { ^~~~ In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:139:56: 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] at::ScalarType _st = ::detail::scalar_type(the_type); \ ^ /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { ^() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
input.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:333:42: warning: ‘T at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
bbox.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:334:43: warning: ‘T at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
trans.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:343:28: warning: ‘T at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
out.data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:344:34: warning: ‘T at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
top_count.data());
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In lambda function:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:327:43: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
input.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:333:42: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
bbox.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:334:43: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
trans.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:343:28: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
out.data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:344:34: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
top_count.data());
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In function ‘std::tuple<at::Tensor, at::Tensor> dcn_v2_psroi_pooling_cpu_forward(const at::Tensor&, const at::Tensor&, const at::Tensor&, int, float, int, int, int, int, int, float)’:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:295:13: warning: unused variable ‘batch’ [-Wunused-variable]
const int batch = input.size(0);
^~~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In lambda function:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:44: 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(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] {
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:137:28: note: in definition of macro ‘AT_DISPATCH_FLOATING_TYPES’
const auto& the_type = TYPE; \
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:277:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:139:56: 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]
at::ScalarType _st = ::detail::scalar_type(the_type); \
^
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] {
^() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
out_grad.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:402:47: warning: ‘T at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
top_count.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:411:48: warning: ‘T at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
input_grad.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:412:48: warning: ‘T at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
trans_grad.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:413:43: warning: ‘T at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
input.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:414:42: warning: ‘T at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
bbox.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:415:43: warning: ‘T at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
trans.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In lambda function:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:401:46: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
out_grad.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:402:47: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
top_count.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:411:48: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
input_grad.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:412:48: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
trans_grad.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:413:43: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
input.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:414:42: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
bbox.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:13:0,
from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15:
/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:415:43: warning: ‘T at::Tensor::data() const [with T = float]’ is deprecated: Tensor.data() is deprecated. Please use Tensor.data_ptr() instead. [-Wdeprecated-declarations]
trans.contiguous().data(),
^
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:13:12: note: in definition of macro ‘AT_PRIVATE_CASE_TYPE’
return __VA_ARGS__(); \
^ data() const {
^~~~
g++ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DWITH_CUDA -I/home/binyu/DCNv2/src -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/TH -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-10.1/include -I/home/binyu/anaconda3/envs/laneaf_conda/include/python3.6m -c /home/binyu/DCNv2/src/cpu/dcn_v2_im2col_cpu.cpp -o build/temp.linux-x86_64-3.6/home/binyu/DCNv2/src/cpu/dcn_v2_im2col_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -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 /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149:0,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/TH/THTensorApply.h:4,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/TH/THTensor.h:5,
from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/TH/TH.h:13,
from /home/binyu/DCNv2/src/cpu/dcn_v2_im2col_cpu.cpp:9:
/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ParallelOpenMP.h:84:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
~~~~~/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:66:23: note: declared here inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) { ^~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In lambda function: /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:327:43: warning: ‘T at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:324:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(input.type(), "dcn_v2_psroi_pooling_cpu_forward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~~~~/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Dispatch.h:66:23: note: declared here inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) { ^~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp: In lambda function: /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:401:46: warning: ‘T at::Tensor::data() const [with T = double]’ is deprecated: Tensor.data~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here T~~/home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:398:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’ AT_DISPATCH_FLOATING_TYPES(out_grad.type(), "dcn_v2_psroi_pooling_cpu_backward", [&] { ^~~~~~In file included from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/Context.h:4, from /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9, from /home/binyu/DCNv2/src/cpu/dcn_v2_psroi_pooling_cpu.cpp:15: /home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:363:7: note: declared here Tpragma omp parallel for if ((end - begin) >= grain_size)
/usr/local/cuda-10.1/bin/nvcc -DWITH_CUDA -I/home/binyu/DCNv2/src -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/TH -I/home/binyu/anaconda3/envs/laneaf_conda/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-10.1/include -I/home/binyu/anaconda3/envs/laneaf_conda/include/python3.6m -c /home/binyu/DCNv2/src/cuda/dcn_v2_cuda.cu -o build/temp.linux-x86_64-3.6/home/binyu/DCNv2/src/cuda/dcn_v2_cuda.o -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS --expt-relaxed-constexpr --compiler-options '-fPIC' -DCUDA_HAS_FP16=1 -DCUDA_NO_HALF_OPERATORS -DCUDA_NO_HALF_CONVERSIONS -DCUDA_NO_HALF2_OPERATORS -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_ext -D_GLIBCXX_USE_CXX11_ABI=0 -gencode=arch=compute_75,code=sm_75 -ccbin g++ -std=c++14 /usr/include/c++/7/bits/basic_string.tcc: In instantiation of ‘static std::basic_string<_CharT, _Traits, _Alloc>::_Rep std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_create(std::basic_string<_CharT, _Traits, _Alloc>::size_type, std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’:
/usr/include/c++/7/bits/basic_string.tcc:578:28: required from ‘static _CharT std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag) [with _FwdIterator = const char16_t; _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator]’
/usr/include/c++/7/bits/basic_string.h:5042:20: required from ‘static _CharT std::basic_string<_CharT, _Traits, _Alloc>::_S_construct_aux(_InIterator, _InIterator, const _Alloc&, std::false_type) [with _InIterator = const char16_t; _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator]’
/usr/include/c++/7/bits/basic_string.h:5063:24: required from ‘static _CharT std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&) [with _InIterator = const char16_t; _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator]’
/usr/include/c++/7/bits/basic_string.tcc:656:134: required from ‘std::basic_string<_CharT, _Traits, _Alloc>::basic_string(const _CharT , std::basic_string<_CharT, _Traits, _Alloc>::size_type, const _Alloc&) [with _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator; std::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’
/usr/include/c++/7/bits/basic_string.h:6688:95: required from here
/usr/include/c++/7/bits/basic_string.tcc:1067:16: error: cannot call member function ‘void std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_set_sharable() [with _CharT = char16_t; _Traits = std::char_traits; _Alloc = std::allocator]’ without object
p->_M_set_sharable();