You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to build your code on my system and I am having quite a few errors. Any idea why I could be facing this? Im using libtorch and CUDA 10.2 in my system.
Build message :
Scanning dependencies of target layers
[ 2%] Building CXX object src/monodepth/layers/CMakeFiles/layers.dir/batch_norm.cpp.o
[ 4%] Building CXX object src/monodepth/layers/CMakeFiles/layers.dir/conv2d.cpp.o
In file included from /home/vishnuu/808x/project1/monodepth2.cpp/src/monodepth/layers/conv2d.cpp:1:0:
/home/vishnuu/808x/project1/monodepth2.cpp/src/monodepth/layers/../../../include/monodepth/layers/conv2d.h: In static member function ‘static torch::autograd::variable_list monodepth::layers::_NewEmptyTensorOp::backward(torch::autograd::AutogradContext*, torch::autograd::variable_list)’:
/home/vishnuu/808x/project1/monodepth2.cpp/src/monodepth/layers/../../../include/monodepth/layers/conv2d.h:18:43: error: ‘struct c10::IValue’ has no member named ‘toIntListRef’
auto shape = ctx->saved_data["shape"].toIntListRef();
^
/home/vishnuu/808x/project1/monodepth2.cpp/src/monodepth/layers/../../../include/monodepth/layers/conv2d.h:20:88: error: no matching function for call to ‘std::vectorat::Tensor::vector()’
variable_list{_NewEmptyTensorOp::apply(grad_output, shape.vec()), Variable()};
^
In file included from /usr/include/c++/5/vector:64:0,
from /home/vishnuu/Downloads/libtorch/include/c10/util/StringUtil.h:11,
from /home/vishnuu/Downloads/libtorch/include/c10/util/Exception.h:5,
from /home/vishnuu/Downloads/libtorch/include/c10/core/Device.h:5,
from /home/vishnuu/Downloads/libtorch/include/c10/core/Allocator.h:6,
from /home/vishnuu/Downloads/libtorch/include/ATen/ATen.h:3,
from /home/vishnuu/Downloads/libtorch/include/torch/csrc/api/include/torch/types.h:3,
from /home/vishnuu/Downloads/libtorch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/vishnuu/Downloads/libtorch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/vishnuu/Downloads/libtorch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/vishnuu/Downloads/libtorch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/vishnuu/Downloads/libtorch/include/torch/csrc/api/include/torch/data.h:3,
from /home/vishnuu/Downloads/libtorch/include/torch/csrc/api/include/torch/all.h:4,
from /home/vishnuu/Downloads/libtorch/include/torch/csrc/api/include/torch/torch.h:3,
from /home/vishnuu/808x/project1/monodepth2.cpp/src/monodepth/layers/../../../include/monodepth/layers/conv2d.h:2,
from /home/vishnuu/808x/project1/monodepth2.cpp/src/monodepth/layers/conv2d.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:401:9: note: candidate: template<class _InputIterator, class> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)
vector(_InputIterator __first, _InputIterator __last,
^
/usr/include/c++/5/bits/stl_vector.h:401:9: note: template argument deduction/substitution failed:
/usr/include/c++/5/bits/stl_vector.h:373:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = at::Tensor; _Alloc = std::allocatorat::Tensor; std::vector<_Tp, _Alloc>::allocator_type = std::allocatorat::Tensor]
vector(initializer_list<value_type> __l,
^
/usr/include/c++/5/bits/stl_vector.h:373:7: note: conversion of argument 1 would be ill-formed:
/usr/include/c++/5/bits/stl_vector.h:348:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, const allocator_type&) [with _Tp = at::Tensor; _Alloc = std::allocatorat::Tensor; std::vector<_Tp, _Alloc>::allocator_type = std::allocatorat::Tensor]
vector(vector&& __rv, const allocator_type& __m)
^
/usr/include/c++/5/bits/stl_vector.h:348:7: note: conversion of argument 1 would be ill-formed:
/usr/include/c++/5/bits/stl_vector.h:339:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&, const allocator_type&) [with _Tp = at::Tensor; _Alloc = std::allocatorat::Tensor; std::vector<_Tp, _Alloc>::allocator_type = std::allocatorat::Tensor]
vector(const vector& __x, const allocator_type& __a)
^
/usr/include/c++/5/bits/stl_vector.h:339:7: note: conversion of argument 1 would be ill-formed:
/usr/include/c++/5/bits/stl_vector.h:335:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&) [with _Tp = at::Tensor; _Alloc = std::allocatorat::Tensor]
vector(vector&& __x) noexcept
^
/usr/include/c++/5/bits/stl_vector.h:335:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = at::Tensor; _Alloc = std::allocatorat::Tensor]
vector(const vector& __x)
^
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/5/bits/stl_vector.h:289:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = at::Tensor; _Alloc** = std::allocatorat::Tensor; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = at::Tensor; std::vector<_Tp, _Alloc>::allocator_type = std::allocatorat::Tensor]
vector(size_type __n, const value_type& __value,
^
/usr/include/c++/5/bits/stl_vector.h:289:7: note: conversion of argument 1 would be ill-formed:
/usr/include/c++/5/bits/stl_vector.h:277:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&) [with _Tp = at::Tensor; _Alloc = std::allocatorat::Tensor; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::allocator_type = std::allocatorat::Tensor]
vector(size_type __n, const allocator_type& __a = allocator_type())
^
/usr/include/c++/5/bits/stl_vector.h:277:7: note: conversion of argument 1 would be ill-formed:
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = at::Tensor; _Alloc = std::allocatorat::Tensor; std::vector<_Tp, _Alloc>::allocator_type = std::allocatorat::Tensor]
vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
^
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate: std::vector<_Tp, _Alloc>::vector() [with _Tp = at::Tensor; _Alloc = std::allocatorat::Tensor]
vector()
^
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate expects 0 arguments, 2 provided
src/monodepth/layers/CMakeFiles/layers.dir/build.make:75: recipe for target 'src/monodepth/layers/CMakeFiles/layers.dir/conv2d.cpp.o' failed
make[2]: *** [src/monodepth/layers/CMakeFiles/layers.dir/conv2d.cpp.o] Error 1
CMakeFiles/Makefile2:275: recipe for target 'src/monodepth/layers/CMakeFiles/layers.dir/all' failed
make[1]: *** [src/monodepth/layers/CMakeFiles/layers.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to build your code on my system and I am having quite a few errors. Any idea why I could be facing this? Im using libtorch and CUDA 10.2 in my system.
Build message :
Scanning dependencies of target layers
[ 2%] Building CXX object src/monodepth/layers/CMakeFiles/layers.dir/batch_norm.cpp.o
[ 4%] Building CXX object src/monodepth/layers/CMakeFiles/layers.dir/conv2d.cpp.o
In file included from /home/vishnuu/808x/project1/monodepth2.cpp/src/monodepth/layers/conv2d.cpp:1:0:
/home/vishnuu/808x/project1/monodepth2.cpp/src/monodepth/layers/../../../include/monodepth/layers/conv2d.h: In static member function ‘static torch::autograd::variable_list monodepth::layers::_NewEmptyTensorOp::backward(torch::autograd::AutogradContext*, torch::autograd::variable_list)’:
/home/vishnuu/808x/project1/monodepth2.cpp/src/monodepth/layers/../../../include/monodepth/layers/conv2d.h:18:43: error: ‘struct c10::IValue’ has no member named ‘toIntListRef’
auto shape = ctx->saved_data["shape"].toIntListRef();
^
/home/vishnuu/808x/project1/monodepth2.cpp/src/monodepth/layers/../../../include/monodepth/layers/conv2d.h:20:88: error: no matching function for call to ‘std::vectorat::Tensor::vector()’
variable_list{_NewEmptyTensorOp::apply(grad_output, shape.vec()), Variable()};
^
In file included from /usr/include/c++/5/vector:64:0,
from /home/vishnuu/Downloads/libtorch/include/c10/util/StringUtil.h:11,
from /home/vishnuu/Downloads/libtorch/include/c10/util/Exception.h:5,
from /home/vishnuu/Downloads/libtorch/include/c10/core/Device.h:5,
from /home/vishnuu/Downloads/libtorch/include/c10/core/Allocator.h:6,
from /home/vishnuu/Downloads/libtorch/include/ATen/ATen.h:3,
from /home/vishnuu/Downloads/libtorch/include/torch/csrc/api/include/torch/types.h:3,
from /home/vishnuu/Downloads/libtorch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /home/vishnuu/Downloads/libtorch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /home/vishnuu/Downloads/libtorch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /home/vishnuu/Downloads/libtorch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /home/vishnuu/Downloads/libtorch/include/torch/csrc/api/include/torch/data.h:3,
from /home/vishnuu/Downloads/libtorch/include/torch/csrc/api/include/torch/all.h:4,
from /home/vishnuu/Downloads/libtorch/include/torch/csrc/api/include/torch/torch.h:3,
from /home/vishnuu/808x/project1/monodepth2.cpp/src/monodepth/layers/../../../include/monodepth/layers/conv2d.h:2,
from /home/vishnuu/808x/project1/monodepth2.cpp/src/monodepth/layers/conv2d.cpp:1:
/usr/include/c++/5/bits/stl_vector.h:401:9: note: candidate: template<class _InputIterator, class> std::vector<_Tp, _Alloc>::vector(_InputIterator, _InputIterator, const allocator_type&)
vector(_InputIterator __first, _InputIterator __last,
^
/usr/include/c++/5/bits/stl_vector.h:401:9: note: template argument deduction/substitution failed:
/usr/include/c++/5/bits/stl_vector.h:373:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::initializer_list<_Tp>, const allocator_type&) [with _Tp = at::Tensor; _Alloc = std::allocatorat::Tensor; std::vector<_Tp, _Alloc>::allocator_type = std::allocatorat::Tensor]
vector(initializer_list<value_type> __l,
^
/usr/include/c++/5/bits/stl_vector.h:373:7: note: conversion of argument 1 would be ill-formed:
/usr/include/c++/5/bits/stl_vector.h:348:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&, const allocator_type&) [with _Tp = at::Tensor; _Alloc = std::allocatorat::Tensor; std::vector<_Tp, _Alloc>::allocator_type = std::allocatorat::Tensor]
vector(vector&& __rv, const allocator_type& __m)
^
/usr/include/c++/5/bits/stl_vector.h:348:7: note: conversion of argument 1 would be ill-formed:
/usr/include/c++/5/bits/stl_vector.h:339:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&, const allocator_type&) [with _Tp = at::Tensor; _Alloc = std::allocatorat::Tensor; std::vector<_Tp, _Alloc>::allocator_type = std::allocatorat::Tensor]
vector(const vector& __x, const allocator_type& __a)
^
/usr/include/c++/5/bits/stl_vector.h:339:7: note: conversion of argument 1 would be ill-formed:
/usr/include/c++/5/bits/stl_vector.h:335:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&&) [with _Tp = at::Tensor; _Alloc = std::allocatorat::Tensor]
vector(vector&& __x) noexcept
^
/usr/include/c++/5/bits/stl_vector.h:335:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const std::vector<_Tp, _Alloc>&) [with _Tp = at::Tensor; _Alloc = std::allocatorat::Tensor]
vector(const vector& __x)
^
/usr/include/c++/5/bits/stl_vector.h:318:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/5/bits/stl_vector.h:289:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = at::Tensor; _Alloc** = std::allocatorat::Tensor; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = at::Tensor; std::vector<_Tp, _Alloc>::allocator_type = std::allocatorat::Tensor]
vector(size_type __n, const value_type& __value,
^
/usr/include/c++/5/bits/stl_vector.h:289:7: note: conversion of argument 1 would be ill-formed:
/usr/include/c++/5/bits/stl_vector.h:277:7: note: candidate: std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const allocator_type&) [with _Tp = at::Tensor; _Alloc = std::allocatorat::Tensor; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::allocator_type = std::allocatorat::Tensor]
vector(size_type __n, const allocator_type& __a = allocator_type())
^
/usr/include/c++/5/bits/stl_vector.h:277:7: note: conversion of argument 1 would be ill-formed:
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate: std::vector<_Tp, _Alloc>::vector(const allocator_type&) [with _Tp = at::Tensor; _Alloc = std::allocatorat::Tensor; std::vector<_Tp, _Alloc>::allocator_type = std::allocatorat::Tensor]
vector(const allocator_type& __a) _GLIBCXX_NOEXCEPT
^
/usr/include/c++/5/bits/stl_vector.h:264:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate: std::vector<_Tp, _Alloc>::vector() [with _Tp = at::Tensor; _Alloc = std::allocatorat::Tensor]
vector()
^
/usr/include/c++/5/bits/stl_vector.h:253:7: note: candidate expects 0 arguments, 2 provided
src/monodepth/layers/CMakeFiles/layers.dir/build.make:75: recipe for target 'src/monodepth/layers/CMakeFiles/layers.dir/conv2d.cpp.o' failed
make[2]: *** [src/monodepth/layers/CMakeFiles/layers.dir/conv2d.cpp.o] Error 1
CMakeFiles/Makefile2:275: recipe for target 'src/monodepth/layers/CMakeFiles/layers.dir/all' failed
make[1]: *** [src/monodepth/layers/CMakeFiles/layers.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
The text was updated successfully, but these errors were encountered: