Open Yangxinyee opened 12 months ago
Full error:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Optional.h:587:23: note: ‘std::shared_ptr
In file included from /usr/include/c++/7/memory:81:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/usr/include/c++/7/bits/shared_ptr.h:317:7: note: candidate: std::shared_ptr<_Tp>& std::shared_ptr<_Tp>::operator=(std::shared_ptr<_Tp>&&) [with _Tp = torch::jit::Graph] <near match>
operator=(shared_ptr&& __r) noexcept
^~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:317:7: note: passing ‘const std::shared_ptr<torch::jit::Graph>*’ as ‘this’ argument discards qualifiers
/usr/include/c++/7/bits/shared_ptr.h:325:2: note: candidate: std::shared_ptr<_Tp>::_Assignable<std::shared_ptr<_Yp> > std::shared_ptr<_Tp>::operator=(std::shared_ptr<_Yp>&&) [with _Yp = torch::jit::Graph; _Tp = torch::jit::Graph; std::shared_ptr<_Tp>::_Assignable<std::shared_ptr<_Yp> > = std::shared_ptr<torch::jit::Graph>&] <near match>
operator=(shared_ptr<_Yp>&& __r) noexcept
^~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:325:2: note: passing ‘const std::shared_ptr<torch::jit::Graph>*’ as ‘this’ argument discards qualifiers
/usr/include/c++/7/bits/shared_ptr.h:333:2: note: candidate: template<class _Yp, class _Del> std::shared_ptr<_Tp>::_Assignable<std::unique_ptr<_Up, _Ep> > std::shared_ptr<_Tp>::operator=(std::unique_ptr<_Up, _Ep>&&) [with _Yp = _Yp; _Del = _Del; _Tp = torch::jit::Graph]
operator=(unique_ptr<_Yp, _Del>&& __r)
^~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:333:2: note: template argument deduction/substitution failed:
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/ScalarType.h:6:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:10,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Optional.h:587:23: note: ‘std::shared_ptr<torch::jit::Graph>’ is not derived from ‘std::unique_ptr<_Tp, _Dp>’
contained_val() = std::forward<U>(v);
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Optional.h: In instantiation of ‘typename std::enable_if<(((std::is_constructible<T, U>::value && (! std::is_same<typename std::decay<_U1>::type, c10::optional<T> >::value)) && (std::is_scalar<_Tp>::value || std::is_same<typename std::decay<_U1>::type, T>::value)) && std::is_assignable<T&, U>::value), c10::optional<T>&>::type c10::optional<T>::operator=(U&&) [with U = torch::jit::Method; T = torch::jit::Method; typename std::enable_if<(((std::is_constructible<T, U>::value && (! std::is_same<typename std::decay<_U1>::type, c10::optional<T> >::value)) && (std::is_scalar<_Tp>::value || std::is_same<typename std::decay<_U1>::type, T>::value)) && std::is_assignable<T&, U>::value), c10::optional<T>&>::type = c10::optional<torch::jit::Method>&]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/jit/api/object.h:126:49: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Optional.h:587:23: error: passing ‘const torch::jit::Method’ as ‘this’ argument discards qualifiers [-fpermissive]
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/jit/api/object.h:6:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/jit/frontend/tracer.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/autograd/generated/variable_factories.h:12,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:7,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/jit/api/method.h:20:18: note: in call to ‘torch::jit::Method& torch::jit::Method::operator=(torch::jit::Method&&)’
struct TORCH_API Method {
^~~~~~
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/ScalarType.h:6:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:10,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Optional.h: In instantiation of ‘typename std::enable_if<(((std::is_constructible<T, U>::value && (! std::is_same<typename std::decay<_U1>::type, c10::optional<T> >::value)) && (std::is_scalar<_Tp>::value || std::is_same<typename std::decay<_U1>::type, T>::value)) && std::is_assignable<T&, U>::value), c10::optional<T>&>::type c10::optional<T>::operator=(U&&) [with U = long int; T = long int; typename std::enable_if<(((std::is_constructible<T, U>::value && (! std::is_same<typename std::decay<_U1>::type, c10::optional<T> >::value)) && (std::is_scalar<_Tp>::value || std::is_same<typename std::decay<_U1>::type, T>::value)) && std::is_assignable<T&, U>::value), c10::optional<T>&>::type = c10::optional<long int>&]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional/embedding.h:35:39: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Optional.h:587:23: error: assignment of read-only location ‘((c10::optional<long int>*)this)->c10::optional<long int>::contained_val()’
contained_val() = std::forward<U>(v);
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Optional.h: In instantiation of ‘typename std::enable_if<(((std::is_constructible<T, U>::value && (! std::is_same<typename std::decay<_U1>::type, c10::optional<T> >::value)) && (std::is_scalar<_Tp>::value || std::is_same<typename std::decay<_U1>::type, T>::value)) && std::is_assignable<T&, U>::value), c10::optional<T>&>::type c10::optional<T>::operator=(U&&) [with U = int; T = long int; typename std::enable_if<(((std::is_constructible<T, U>::value && (! std::is_same<typename std::decay<_U1>::type, c10::optional<T> >::value)) && (std::is_scalar<_Tp>::value || std::is_same<typename std::decay<_U1>::type, T>::value)) && std::is_assignable<T&, U>::value), c10::optional<T>&>::type = c10::optional<long int>&]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional/embedding.h:38:20: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Optional.h:587:23: error: assignment of read-only location ‘((c10::optional<long int>*)this)->c10::optional<long int>::contained_val()’
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Device.h:5:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/enum.h: In instantiation of ‘at::Reduction::Reduction torch::enumtype::reduction_get_enum(V) [with V = c10::variant<torch::enumtype::kNone, torch::enumtype::kMean, torch::enumtype::kSum>]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional/loss.h:20:43: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:364:36: error: no matching function for call to ‘torchCheckMsgImpl(const char [140], std::string, const char [36])’
(::c10::detail::torchCheckMsgImpl( \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
"Expected " #cond \
" to be true, but got false. " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"(Could this error message be improved? If so, " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"please report an enhancement request to PyTorch.)", \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##__VA_ARGS__))
~~~~~~~~~~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:435:9: note: in expansion of macro ‘TORCH_CHECK_MSG’
TORCH_CHECK_MSG(cond, "", ##__VA_ARGS__)); \
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/enum.h:194:5: note: in expansion of macro ‘TORCH_CHECK’
TORCH_CHECK(
^~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char)
inline C10_API const char torchCheckMsgImpl(const char msg) {
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate expects 1 argument, 3 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char, const char)
inline C10_API const char torchCheckMsgImpl(
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate expects 2 arguments, 3 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/enum.h: In instantiation of ‘at::Reduction::Reduction torch::enumtype::reduction_get_enum(V) [with V = c10::variant<torch::enumtype::kNone, torch::enumtype::kBatchMean, torch::enumtype::kSum, torch::enumtype::kMean>]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional/loss.h:65:60: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:364:36: error: no matching function for call to ‘torchCheckMsgImpl(const char [140], std::string, const char [36])’
(::c10::detail::torchCheckMsgImpl( \
"Expected " #cond \
" to be true, but got false. " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"(Could this error message be improved? If so, " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"please report an enhancement request to PyTorch.)", \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##__VA_ARGS__))
~~~~~~~~~~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:435:9: note: in expansion of macro ‘TORCH_CHECK_MSG’
TORCH_CHECK_MSG(cond, "", ##__VA_ARGS__)); \
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/enum.h:194:5: note: in expansion of macro ‘TORCH_CHECK’
TORCH_CHECK(
^~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char)
inline C10_API const char torchCheckMsgImpl(const char msg) {
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate expects 1 argument, 3 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char, const char)
inline C10_API const char torchCheckMsgImpl(
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate expects 2 arguments, 3 provided
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/DispatchKey.h:4:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Backend.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Layout.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/ArrayRef.h: In instantiation of ‘constexpr const T& c10::ArrayRef
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:6:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional/conv.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h:23:7: note: in call to ‘torch::ExpandingArray<2>& torch::ExpandingArray<2>::operator=(torch::ExpandingArray<2>&&)’
class ExpandingArray {
^~~~~~~~~~~~~~
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/ScalarType.h:6:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:10,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Optional.h: In instantiation of ‘typename std::enable_if<(((std::is_constructible<T, U>::value && (! std::is_same<typename std::decay<_U1>::type, c10::optional<T> >::value)) && (std::is_scalar<_Tp>::value || std::is_same<typename std::decay<_U1>::type, T>::value)) && std::is_assignable<T&, U>::value), c10::optional<T>&>::type c10::optional<T>::operator=(U&&) [with U = torch::ExpandingArray<3>; T = torch::ExpandingArray<3>; typename std::enable_if<(((std::is_constructible<T, U>::value && (! std::is_same<typename std::decay<_U1>::type, c10::optional<T> >::value)) && (std::is_scalar<_Tp>::value || std::is_same<typename std::decay<_U1>::type, T>::value)) && std::is_assignable<T&, U>::value), c10::optional<T>&>::type = c10::optional<torch::ExpandingArray<3> >&]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional/pooling.h:853:77: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Optional.h:587:23: error: passing ‘const torch::ExpandingArray<3>’ as ‘this’ argument discards qualifiers [-fpermissive]
contained_val() = std::forward<U>(v);
~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/options/conv.h:6:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional/conv.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:13,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h:23:7: note: in call to ‘torch::ExpandingArray<3>& torch::ExpandingArray<3>::operator=(torch::ExpandingArray<3>&&)’
class ExpandingArray {
^~~~~~~~~~~~~~
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Device.h:5:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/ordered_dict.h: In instantiation of ‘void torch::OrderedDict<Key, Value>::erase(const Key&) [with Key = std::basic_string<char>; Value = std::shared_ptr<torch::nn::Module>]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/modules/container/moduledict.h:197:23: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:364:36: error: no matching function for call to ‘torchCheckMsgImpl(const char [153], const char [6], const std::basic_string<char>&, const char [16])’
(::c10::detail::torchCheckMsgImpl( \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
"Expected " #cond \
" to be true, but got false. " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"(Could this error message be improved? If so, " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"please report an enhancement request to PyTorch.)", \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##__VA_ARGS__))
~~~~~~~~~~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:435:9: note: in expansion of macro ‘TORCH_CHECK_MSG’
TORCH_CHECK_MSG(cond, "", ##__VA_ARGS__)); \
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/ordered_dict.h:425:3: note: in expansion of macro ‘TORCH_CHECK’
TORCHCHECK(it != index.end(), "Key '", key, "' doesn't exist");
^~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char)
inline C10_API const char torchCheckMsgImpl(const char msg) {
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate expects 1 argument, 4 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char, const char)
inline C10_API const char torchCheckMsgImpl(
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate expects 2 arguments, 4 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/ordered_dict.h: In instantiation of ‘void torch::OrderedDict<Key, Value>::erase(const Key&) [with Key = std::basic_string
"Expected " #cond \
" to be true, but got false. " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"(Could this error message be improved? If so, " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"please report an enhancement request to PyTorch.)", \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##__VA_ARGS__))
~~~~~~~~~~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:435:9: note: in expansion of macro ‘TORCH_CHECK_MSG’
TORCH_CHECK_MSG(cond, "", ##__VA_ARGS__)); \
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/ordered_dict.h:425:3: note: in expansion of macro ‘TORCH_CHECK’
TORCHCHECK(it != index.end(), "Key '", key, "' doesn't exist");
^~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char)
inline C10_API const char torchCheckMsgImpl(const char msg) {
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate expects 1 argument, 4 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char, const char)
inline C10_API const char torchCheckMsgImpl(
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate expects 2 arguments, 4 provided
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/ScalarType.h:6:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:10,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Optional.h: In instantiation of ‘typename std::enable_if<(((std::is_constructible<T, U>::value && (! std::is_same<typename std::decay<_U1>::type, c10::optional
In file included from /usr/include/c++/7/vector:64:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/StringUtil.h:11,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:6,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Device.h:5,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/usr/include/c++/7/bits/stl_vector.h:461:7: note: in call to ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = c10::optional<c10::Stride>; _Alloc = std::allocator<c10::optional<c10::Stride> >]’
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^~~~~~~~
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/List.h:480:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/ivalue_inl.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/ivalue.h:1175,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/record_function.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Dispatch.h:5,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:13,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/List_inl.h: In instantiation of ‘static c10::IValue c10::detail::ListElementFrom<T>::from(T&&) [with T = c10::optional<at::Tensor>]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/List_inl.h:275:62: required from ‘void c10::List<T>::push_back(T&&) const [with T = c10::optional<at::Tensor>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/TensorIndexing.h:280:75: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/List_inl.h:117:31: error: could not convert ‘std::move<c10::optional<at::Tensor>&>((* & element))’ from ‘std::remove_reference<c10::optional<at::Tensor>&>::type {aka c10::optional<at::Tensor>}’ to ‘c10::IValue’
return std::move(element);
^
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Device.h:5:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Allocator.h:6,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:7,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h: In instantiation of ‘torch::ExpandingArray<D, T>::ExpandingArray(c10::ArrayRef<T>) [with long unsigned int D = 2; T = long int]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h:29:45: required from ‘torch::ExpandingArray<D, T>::ExpandingArray(std::initializer_list<_Value>) [with long unsigned int D = 2; T = long int]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/nn/functional/pooling.h:774:77: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:364:36: error: no matching function for call to ‘torchCheckMsgImpl(const char [153], const char [10], long unsigned int, const char [26], size_t)’
(::c10::detail::torchCheckMsgImpl( \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
"Expected " #cond \
" to be true, but got false. " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"(Could this error message be improved? If so, " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"please report an enhancement request to PyTorch.)", \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##__VA_ARGS__))
~~~~~~~~~~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:435:9: note: in expansion of macro ‘TORCH_CHECK_MSG’
TORCH_CHECK_MSG(cond, "", ##__VA_ARGS__)); \
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h:42:5: note: in expansion of macro ‘TORCH_CHECK’
TORCH_CHECK(
^~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char)
inline C10_API const char torchCheckMsgImpl(const char msg) {
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate expects 1 argument, 5 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char, const char)
inline C10_API const char torchCheckMsgImpl(
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate expects 2 arguments, 5 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h: In instantiation of ‘torch::ExpandingArray<D, T>::ExpandingArray(c10::ArrayRef
"Expected " #cond \
" to be true, but got false. " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"(Could this error message be improved? If so, " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"please report an enhancement request to PyTorch.)", \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##__VA_ARGS__))
~~~~~~~~~~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:435:9: note: in expansion of macro ‘TORCH_CHECK_MSG’
TORCH_CHECK_MSG(cond, "", ##__VA_ARGS__)); \
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h:42:5: note: in expansion of macro ‘TORCH_CHECK’
TORCH_CHECK(
^~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char)
inline C10_API const char torchCheckMsgImpl(const char msg) {
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate expects 1 argument, 5 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char, const char)
inline C10_API const char torchCheckMsgImpl(
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate expects 2 arguments, 5 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h: In instantiation of ‘torch::ExpandingArray<D, T>::ExpandingArray(c10::ArrayRef
"Expected " #cond \
" to be true, but got false. " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"(Could this error message be improved? If so, " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"please report an enhancement request to PyTorch.)", \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##__VA_ARGS__))
~~~~~~~~~~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:435:9: note: in expansion of macro ‘TORCH_CHECK_MSG’
TORCH_CHECK_MSG(cond, "", ##__VA_ARGS__)); \
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h:42:5: note: in expansion of macro ‘TORCH_CHECK’
TORCH_CHECK(
^~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char)
inline C10_API const char torchCheckMsgImpl(const char msg) {
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate expects 1 argument, 5 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char, const char)
inline C10_API const char torchCheckMsgImpl(
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate expects 2 arguments, 5 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h: In instantiation of ‘torch::ExpandingArrayWithOptionalElem<D, T>::ExpandingArrayWithOptionalElem(c10::ArrayRef
"Expected " #cond \
" to be true, but got false. " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"(Could this error message be improved? If so, " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"please report an enhancement request to PyTorch.)", \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##__VA_ARGS__))
~~~~~~~~~~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:435:9: note: in expansion of macro ‘TORCH_CHECK_MSG’
TORCH_CHECK_MSG(cond, "", ##__VA_ARGS__)); \
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h:131:5: note: in expansion of macro ‘TORCH_CHECK’
TORCH_CHECK(
^~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char)
inline C10_API const char torchCheckMsgImpl(const char msg) {
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate expects 1 argument, 5 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char, const char)
inline C10_API const char torchCheckMsgImpl(
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate expects 2 arguments, 5 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h: In instantiation of ‘torch::ExpandingArrayWithOptionalElem<D, T>::ExpandingArrayWithOptionalElem(c10::ArrayRef
"Expected " #cond \
" to be true, but got false. " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"(Could this error message be improved? If so, " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"please report an enhancement request to PyTorch.)", \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##__VA_ARGS__))
~~~~~~~~~~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:435:9: note: in expansion of macro ‘TORCH_CHECK_MSG’
TORCH_CHECK_MSG(cond, "", ##__VA_ARGS__)); \
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/expanding_array.h:131:5: note: in expansion of macro ‘TORCH_CHECK’
TORCH_CHECK(
^~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char)
inline C10_API const char torchCheckMsgImpl(const char msg) {
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate expects 1 argument, 5 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char, const char)
inline C10_API const char torchCheckMsgImpl(
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate expects 2 arguments, 5 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/ordered_dict.h: In instantiation of ‘Value& torch::OrderedDict<Key, Value>::insert(K&&, V&&) [with K = std::basic_string
"Expected " #cond \
" to be true, but got false. " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"(Could this error message be improved? If so, " \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"please report an enhancement request to PyTorch.)", \
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
##__VA_ARGS__))
~~~~~~~~~~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:435:9: note: in expansion of macro ‘TORCH_CHECK_MSG’
TORCH_CHECK_MSG(cond, "", ##__VA_ARGS__)); \
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/ordered_dict.h:373:3: note: in expansion of macro ‘TORCH_CHECK’
TORCH_CHECK(
^~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char)
inline C10_API const char torchCheckMsgImpl(const char msg) {
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:351:28: note: candidate expects 1 argument, 5 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate: const char c10::detail::torchCheckMsgImpl(const char, const char)
inline C10_API const char torchCheckMsgImpl(
^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Exception.h:355:28: note: candidate expects 2 arguments, 5 provided
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:13:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h: In instantiation of ‘static dest_t c10::static_cast_with_inter_type<dest_t, src_t>::apply(src_t) [with dest_t = c10::complex~~~~~~~~~~~
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Half.h:14:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/ScalarType.h:5,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:10,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:163:38: note: candidate: template~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:163:38: note: template argument deduction/substitution failed:
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:13:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:40:62: note: cannot convert ‘c10::maybe_real<false, c10::complex
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Half.h:14:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/ScalarType.h:5,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:10,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:149:22: note: candidate: template<class U> constexpr c10::complex<T>::complex(const std::complex<_Up>&)
explicit constexpr complex(const std::complex<U>& other)
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:149:22: note: template argument deduction/substitution failed:
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:13:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:40:12: note: ‘c10::complex<float>’ is not derived from ‘const std::complex<_Tp>’
return static_cast<dest_t>(maybe_real<real, src_t>::apply(src));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Half.h:14:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/ScalarType.h:5,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:10,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:146:29: note: candidate: constexpr c10::complex<T>::complex(const T&, const T&) [with T = double]
C10_HOST_DEVICE constexpr complex(const T& re, const T& im = T())
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:146:29: note: no known conversion for argument 1 from ‘c10::complex<float>’ to ‘const double’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:145:13: note: candidate: constexpr c10::complex<T>::complex() [with T = double]
constexpr complex() = default;
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:145:13: note: candidate expects 0 arguments, 1 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:139:31: note: candidate: constexpr c10::complex<double>::complex(const c10::complex<double>&)
struct alignas(sizeof(T) * 2) complex {
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:139:31: note: no known conversion for argument 1 from ‘c10::complex<float>’ to ‘const c10::complex<double>&’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:139:31: note: candidate: constexpr c10::complex<double>::complex(c10::complex<double>&&)
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:139:31: note: no known conversion for argument 1 from ‘c10::complex<float>’ to ‘c10::complex<double>&&’
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:13:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h: In instantiation of ‘static uint8_t c10::static_cast_with_inter_type<unsigned char, src_t>::apply(src_t) [with src_t = c10::complex<double>; uint8_t = unsigned char]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:173:54: required from ‘To c10::convert(From) [with To = unsigned char; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:186:27: required from ‘To c10::checked_convert(From, const char*) [with To = unsigned char; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:63:3: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:59:60: error: ‘apply’ is not a member of ‘c10::maybe_real<true, c10::complex<double> >’
static_cast<int64_t>(maybe_real<real, src_t>::apply(src)));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h: In instantiation of ‘static dest_t c10::static_cast_with_inter_type<dest_t, src_t>::apply(src_t) [with dest_t = signed char; src_t = c10::complex<double>]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:173:54: required from ‘To c10::convert(From) [with To = signed char; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:186:27: required from ‘To c10::checked_convert(From, const char*) [with To = signed char; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:63:3: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:40:62: error: ‘apply’ is not a member of ‘c10::maybe_real<true, c10::complex<double> >’
return static_cast<dest_t>(maybe_real<real, src_t>::apply(src));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h: In instantiation of ‘static dest_t c10::static_cast_with_inter_type<dest_t, src_t>::apply(src_t) [with dest_t = short int; src_t = c10::complex<double>]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:173:54: required from ‘To c10::convert(From) [with To = short int; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:186:27: required from ‘To c10::checked_convert(From, const char*) [with To = short int; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:63:3: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:40:62: error: ‘apply’ is not a member of ‘c10::maybe_real<true, c10::complex<double> >’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h: In instantiation of ‘static dest_t c10::static_cast_with_inter_type<dest_t, src_t>::apply(src_t) [with dest_t = int; src_t = c10::complex<double>]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:173:54: required from ‘To c10::convert(From) [with To = int; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:186:27: required from ‘To c10::checked_convert(From, const char*) [with To = int; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:63:3: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:40:62: error: ‘apply’ is not a member of ‘c10::maybe_real<true, c10::complex<double> >’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h: In instantiation of ‘static dest_t c10::static_cast_with_inter_type<dest_t, src_t>::apply(src_t) [with dest_t = long int; src_t = c10::complex<double>]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:173:54: required from ‘To c10::convert(From) [with To = long int; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:186:27: required from ‘To c10::checked_convert(From, const char*) [with To = long int; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:63:3: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:40:62: error: ‘apply’ is not a member of ‘c10::maybe_real<true, c10::complex<double> >’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h: In instantiation of ‘static dest_t c10::static_cast_with_inter_type<dest_t, src_t>::apply(src_t) [with dest_t = c10::Half; src_t = c10::complex<double>]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:173:54: required from ‘To c10::convert(From) [with To = c10::Half; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:186:27: required from ‘To c10::checked_convert(From, const char*) [with To = c10::Half; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:63:3: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:40:62: error: ‘apply’ is not a member of ‘c10::maybe_real<true, c10::complex<double> >’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h: In instantiation of ‘static dest_t c10::static_cast_with_inter_type<dest_t, src_t>::apply(src_t) [with dest_t = float; src_t = c10::complex<double>]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:173:54: required from ‘To c10::convert(From) [with To = float; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:186:27: required from ‘To c10::checked_convert(From, const char*) [with To = float; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:63:3: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:40:62: error: ‘apply’ is not a member of ‘c10::maybe_real<true, c10::complex<double> >’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h: In instantiation of ‘static dest_t c10::static_cast_with_inter_type<dest_t, src_t>::apply(src_t) [with dest_t = double; src_t = c10::complex<double>]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:173:54: required from ‘To c10::convert(From) [with To = double; From = c10::complex<double>’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:186:27: required from ‘To c10::checked_convert(From, const char*) [with To = double; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:63:3: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:40:62: error: ‘apply’ is not a member of ‘c10::maybe_real<true, c10::complex<double> >’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h: In instantiation of ‘static dest_t c10::static_cast_with_inter_type<dest_t, src_t>::apply(src_t) [with dest_t = c10::complex<float>; src_t = c10::complex<double>]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:173:54: required from ‘To c10::convert(From) [with To = c10::complex<float>; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:186:27: required from ‘To c10::checked_convert(From, const char*) [with To = c10::complex<float>; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:63:3: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:40:12: error: no matching function for call to ‘c10::complex<float>::complex(c10::complex<double>)’
return static_cast<dest_t>(maybe_real<real, src_t>::apply(src));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Half.h:14:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/ScalarType.h:5,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:10,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:163:38: note: candidate: template<class U> constexpr c10::complex<T>::complex(int)
C10_HOST_DEVICE explicit constexpr complex(
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:163:38: note: template argument deduction/substitution failed:
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:13:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:40:62: note: cannot convert ‘c10::maybe_real<false, c10::complex<double> >::apply(src)’ (type ‘c10::complex<double>’) to type ‘int’
return static_cast<dest_t>(maybe_real<real, src_t>::apply(src));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Half.h:14:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/ScalarType.h:5,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:10,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:149:22: note: candidate: template<class U> constexpr c10::complex<T>::complex(const std::complex<_Up>&)
explicit constexpr complex(const std::complex<U>& other)
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:149:22: note: template argument deduction/substitution failed:
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:13:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:40:12: note: ‘c10::complex<double>’ is not derived from ‘const std::complex<_Tp>’
return static_cast<dest_t>(maybe_real<real, src_t>::apply(src));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/Half.h:14:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/ScalarType.h:5,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:10,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:146:29: note: candidate: constexpr c10::complex<T>::complex(const T&, const T&) [with T = float]
C10_HOST_DEVICE constexpr complex(const T& re, const T& im = T())
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:146:29: note: no known conversion for argument 1 from ‘c10::complex<double>’ to ‘const float’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:145:13: note: candidate: constexpr c10::complex<T>::complex() [with T = float]
constexpr complex() = default;
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:145:13: note: candidate expects 0 arguments, 1 provided
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:139:31: note: candidate: constexpr c10::complex<float>::complex(const c10::complex<float>&)
struct alignas(sizeof(T) * 2) complex {
^~~~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:139:31: note: no known conversion for argument 1 from ‘c10::complex<double>’ to ‘const c10::complex<float>&’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:139:31: note: candidate: constexpr c10::complex<float>::complex(c10::complex<float>&&)
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/complex.h:139:31: note: no known conversion for argument 1 from ‘c10::complex<double>’ to ‘c10::complex<float>&&’
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:13:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/TensorBody.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Tensor.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Context.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:9,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h: In instantiation of ‘static dest_t c10::static_cast_with_inter_type<dest_t, src_t>::apply(src_t) [with dest_t = bool; src_t = c10::complex<double>]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:173:54: required from ‘To c10::convert(From) [with To = bool; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:186:27: required from ‘To c10::checked_convert(From, const char*) [with To = bool; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:63:3: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:40:62: error: ‘apply’ is not a member of ‘c10::maybe_real<true, c10::complex<double> >’
return static_cast<dest_t>(maybe_real<real, src_t>::apply(src));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h: In instantiation of ‘static dest_t c10::static_cast_with_inter_type<dest_t, src_t>::apply(src_t) [with dest_t = c10::BFloat16; src_t = c10::complex<double>]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:173:54: required from ‘To c10::convert(From) [with To = c10::BFloat16; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:186:27: required from ‘To c10::checked_convert(From, const char*) [with To = c10::BFloat16; From = c10::complex<double>]’
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/core/Scalar.h:63:3: required from here
/root/miniconda3/lib/python3.8/site-packages/torch/include/c10/util/TypeCast.h:40:62: error: ‘apply’ is not a member of ‘c10::maybe_real<true, c10::complex<double> >’
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/jit/api/module.h:13:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/input-archive.h:7,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/serialize/archive.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/samplers/serialize.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/samplers.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets/chunk.h:6,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/datasets.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/ordered_dict.h: In member function ‘Value& torch::OrderedDict<Key, Value>::operator[](const Key&) [with Key = std::basic_string<char>; Value = std::shared_ptr<torch::nn::Module>]’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/ordered_dict.h:360:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
In file included from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/List_inl.h:362:0,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/List.h:480,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/ivalue_inl.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/ivalue.h:1175,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/record_function.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/Dispatch.h:5,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/ATen.h:13,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /root/miniconda3/lib/python3.8/site-packages/torch/include/torch/csrc/api/include/torch/torch.h:3,
from correlation_cuda.cc:1:
/root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/jit_type.h: In static member function ‘static c10::DictTypePtr c10::DictType::create(c10::TypePtr, c10::TypePtr)’:
/root/miniconda3/lib/python3.8/site-packages/torch/include/ATen/core/jit_type.h:747:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
error: command 'gcc' failed with exit status 1
And I tried lower versions of torch and CUDA, but this problem still exists. I tried torch 1.1.0+cu10.0, torch 1.5.1+cu10.1.
Do not run python setup.py build
, and follow Higher CUDA and PyTorch versions Support.
My env: Pytorch: 1.9.0+cu111 GPU: NVIDIA GeForce RTX 2080 Ti Sys: Ubuntu 18.04.5 LTS
I ran
python setup.py build
error:command 'gcc' failed with exit status 1
And no surprise, I encountered
ModuleNotFoundError: No module named 'correlation_cuda'
when I ranpython demo.py
I tried:
sudo apt-get update
sudo apt-get install python-dev
sudo apt-get install python3-dev
sudo apt-get install libevent-dev
sudo apt-get install build-essential
sudo apt-get install libblas-dev libatlas-base-dev
sudo apt install gcc
But still not work.Help me pls! Thx!