Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling Corner Pooling Layers torch error #73

Open
oznurco opened this issue Feb 15, 2019 · 4 comments
Open

Compiling Corner Pooling Layers torch error #73

oznurco opened this issue Feb 15, 2019 · 4 comments

Comments

@oznurco
Copy link

oznurco commented Feb 15, 2019

I try to do "Compiling Corner Pooling Layers" step but this step give below error ;

Operating System : Ubuntu 16.04
Cunda and python 3.7 were installed.

I run python setup.py install --user command.

src/top_pool.cpp:44:41: error: could not convert ‘torch::CUDA((c10::ScalarType)6)’ from ‘at::TypeExtendedInterface’ to ‘c10::IntList {aka c10::ArrayRef}’
auto max_val = at::zeros(torch::CUDA(at::kFloat), {batch, channel, width})

Have you any idea about this problem ?

@oznurco
Copy link
Author

oznurco commented Feb 15, 2019

All logs :
(CornerNet) asd@VKDIJL19857U:~/Masaüstü/CornerNET/CornerNet-master/models/py_utils/_cpools$ python setup.py install --user

No CUDA runtime is found, using CUDA_HOME='/usr'
running install
running bdist_egg
running egg_info
writing cpools.egg-info/PKG-INFO
writing dependency_links to cpools.egg-info/dependency_links.txt
writing top-level names to cpools.egg-info/top_level.txt
reading manifest file 'cpools.egg-info/SOURCES.txt'
writing manifest file 'cpools.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_ext
building 'top_pool' extension
gcc -pthread -B /home/asd/anaconda3/envs/CornerNet/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include -I/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include -I/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/TH -I/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/THC -I/home/asd/anaconda3/envs/CornerNet/include/python3.7m -c src/top_pool.cpp -o build/temp.linux-x86_64-3.7/src/top_pool.o -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=top_pool -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from src/top_pool.cpp:1:0:
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/torch.h:7:2: warning: #warning "Including torch/torch.h for C++ extensions is deprecated. Please include torch/extension.h" [-Wcpp]
#warning
^
src/top_pool.cpp: In function ‘std::vectorat::Tensor top_pool_backward(at::Tensor, at::Tensor)’:
src/top_pool.cpp:44:37: warning: ‘at::TypeExtendedInterface& torch::CUDA(c10::ScalarType)’ is deprecated [-Wdeprecated-declarations]
auto max_val = at::zeros(torch::CUDA(at::kFloat), {batch, channel, width});
^
In file included from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Type.h:5:0,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Type.h:2,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Context.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/ATen.h:5,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/types.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/all.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/torch.h:3,
from src/top_pool.cpp:1:
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/variable_tensor_functions.h:35:52: note: declared here
AT_DEPRECATED(THP_CLASS at::TypeExtendedInterface& CUDA(at::ScalarType type));
^
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Deprecated.h:9:61: note: in definition of macro ‘AT_DEPRECATED’
#define AT_DEPRECATED(function) attribute((deprecated)) function
^
src/top_pool.cpp:44:37: warning: ‘at::TypeExtendedInterface& torch::CUDA(c10::ScalarType)’ is deprecated [-Wdeprecated-declarations]
auto max_val = at::zeros(torch::CUDA(at::kFloat), {batch, channel, width});
^
In file included from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Type.h:5:0,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Type.h:2,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Context.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/ATen.h:5,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/types.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/all.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/torch.h:3,
from src/top_pool.cpp:1:
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/variable_tensor_functions.h:35:52: note: declared here
AT_DEPRECATED(THP_CLASS at::TypeExtendedInterface& CUDA(at::ScalarType type));
^
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Deprecated.h:9:61: note: in definition of macro ‘AT_DEPRECATED’
#define AT_DEPRECATED(function) attribute((deprecated)) function
^
src/top_pool.cpp:44:52: warning: ‘at::TypeExtendedInterface& torch::CUDA(c10::ScalarType)’ is deprecated [-Wdeprecated-declarations]
auto max_val = at::zeros(torch::CUDA(at::kFloat), {batch, channel, width});
^
In file included from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Type.h:5:0,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Type.h:2,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Context.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/ATen.h:5,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/types.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/all.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/torch.h:3,
from src/top_pool.cpp:1:
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/variable_tensor_functions.h:35:52: note: declared here
AT_DEPRECATED(THP_CLASS at::TypeExtendedInterface& CUDA(at::ScalarType type));
^
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Deprecated.h:9:61: note: in definition of macro ‘AT_DEPRECATED’
#define AT_DEPRECATED(function) attribute((deprecated)) function
^
src/top_pool.cpp:44:41: error: could not convert ‘torch::CUDA((c10::ScalarType)6)’ from ‘at::TypeExtendedInterface’ to ‘c10::IntList {aka c10::ArrayRef}’
auto max_val = at::zeros(torch::CUDA(at::kFloat), {batch, channel, width});
^
src/top_pool.cpp:45:37: warning: ‘at::TypeExtendedInterface& torch::CUDA(c10::ScalarType)’ is deprecated [-Wdeprecated-declarations]
auto max_ind = at::zeros(torch::CUDA(at::kLong), {batch, channel, width});
^
In file included from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Type.h:5:0,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Type.h:2,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Context.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/ATen.h:5,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/types.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/all.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/torch.h:3,
from src/top_pool.cpp:1:
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/variable_tensor_functions.h:35:52: note: declared here
AT_DEPRECATED(THP_CLASS at::TypeExtendedInterface& CUDA(at::ScalarType type));
^
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Deprecated.h:9:61: note: in definition of macro ‘AT_DEPRECATED’
#define AT_DEPRECATED(function) attribute((deprecated)) function
^
src/top_pool.cpp:45:37: warning: ‘at::TypeExtendedInterface& torch::CUDA(c10::ScalarType)’ is deprecated [-Wdeprecated-declarations]
auto max_ind = at::zeros(torch::CUDA(at::kLong), {batch, channel, width});
^
In file included from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Type.h:5:0,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Type.h:2,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Context.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/ATen.h:5,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/types.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/all.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/torch.h:3,
from src/top_pool.cpp:1:
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/variable_tensor_functions.h:35:52: note: declared here
AT_DEPRECATED(THP_CLASS at::TypeExtendedInterface& CUDA(at::ScalarType type));
^
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Deprecated.h:9:61: note: in definition of macro ‘AT_DEPRECATED’
#define AT_DEPRECATED(function) attribute((deprecated)) function
^
src/top_pool.cpp:45:51: warning: ‘at::TypeExtendedInterface& torch::CUDA(c10::ScalarType)’ is deprecated [-Wdeprecated-declarations]
auto max_ind = at::zeros(torch::CUDA(at::kLong), {batch, channel, width});
^
In file included from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Type.h:5:0,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Type.h:2,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Context.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/ATen.h:5,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/types.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/all.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/torch.h:3,
from src/top_pool.cpp:1:
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/variable_tensor_functions.h:35:52: note: declared here
AT_DEPRECATED(THP_CLASS at::TypeExtendedInterface& CUDA(at::ScalarType type));
^
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Deprecated.h:9:61: note: in definition of macro ‘AT_DEPRECATED’
#define AT_DEPRECATED(function) attribute((deprecated)) function
^
src/top_pool.cpp:45:41: error: could not convert ‘torch::CUDA((c10::ScalarType)4)’ from ‘at::TypeExtendedInterface’ to ‘c10::IntList {aka c10::ArrayRef}’
auto max_ind = at::zeros(torch::CUDA(at::kLong), {batch, channel, width});
^
src/top_pool.cpp:57:40: warning: ‘at::TypeExtendedInterface& torch::CUDA(c10::ScalarType)’ is deprecated [-Wdeprecated-declarations]
auto gt_mask = at::zeros(torch::CUDA(at::kByte), {batch, channel, width});
^
In file included from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Type.h:5:0,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Type.h:2,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Context.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/ATen.h:5,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/types.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/all.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/torch.h:3,
from src/top_pool.cpp:1:
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/variable_tensor_functions.h:35:52: note: declared here
AT_DEPRECATED(THP_CLASS at::TypeExtendedInterface& CUDA(at::ScalarType type));
^
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Deprecated.h:9:61: note: in definition of macro ‘AT_DEPRECATED’
#define AT_DEPRECATED(function) attribute((deprecated)) function
^
src/top_pool.cpp:57:40: warning: ‘at::TypeExtendedInterface& torch::CUDA(c10::ScalarType)’ is deprecated [-Wdeprecated-declarations]
auto gt_mask = at::zeros(torch::CUDA(at::kByte), {batch, channel, width});
^
In file included from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Type.h:5:0,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Type.h:2,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Context.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/ATen.h:5,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/types.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/all.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/torch.h:3,
from src/top_pool.cpp:1:
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/variable_tensor_functions.h:35:52: note: declared here
AT_DEPRECATED(THP_CLASS at::TypeExtendedInterface& CUDA(at::ScalarType type));
^
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Deprecated.h:9:61: note: in definition of macro ‘AT_DEPRECATED’
#define AT_DEPRECATED(function) attribute((deprecated)) function
^
src/top_pool.cpp:57:54: warning: ‘at::TypeExtendedInterface& torch::CUDA(c10::ScalarType)’ is deprecated [-Wdeprecated-declarations]
auto gt_mask = at::zeros(torch::CUDA(at::kByte), {batch, channel, width});
^
In file included from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Type.h:5:0,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Type.h:2,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Context.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/ATen.h:5,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/types.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/all.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/torch.h:3,
from src/top_pool.cpp:1:
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/variable_tensor_functions.h:35:52: note: declared here
AT_DEPRECATED(THP_CLASS at::TypeExtendedInterface& CUDA(at::ScalarType type));
^
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Deprecated.h:9:61: note: in definition of macro ‘AT_DEPRECATED’
#define AT_DEPRECATED(function) attribute((deprecated)) function
^
src/top_pool.cpp:57:44: error: could not convert ‘torch::CUDA((c10::ScalarType)0)’ from ‘at::TypeExtendedInterface’ to ‘c10::IntList {aka c10::ArrayRef}’
auto gt_mask = at::zeros(torch::CUDA(at::kByte), {batch, channel, width});
^
src/top_pool.cpp:58:40: warning: ‘at::TypeExtendedInterface& torch::CUDA(c10::ScalarType)’ is deprecated [-Wdeprecated-declarations]
auto max_temp = at::zeros(torch::CUDA(at::kFloat), {batch, channel, width});
^
In file included from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Type.h:5:0,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Type.h:2,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Context.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/ATen.h:5,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/types.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/all.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/torch.h:3,
from src/top_pool.cpp:1:
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/variable_tensor_functions.h:35:52: note: declared here
AT_DEPRECATED(THP_CLASS at::TypeExtendedInterface& CUDA(at::ScalarType type));
^
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Deprecated.h:9:61: note: in definition of macro ‘AT_DEPRECATED’
#define AT_DEPRECATED(function) attribute((deprecated)) function
^
src/top_pool.cpp:58:40: warning: ‘at::TypeExtendedInterface& torch::CUDA(c10::ScalarType)’ is deprecated [-Wdeprecated-declarations]
auto max_temp = at::zeros(torch::CUDA(at::kFloat), {batch, channel, width});
^
In file included from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Type.h:5:0,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Type.h:2,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Context.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/ATen.h:5,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/types.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/all.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/torch.h:3,
from src/top_pool.cpp:1:
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/variable_tensor_functions.h:35:52: note: declared here
AT_DEPRECATED(THP_CLASS at::TypeExtendedInterface& CUDA(at::ScalarType type));
^
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Deprecated.h:9:61: note: in definition of macro ‘AT_DEPRECATED’
#define AT_DEPRECATED(function) attribute((deprecated)) function
^
src/top_pool.cpp:58:55: warning: ‘at::TypeExtendedInterface& torch::CUDA(c10::ScalarType)’ is deprecated [-Wdeprecated-declarations]
auto max_temp = at::zeros(torch::CUDA(at::kFloat), {batch, channel, width});
^
In file included from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Type.h:5:0,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Type.h:2,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/Context.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/ATen.h:5,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/types.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/data.h:3,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/all.h:4,
from /home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/api/include/torch/torch.h:3,
from src/top_pool.cpp:1:
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/torch/csrc/variable_tensor_functions.h:35:52: note: declared here
AT_DEPRECATED(THP_CLASS at::TypeExtendedInterface& CUDA(at::ScalarType type));
^
/home/asd/anaconda3/envs/CornerNet/lib/python3.7/site-packages/torch/lib/include/ATen/core/Deprecated.h:9:61: note: in definition of macro ‘AT_DEPRECATED’
#define AT_DEPRECATED(function) attribute((deprecated)) function
^
src/top_pool.cpp:58:44: error: could not convert ‘torch::CUDA((c10::ScalarType)6)’ from ‘at::TypeExtendedInterface’ to ‘c10::IntList {aka c10::ArrayRef}’
auto max_temp = at::zeros(torch::CUDA(at::kFloat), {batch, channel, width});
^
error: command 'gcc' failed with exit status 1

@heilaw
Copy link
Collaborator

heilaw commented Feb 17, 2019

Were you using PyTorch 1.0? Our current implementation only supports PyTorch 0.4 as PyTorch 1.0 changed the C++ APIs.

@oznurco
Copy link
Author

oznurco commented Feb 18, 2019

Hello @heilaw,
I checked pytorch version, and it was 1.0.1.post2. I have compiled without error after PyTorch 0.4.1 install.
Thanks a lot.

@autocyz
Copy link

autocyz commented Mar 29, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants