QANet
QANet copied to clipboard
runnig make.sh
Hello. I get the following error while running 'sh make.sh'. Could you please help me? In libs.ops there isn't any '_C'. I get package error from : from lib.ops import _C
/PycharmProjects/QANet$ sh make.sh
Building Pet ops ...
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/cuda/init.py:52: UserWarning: CUDA initialization: Unexpected error from cudaGetDeviceCount(). Did you run some cuda functions before calling NumCudaDevices() that might have already set an error? Error 804: forward compatibility was attempted on non supported HW (Triggered internally at /pytorch/c10/cuda/CUDAFunctions.cpp:115.)
return torch._C._cuda_getDeviceCount() > 0
No CUDA runtime is found, using CUDA_HOME='/usr'
running build_ext
building 'lib.ops._C' extension
creating /home/alikazemi/PycharmProjects/QANet/build
creating /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7
creating /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home
creating /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi
creating /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects
creating /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet
creating /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib
creating /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops
creating /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc
creating /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign
creating /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Box_ops
creating /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS
Emitting ninja build file /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/7] c++ -MMD -MF /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Box_ops/box_iou_rotated_cpu.o.d -pthread -B /home/alikazemi/miniconda3/envs/py3710/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/TH -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/THC -I/home/alikazemi/miniconda3/envs/py3710/include/python3.7m -c -c /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Box_ops/box_iou_rotated_cpu.cpp -o /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Box_ops/box_iou_rotated_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -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++
[2/7] c++ -MMD -MF /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/ml_soft_nms.o.d -pthread -B /home/alikazemi/miniconda3/envs/py3710/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/TH -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/THC -I/home/alikazemi/miniconda3/envs/py3710/include/python3.7m -c -c /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/ml_soft_nms.cpp -o /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/ml_soft_nms.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -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++
[3/7] c++ -MMD -MF /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.o.d -pthread -B /home/alikazemi/miniconda3/envs/py3710/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/TH -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/THC -I/home/alikazemi/miniconda3/envs/py3710/include/python3.7m -c -c /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp -o /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -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/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:13,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp: In lambda function:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:66:40: 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]
66 | AT_DISPATCH_FLOATING_TYPES(dets.type(), "nms_rotated", [&] {
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:207:28: note: in definition of macro ‘AT_DISPATCH_FLOATING_TYPES’
207 | const auto& the_type = TYPE;
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:13,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:209: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]
209 | at::ScalarType _st = ::detail::scalar_type(the_type);
| ^
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:66:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
66 | AT_DISPATCH_FLOATING_TYPES(dets.type(), "nms_rotated", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:121:23: note: declared here
121 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
| ^~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:209: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]
209 | at::ScalarType _st = ::detail::scalar_type(the_type);
| ^
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:66:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES’
66 | AT_DISPATCH_FLOATING_TYPES(dets.type(), "nms_rotated", [&] {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:121:23: note: declared here
121 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
| ^~~~~~~~~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Device.h:5,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:7,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp: In instantiation of ‘at::Tensor pet::nms_rotated_cpu_kernel(const at::Tensor&, const at::Tensor&, float) [with T = double]’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:66:3: required from here
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:15:24: 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]
15 | AT_ASSERTM(!dets.type().is_cuda(), "dets must be a CPU tensor");
| ~~~~~~~~~^~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:230:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
230 | #define C10_EXPAND_MSVC_WORKAROUND(x) x
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:250:34: note: in expansion of macro ‘C10_UNLIKELY’
250 | #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
| ^~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:302:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
302 | if (C10_UNLIKELY_OR_CONST(!(cond))) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:588:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
588 | C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:15:3: note: in expansion of macro ‘AT_ASSERTM’
15 | AT_ASSERTM(!dets.type().is_cuda(), "dets must be a CPU tensor");
| ^~~~~~~~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Device.h:5,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:7,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:15:24: 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]
15 | AT_ASSERTM(!dets.type().is_cuda(), "dets must be a CPU tensor");
| ~~~~~~~~~^~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:230:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
230 | #define C10_EXPAND_MSVC_WORKAROUND(x) x
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:250:34: note: in expansion of macro ‘C10_UNLIKELY’
250 | #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
| ^~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:302:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
302 | if (C10_UNLIKELY_OR_CONST(!(cond))) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:588:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
588 | C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:15:3: note: in expansion of macro ‘AT_ASSERTM’
15 | AT_ASSERTM(!dets.type().is_cuda(), "dets must be a CPU tensor");
| ^~~~~~~~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Device.h:5,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:7,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:16:26: 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]
16 | AT_ASSERTM(!scores.type().is_cuda(), "scores must be a CPU tensor");
| ~~~~~~~~~~~^~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:230:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
230 | #define C10_EXPAND_MSVC_WORKAROUND(x) x
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:250:34: note: in expansion of macro ‘C10_UNLIKELY’
250 | #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
| ^~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:302:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
302 | if (C10_UNLIKELY_OR_CONST(!(cond))) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:588:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
588 | C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:16:3: note: in expansion of macro ‘AT_ASSERTM’
16 | AT_ASSERTM(!scores.type().is_cuda(), "scores must be a CPU tensor");
| ^~~~~~~~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Device.h:5,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:7,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:16:26: 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]
16 | AT_ASSERTM(!scores.type().is_cuda(), "scores must be a CPU tensor");
| ~~~~~~~~~~~^~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:230:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
230 | #define C10_EXPAND_MSVC_WORKAROUND(x) x
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:250:34: note: in expansion of macro ‘C10_UNLIKELY’
250 | #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
| ^~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:302:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
302 | if (C10_UNLIKELY_OR_CONST(!(cond))) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:588:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
588 | C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:16:3: note: in expansion of macro ‘AT_ASSERTM’
16 | AT_ASSERTM(!scores.type().is_cuda(), "scores must be a CPU tensor");
| ^~~~~~~~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Device.h:5,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:7,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:18:16: 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]
18 | dets.type() == scores.type(), "dets should have the same type as scores");
| ~~~~~~~~~^~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:230:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
230 | #define C10_EXPAND_MSVC_WORKAROUND(x) x
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:250:34: note: in expansion of macro ‘C10_UNLIKELY’
250 | #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
| ^~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:302:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
302 | if (C10_UNLIKELY_OR_CONST(!(cond))) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:588:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
588 | C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:17:3: note: in expansion of macro ‘AT_ASSERTM’
17 | AT_ASSERTM(
| ^~~~~~~~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Device.h:5,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:7,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:18:16: 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]
18 | dets.type() == scores.type(), "dets should have the same type as scores");
| ~~~~~~~~~^~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:230:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
230 | #define C10_EXPAND_MSVC_WORKAROUND(x) x
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:250:34: note: in expansion of macro ‘C10_UNLIKELY’
250 | #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
| ^~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:302:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
302 | if (C10_UNLIKELY_OR_CONST(!(cond))) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:588:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
588 | C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:17:3: note: in expansion of macro ‘AT_ASSERTM’
17 | AT_ASSERTM(
| ^~~~~~~~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Device.h:5,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:7,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:18:33: 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]
18 | dets.type() == scores.type(), "dets should have the same type as scores");
| ~~~~~~~~~~~^~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:230:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
230 | #define C10_EXPAND_MSVC_WORKAROUND(x) x
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:250:34: note: in expansion of macro ‘C10_UNLIKELY’
250 | #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
| ^~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:302:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
302 | if (C10_UNLIKELY_OR_CONST(!(cond))) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:588:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
588 | C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:17:3: note: in expansion of macro ‘AT_ASSERTM’
17 | AT_ASSERTM(
| ^~~~~~~~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Device.h:5,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:7,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:18:33: 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]
18 | dets.type() == scores.type(), "dets should have the same type as scores");
| ~~~~~~~~~~~^~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:230:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
230 | #define C10_EXPAND_MSVC_WORKAROUND(x) x
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:250:34: note: in expansion of macro ‘C10_UNLIKELY’
250 | #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
| ^~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:302:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
302 | if (C10_UNLIKELY_OR_CONST(!(cond))) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:588:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
588 | C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:17:3: note: in expansion of macro ‘AT_ASSERTM’
17 | AT_ASSERTM(
| ^~~~~~~~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Device.h:5,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:7,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp: In instantiation of ‘at::Tensor pet::nms_rotated_cpu_kernel(const at::Tensor&, const at::Tensor&, float) [with T = float]’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:66:3: required from here
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:15:24: 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]
15 | AT_ASSERTM(!dets.type().is_cuda(), "dets must be a CPU tensor");
| ~~~~~~~~~^~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:230:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
230 | #define C10_EXPAND_MSVC_WORKAROUND(x) x
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:250:34: note: in expansion of macro ‘C10_UNLIKELY’
250 | #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
| ^~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:302:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
302 | if (C10_UNLIKELY_OR_CONST(!(cond))) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:588:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
588 | C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:15:3: note: in expansion of macro ‘AT_ASSERTM’
15 | AT_ASSERTM(!dets.type().is_cuda(), "dets must be a CPU tensor");
| ^~~~~~~~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Device.h:5,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:7,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:15:24: 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]
15 | AT_ASSERTM(!dets.type().is_cuda(), "dets must be a CPU tensor");
| ~~~~~~~~~^~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:230:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
230 | #define C10_EXPAND_MSVC_WORKAROUND(x) x
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:250:34: note: in expansion of macro ‘C10_UNLIKELY’
250 | #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
| ^~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:302:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
302 | if (C10_UNLIKELY_OR_CONST(!(cond))) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:588:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
588 | C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:15:3: note: in expansion of macro ‘AT_ASSERTM’
15 | AT_ASSERTM(!dets.type().is_cuda(), "dets must be a CPU tensor");
| ^~~~~~~~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Device.h:5,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:7,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:16:26: 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]
16 | AT_ASSERTM(!scores.type().is_cuda(), "scores must be a CPU tensor");
| ~~~~~~~~~~~^~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:230:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
230 | #define C10_EXPAND_MSVC_WORKAROUND(x) x
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:250:34: note: in expansion of macro ‘C10_UNLIKELY’
250 | #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
| ^~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:302:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
302 | if (C10_UNLIKELY_OR_CONST(!(cond))) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:588:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
588 | C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:16:3: note: in expansion of macro ‘AT_ASSERTM’
16 | AT_ASSERTM(!scores.type().is_cuda(), "scores must be a CPU tensor");
| ^~~~~~~~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Device.h:5,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:7,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:16:26: 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]
16 | AT_ASSERTM(!scores.type().is_cuda(), "scores must be a CPU tensor");
| ~~~~~~~~~~~^~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:230:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
230 | #define C10_EXPAND_MSVC_WORKAROUND(x) x
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:250:34: note: in expansion of macro ‘C10_UNLIKELY’
250 | #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
| ^~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:302:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
302 | if (C10_UNLIKELY_OR_CONST(!(cond))) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:588:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
588 | C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:16:3: note: in expansion of macro ‘AT_ASSERTM’
16 | AT_ASSERTM(!scores.type().is_cuda(), "scores must be a CPU tensor");
| ^~~~~~~~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Device.h:5,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:7,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:18:16: 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]
18 | dets.type() == scores.type(), "dets should have the same type as scores");
| ~~~~~~~~~^~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:230:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
230 | #define C10_EXPAND_MSVC_WORKAROUND(x) x
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:250:34: note: in expansion of macro ‘C10_UNLIKELY’
250 | #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
| ^~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:302:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
302 | if (C10_UNLIKELY_OR_CONST(!(cond))) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:588:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
588 | C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:17:3: note: in expansion of macro ‘AT_ASSERTM’
17 | AT_ASSERTM(
| ^~~~~~~~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Device.h:5,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:7,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:18:16: 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]
18 | dets.type() == scores.type(), "dets should have the same type as scores");
| ~~~~~~~~~^~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:230:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
230 | #define C10_EXPAND_MSVC_WORKAROUND(x) x
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:250:34: note: in expansion of macro ‘C10_UNLIKELY’
250 | #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
| ^~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:302:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
302 | if (C10_UNLIKELY_OR_CONST(!(cond))) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:588:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
588 | C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:17:3: note: in expansion of macro ‘AT_ASSERTM’
17 | AT_ASSERTM(
| ^~~~~~~~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Device.h:5,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:7,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:18:33: 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]
18 | dets.type() == scores.type(), "dets should have the same type as scores");
| ~~~~~~~~~~~^~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:230:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
230 | #define C10_EXPAND_MSVC_WORKAROUND(x) x
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:250:34: note: in expansion of macro ‘C10_UNLIKELY’
250 | #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
| ^~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:302:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
302 | if (C10_UNLIKELY_OR_CONST(!(cond))) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:588:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
588 | C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:17:3: note: in expansion of macro ‘AT_ASSERTM’
17 | AT_ASSERTM(
| ^~~~~~~~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Device.h:5,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/core/Allocator.h:6,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:7,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:18:33: 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]
18 | dets.type() == scores.type(), "dets should have the same type as scores");
| ~~~~~~~~~~~^~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:230:39: note: in definition of macro ‘C10_EXPAND_MSVC_WORKAROUND’
230 | #define C10_EXPAND_MSVC_WORKAROUND(x) x
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:250:34: note: in expansion of macro ‘C10_UNLIKELY’
250 | #define C10_UNLIKELY_OR_CONST(e) C10_UNLIKELY(e)
| ^~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:302:7: note: in expansion of macro ‘C10_UNLIKELY_OR_CONST’
302 | if (C10_UNLIKELY_OR_CONST(!(cond))) {
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/c10/util/Exception.h:588:32: note: in expansion of macro ‘TORCH_INTERNAL_ASSERT’
588 | C10_EXPAND_MSVC_WORKAROUND(TORCH_INTERNAL_ASSERT(cond, VA_ARGS));
| ^~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:17:3: note: in expansion of macro ‘AT_ASSERTM’
17 | AT_ASSERTM(
| ^~~~~~~~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
[4/7] c++ -MMD -MF /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlign_cpu.o.d -pthread -B /home/alikazemi/miniconda3/envs/py3710/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/TH -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/THC -I/home/alikazemi/miniconda3/envs/py3710/include/python3.7m -c -c /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlign_cpu.cpp -o /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlign_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -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/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlign_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlign.h: In function ‘at::Tensor pet::ROIAlign_forward(const at::Tensor&, const at::Tensor&, float, int, int, int, bool, int)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlign.h:69:18: 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]
69 | if (input.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/TensorUtils.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlign_cpu.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlign_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlign.h: In function ‘at::Tensor pet::ROIAlign_backward(const at::Tensor&, const at::Tensor&, float, int, int, int, int, int, int, int, bool, int)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlign.h:114:17: 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]
114 | if (grad.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/TensorUtils.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlign_cpu.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
[5/7] c++ -MMD -MF /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.o.d -pthread -B /home/alikazemi/miniconda3/envs/py3710/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/TH -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/THC -I/home/alikazemi/miniconda3/envs/py3710/include/python3.7m -c -c /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp -o /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -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/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated.h: In function ‘at::Tensor pet::ROIAlignRotated_forward(const at::Tensor&, const at::Tensor&, float, int, int, int, bool, int)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated.h:70:18: 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]
70 | if (input.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/TensorUtils.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated.h: In function ‘at::Tensor pet::ROIAlignRotated_backward(const at::Tensor&, const at::Tensor&, float, int, int, int, int, int, int, int, bool, int)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated.h:112:17: 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]
112 | if (grad.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/TensorUtils.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:13,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp: In lambda function:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp:587:18: 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]
587 | input.type(), "ROIAlignRotated_forward", [&] {
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:221:28: note: in definition of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
221 | const auto& the_type = TYPE;
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/TensorUtils.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:13,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:223: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]
223 | at::ScalarType _st = ::detail::scalar_type(the_type);
| ^
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp:586:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
586 | AT_DISPATCH_FLOATING_TYPES_AND_HALF(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:121:23: note: declared here
121 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
| ^~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:223: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]
223 | at::ScalarType _st = ::detail::scalar_type(the_type);
| ^
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp:586:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
586 | AT_DISPATCH_FLOATING_TYPES_AND_HALF(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:121:23: note: declared here
121 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
| ^~~~~~~~~~~
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp: In lambda function:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp:642:17: 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]
642 | grad.type(), "ROIAlignRotated_forward", [&] {
| ^
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:221:28: note: in definition of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
221 | const auto& the_type = TYPE;
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/TensorUtils.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:13,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated.h:3,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp:2:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:223: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]
223 | at::ScalarType _st = ::detail::scalar_type(the_type);
| ^
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp:641:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
641 | AT_DISPATCH_FLOATING_TYPES_AND_HALF(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:121:23: note: declared here
121 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
| ^~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:223: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]
223 | at::ScalarType _st = ::detail::scalar_type(the_type);
| ^
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.cpp:641:3: note: in expansion of macro ‘AT_DISPATCH_FLOATING_TYPES_AND_HALF’
641 | AT_DISPATCH_FLOATING_TYPES_AND_HALF(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Dispatch.h:121:23: note: declared here
121 | inline at::ScalarType scalar_type(const at::DeprecatedTypeProperties& t) {
| ^~~~~~~~~~~
[6/7] c++ -MMD -MF /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/soft_nms.o.d -pthread -B /home/alikazemi/miniconda3/envs/py3710/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/TH -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/THC -I/home/alikazemi/miniconda3/envs/py3710/include/python3.7m -c -c /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/soft_nms.cpp -o /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/soft_nms.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -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++
[7/7] c++ -MMD -MF /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.o.d -pthread -B /home/alikazemi/miniconda3/envs/py3710/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/TH -I/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/THC -I/home/alikazemi/miniconda3/envs/py3710/include/python3.7m -c -c /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp -o /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.o -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_C -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/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Parallel.h:140,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ParallelOpenMP.h:87: warning: ignoring #pragma omp parallel [-Wunknown-pragmas]
87 | #pragma omp parallel for if ((end - begin) >= grain_size)
|
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:2:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/ml_nms.h: In function ‘at::Tensor pet::ml_nms(const at::Tensor&, const at::Tensor&, const at::Tensor&, float, int)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/ml_nms.h:22:17: 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]
22 | if (dets.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:4:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/poly_nms.h: In function ‘at::Tensor pet::poly_nms(const at::Tensor&, float)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/poly_nms.h:16:17: 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]
16 | if (dets.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:7:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlign.h: In function ‘at::Tensor pet::ROIAlign_forward(const at::Tensor&, const at::Tensor&, float, int, int, int, bool, int)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlign.h:69:18: 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]
69 | if (input.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:7:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlign.h: In function ‘at::Tensor pet::ROIAlign_backward(const at::Tensor&, const at::Tensor&, float, int, int, int, int, int, int, int, bool, int)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlign.h:114:17: 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]
114 | if (grad.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:8:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated.h: In function ‘at::Tensor pet::ROIAlignRotated_forward(const at::Tensor&, const at::Tensor&, float, int, int, int, bool, int)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated.h:70:18: 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]
70 | if (input.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:8:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated.h: In function ‘at::Tensor pet::ROIAlignRotated_backward(const at::Tensor&, const at::Tensor&, float, int, int, int, int, int, int, int, bool, int)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated.h:112:17: 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]
112 | if (grad.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:9:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIPool/ROIPool.h: In function ‘std::tuple<at::Tensor, at::Tensor> pet::ROIPool_forward(const at::Tensor&, const at::Tensor&, float, int, int)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIPool/ROIPool.h:34:18: 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]
34 | if (input.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:9:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIPool/ROIPool.h: In function ‘at::Tensor pet::ROIPool_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, float, int, int, int, int, int, int)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIPool/ROIPool.h:61:17: 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]
61 | if (grad.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:10:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/FocalLoss/SigmoidFocalLoss.h: In function ‘at::Tensor pet::SigmoidFocalLoss_forward(const at::Tensor&, const at::Tensor&, int, float, float)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/FocalLoss/SigmoidFocalLoss.h:30:19: 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]
30 | if (logits.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:10:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/FocalLoss/SigmoidFocalLoss.h: In function ‘at::Tensor pet::SigmoidFocalLoss_backward(const at::Tensor&, const at::Tensor&, const at::Tensor&, int, float, float)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/FocalLoss/SigmoidFocalLoss.h:52:19: 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]
52 | if (logits.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:11:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/PoolPointsInterp/PoolPointsInterp.h: In function ‘at::Tensor pet::PoolPointsInterp_forward(const at::Tensor&, const at::Tensor&, float)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/PoolPointsInterp/PoolPointsInterp.h:27:18: 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]
27 | if (input.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:11:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/PoolPointsInterp/PoolPointsInterp.h: In function ‘at::Tensor pet::PoolPointsInterp_backward(const at::Tensor&, const at::Tensor&, float, int, int, int, int)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/PoolPointsInterp/PoolPointsInterp.h:48:17: 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]
48 | if (grad.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:12:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Deformable/deform_conv.h: In function ‘int pet::deform_conv_forward(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, int, int, int, int, int, int, int, int, int, int, int)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Deformable/deform_conv.h:133:18: 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]
133 | if (input.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:12:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Deformable/deform_conv.h: In function ‘int pet::deform_conv_backward_input(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, int, int, int, int, int, int, int, int, int, int, int)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Deformable/deform_conv.h:181:23: 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]
181 | if (gradOutput.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:12:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Deformable/deform_conv.h: In function ‘int pet::deform_conv_backward_filter(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, int, int, int, int, int, int, int, int, int, int, float, int)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Deformable/deform_conv.h:231:23: 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]
231 | if (gradOutput.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:12:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Deformable/deform_conv.h: In function ‘void pet::modulated_deform_conv_forward(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, int, int, int, int, int, int, int, int, int, int, bool)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Deformable/deform_conv.h:281:18: 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]
281 | if (input.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:12:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Deformable/deform_conv.h: In function ‘void pet::modulated_deform_conv_backward(at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, at::Tensor, int, int, int, int, int, int, int, int, int, int, bool)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Deformable/deform_conv.h:338:24: 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]
338 | if (grad_output.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:13:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Box_ops/box_iou.h: In function ‘at::Tensor pet::box_iou(const at::Tensor&, const at::Tensor&)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Box_ops/box_iou.h:16:18: 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]
16 | if (boxes.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:15:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Box_ops/box_voting.h: In function ‘std::tuple<at::Tensor, at::Tensor> pet::box_voting(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int, float, float)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Box_ops/box_voting.h:25:18: 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]
25 | if (boxes.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
In file included from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:16:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Box_ops/box_ml_voting.h: In function ‘std::tuple<at::Tensor, at::Tensor, at::Tensor> pet::box_ml_voting(const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, const at::Tensor&, int, float, float)’:
/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Box_ops/box_ml_voting.h:29:18: 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]
29 | if (boxes.type().is_cuda()) {
| ^
In file included from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Tensor.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/Context.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/ATen.h:9,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/torch/extension.h:4,
from /home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.cpp:1:
/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
338 | DeprecatedTypeProperties & type() const {
| ^~~~
creating build/lib.linux-x86_64-3.7
creating build/lib.linux-x86_64-3.7/lib
creating build/lib.linux-x86_64-3.7/lib/ops
g++ -pthread -shared -B /home/alikazemi/miniconda3/envs/py3710/compiler_compat -L/home/alikazemi/miniconda3/envs/py3710/lib -Wl,-rpath=/home/alikazemi/miniconda3/envs/py3710/lib -Wl,--no-as-needed -Wl,--sysroot=/ /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/vision.o /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlign_cpu.o /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/ROIAlign/ROIAlignRotated_cpu.o /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/Box_ops/box_iou_rotated_cpu.o /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/nms_rotated_cpu.o /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/ml_soft_nms.o /home/alikazemi/PycharmProjects/QANet/build/temp.linux-x86_64-3.7/home/alikazemi/PycharmProjects/QANet/lib/ops/csrc/NMS/soft_nms.o -L/home/alikazemi/miniconda3/envs/py3710/lib/python3.7/site-packages/torch/lib -lc10 -ltorch -ltorch_cpu -ltorch_python -o build/lib.linux-x86_64-3.7/lib/ops/_C.cpython-37m-x86_64-linux-gnu.so
copying build/lib.linux-x86_64-3.7/lib/ops/_C.cpython-37m-x86_64-linux-gnu.so -> lib/ops