Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Error on example code execution #23

Open
madorin0130 opened this issue Sep 2, 2021 · 0 comments
Open

Error on example code execution #23

madorin0130 opened this issue Sep 2, 2021 · 0 comments

Comments

@madorin0130
Copy link

madorin0130 commented Sep 2, 2021

I tried to execute this sample code and got the following error (listed the last since the error is too long).
CUDA_VISIBLE_DEVICES=0 python train.py --ckpt_source ./checkpoints/source_ffhq.pt --data_path ./processed_data/sketches --exp ffhq_to_sketches
When you use the ninja or meson libary how did you use it? and If you are Ok, I want to know whether same things was happen while code implementation.
`Traceback (most recent call last):
File "/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1672, in _run_ninja_build
env=env)
File "/opt/conda/envs/myenv/lib/python3.6/subprocess.py", line 438, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "train.py", line 27, in
from model import Generator, Extra
File "/trainman-mount/trainman-k8s-storage-e6640780-7a85-4957-aefc-7ea75c73402a/exp-caricature/few-shot-gan-adaptation/model.py", line 12, in
from op import FusedLeakyReLU, fused_leaky_relu, upfirdn2d
File "/trainman-mount/trainman-k8s-storage-e6640780-7a85-4957-aefc-7ea75c73402a/exp-caricature/few-shot-gan-adaptation/op/init.py", line 1, in
from .fused_act import FusedLeakyReLU, fused_leaky_relu
File "/trainman-mount/trainman-k8s-storage-e6640780-7a85-4957-aefc-7ea75c73402a/exp-caricature/few-shot-gan-adaptation/op/fused_act.py", line 14, in
os.path.join(module_path, 'fused_bias_act_kernel.cu'),
File "/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1092, in load
keep_intermediates=keep_intermediates)
File "/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1303, in jit_compile
is_standalone=is_standalone)
File "/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1408, in write_ninja_file_and_build_library
error_prefix=f"Error building extension '{name}'")
File "/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1682, in run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error building extension 'fused': ninja: warning: bad deps log signature or version; starting over
[1/3] c++ -MMD -MF fused_bias_act.o.d -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include -isystem /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/TH -isystem /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/THC -isystem /opt/conda/envs/myenv/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -std=c++14 -c /trainman-mount/trainman-k8s-storage-e6640780-7a85-4957-aefc-7ea75c73402a/exp-caricature/few-shot-gan-adaptation/op/fused_bias_act.cpp -o fused_bias_act.o
In file included from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /trainman-mount/trainman-k8s-storage-e6640780-7a85-4957-aefc-7ea75c73402a/exp-caricature/few-shot-gan-adaptation/op/fused_bias_act.cpp:1:
/trainman-mount/trainman-k8s-storage-e6640780-7a85-4957-aefc-7ea75c73402a/exp-caricature/few-shot-gan-adaptation/op/fused_bias_act.cpp: In function 'at::Tensor fused_bias_act(const at::Tensor&, const at::Tensor&, const at::Tensor&, int, int, float, float)':
/trainman-mount/trainman-k8s-storage-e6640780-7a85-4957-aefc-7ea75c73402a/exp-caricature/few-shot-gan-adaptation/op/fused_bias_act.cpp:7:42: warning: 'at::DeprecatedTypeProperties& at::Tensor::type() const' is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
^
/trainman-mount/trainman-k8s-storage-e6640780-7a85-4957-aefc-7ea75c73402a/exp-caricature/few-shot-gan-adaptation/op/fused_bias_act.cpp:13:5: note: in expansion of macro 'CHECK_CUDA'
CHECK_CUDA(input);
^
In file included from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /trainman-mount/trainman-k8s-storage-e6640780-7a85-4957-aefc-7ea75c73402a/exp-caricature/few-shot-gan-adaptation/op/fused_bias_act.cpp:1:
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
In file included from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/c10/core/DeviceType.h:8:0,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/c10/core/Device.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/c10/core/Allocator.h:6,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:7,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /trainman-mount/trainman-k8s-storage-e6640780-7a85-4957-aefc-7ea75c73402a/exp-caricature/few-shot-gan-adaptation/op/fused_bias_act.cpp:1:
/trainman-mount/trainman-k8s-storage-e6640780-7a85-4957-aefc-7ea75c73402a/exp-caricature/few-shot-gan-adaptation/op/fused_bias_act.cpp:7:42: warning: 'at::DeprecatedTypeProperties& at::Tensor::type() const' is deprecated: Tensor.type() is deprecated. Instead use Tensor.options(), which in many cases (e.g. in a constructor) is a drop-in replacement. If you were using data from type(), that is now available from Tensor itself, so instead of tensor.type().scalar_type(), use tensor.scalar_type() instead and instead of tensor.type().backend() use tensor.device(). [-Wdeprecated-declarations]
#define CHECK_CUDA(x) TORCH_CHECK(x.type().is_cuda(), #x " must be a CUDA tensor")
^
/trainman-mount/trainman-k8s-storage-e6640780-7a85-4957-aefc-7ea75c73402a/exp-caricature/few-shot-gan-adaptation/op/fused_bias_act.cpp:14:5: note: in expansion of macro 'CHECK_CUDA'
CHECK_CUDA(bias);
^
In file included from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/ATen/Tensor.h:3:0,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/ATen/Context.h:4,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/ATen/ATen.h:9,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/types.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader_options.h:4,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/base.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader/stateful.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data/dataloader.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/data.h:3,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:8,
from /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/extension.h:4,
from /trainman-mount/trainman-k8s-storage-e6640780-7a85-4957-aefc-7ea75c73402a/exp-caricature/few-shot-gan-adaptation/op/fused_bias_act.cpp:1:
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/ATen/core/TensorBody.h:338:30: note: declared here
DeprecatedTypeProperties & type() const {
^~~~
[2/3] /usr/bin/nvcc -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include -isystem /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/TH -isystem /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/THC -isystem /opt/conda/envs/myenv/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS
-D__CUDA_NO_HALF2_OPERATORS
--expt-relaxed-constexpr -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=sm_70 --compiler-options '-fPIC' -std=c++14 -c /trainman-mount/trainman-k8s-storage-e6640780-7a85-4957-aefc-7ea75c73402a/exp-caricature/few-shot-gan-adaptation/op/fused_bias_act_kernel.cu -o fused_bias_act_kernel.cuda.o
FAILED: fused_bias_act_kernel.cuda.o
/usr/bin/nvcc -DTORCH_EXTENSION_NAME=fused -DTORCH_API_INCLUDE_EXTENSION_H -DPYBIND11_COMPILER_TYPE="gcc" -DPYBIND11_STDLIB="libstdcpp" -DPYBIND11_BUILD_ABI="cxxabi1011" -isystem /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include -isystem /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -isystem /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/TH -isystem /opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/THC -isystem /opt/conda/envs/myenv/include/python3.6m -D_GLIBCXX_USE_CXX11_ABI=0 -D__CUDA_NO_HALF_OPERATORS -D__CUDA_NO_HALF_CONVERSIONS
-D__CUDA_NO_BFLOAT16_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --expt-relaxed-constexpr -gencode=arch=compute_70,code=compute_70 -gencode=arch=compute_70,code=sm_70 --compiler-options '-fPIC' -std=c++14 -c /trainman-mount/trainman-k8s-storage-e6640780-7a85-4957-aefc-7ea75c73402a/exp-caricature/few-shot-gan-adaptation/op/fused_bias_act_kernel.cu -o fused_bias_act_kernel.cuda.o
/usr/include/c++/6/tuple: In instantiation of 'static constexpr bool std::_TC<, _Elements>::_MoveConstructibleTuple() [with _UElements = {std::tuple<c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >}; bool = true; _Elements = {c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor}]':
/usr/include/c++/6/tuple:626:248: required by substitution of 'template<class ... _UElements, typename std::enable_if<(((std::_TC<(sizeof... (_UElements) == 1), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_NotSameTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_MoveConstructibleTuple<_UElements ...>()) && std::_TC<(1ul == sizeof... (_UElements)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && (3ul >= 1)), bool>::type > constexpr std::tuple< >::tuple(_UElements&& ...) [with _UElements = {std::tuple<c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >}; typename std::enable_if<(((std::_TC<(sizeof... (_UElements) == 1), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_NotSameTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_MoveConstructibleTuple<_UElements ...>()) && std::_TC<(1ul == sizeof... (_UElements)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && (3ul >= 1)), bool>::type = ]'
/usr/include/c++/6/tuple:1396:58: required from 'constexpr std::tuple<typename std::__decay_and_strip<_Elements>::__type ...> std::make_tuple(_Elements&& ...) [with _Elements = {c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor}]'
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/ATen/ExpandUtils.h:166:169: required from here
/usr/include/c++/6/tuple:483:67: error: mismatched argument pack lengths while expanding 'std::is_constructible<_Elements, _UElements&&>'
return _and<is_constructible<_Elements, _UElements&&>...>::value;
^~~~~
/usr/include/c++/6/tuple: In instantiation of 'static constexpr bool std::_TC<, _Elements>::_ImplicitlyMoveConvertibleTuple() [with _UElements = {std::tuple<c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >}; bool = true; _Elements = {c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor}]':
/usr/include/c++/6/tuple:626:362: required by substitution of 'template<class ... _UElements, typename std::enable_if<(((std::_TC<(sizeof... (_UElements) == 1), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_NotSameTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_MoveConstructibleTuple<_UElements ...>()) && std::_TC<(1ul == sizeof... (_UElements)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && (3ul >= 1)), bool>::type > constexpr std::tuple< >::tuple(_UElements&& ...) [with _UElements = {std::tuple<c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >}; typename std::enable_if<(((std::_TC<(sizeof... (_UElements) == 1), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_NotSameTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_MoveConstructibleTuple<_UElements ...>()) && std::_TC<(1ul == sizeof... (_UElements)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && (3ul >= 1)), bool>::type = ]'
/usr/include/c++/6/tuple:1396:58: required from 'constexpr std::tuple<typename std::__decay_and_strip<_Elements>::__type ...> std::make_tuple(_Elements&& ...) [with _Elements = {c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor}]'
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/ATen/ExpandUtils.h:166:169: required from here
/usr/include/c++/6/tuple:489:65: error: mismatched argument pack lengths while expanding 'std::is_convertible<_UElements&&, _Elements>'
return _and<is_convertible<_UElements&&, _Elements>...>::value;
^~~~~
/usr/include/c++/6/tuple: In instantiation of 'static constexpr bool std::_TC<, _Elements>::_NonNestedTuple() [with _SrcTuple = const std::tuple<c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >&; bool = true; _Elements = {c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor}]':
/usr/include/c++/6/tuple:662:419: required by substitution of 'template<class ... _UElements, class _Dummy, typename std::enable_if<((std::_TC<(1ul == sizeof... (_UElements)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_ConstructibleTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_ImplicitlyConvertibleTuple<_UElements ...>()) && std::_TC<(std::is_same<_Dummy, void>::value && (1ul == 1)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_NonNestedTuple<const tuple<_Elements ...>&>()), bool>::type > constexpr std::tuple< >::tuple(const std::tuple<_Args1 ...>&) [with _UElements = {c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor}; _Dummy = void; typename std::enable_if<((std::_TC<(1ul == sizeof... (_UElements)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_ConstructibleTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_ImplicitlyConvertibleTuple<_UElements ...>()) && std::_TC<(std::is_same<_Dummy, void>::value && (1ul == 1)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_NonNestedTuple<const tuple<_Elements ...>&>()), bool>::type = ]'
/usr/include/c++/6/tuple:1396:58: required from 'constexpr std::tuple<typename std::__decay_and_strip<_Elements>::__type ...> std::make_tuple(_Elements&& ...) [with _Elements = {c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor}]'
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/ATen/ExpandUtils.h:166:169: required from here
/usr/include/c++/6/tuple:495:244: error: wrong number of template arguments (4, should be 2)
return _and<_not<is_same<tuple<_Elements...>,
^
/usr/include/c++/6/type_traits:1558:8: note: provided for 'template<class _From, class _To> struct std::is_convertible'
struct is_convertible
^~~~~~~~~~~~~~
/usr/include/c++/6/tuple: In instantiation of 'static constexpr bool std::_TC<, _Elements>::_NonNestedTuple() [with _SrcTuple = std::tuple<c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >&&; bool = true; _Elements = {c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor}]':
/usr/include/c++/6/tuple:686:422: required by substitution of 'template<class ... _UElements, class _Dummy, typename std::enable_if<((std::_TC<(1ul == sizeof... (_UElements)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_MoveConstructibleTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && std::_TC<(std::is_same<_Dummy, void>::value && (1ul == 1)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_NonNestedTuple<tuple<_Elements ...>&&>()), bool>::type > constexpr std::tuple< >::tuple(std::tuple<_Args1 ...>&&) [with _UElements = {c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor}; _Dummy = void; typename std::enable_if<((std::_TC<(1ul == sizeof... (_UElements)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_MoveConstructibleTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && std::_TC<(std::is_same<_Dummy, void>::value && (1ul == 1)), c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor >::_NonNestedTuple<tuple<_Elements ...>&&>()), bool>::type = ]'
/usr/include/c++/6/tuple:1396:58: required from 'constexpr std::tuple<typename std::__decay_and_strip<_Elements>::__type ...> std::make_tuple(_Elements&& ...) [with _Elements = {c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor, c10::MaybeOwnedat::Tensor}]'
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/ATen/ExpandUtils.h:166:169: required from here
/usr/include/c++/6/tuple:495:244: error: wrong number of template arguments (4, should be 2)
return _and<_not<is_same<tuple<_Elements...>,
^
/usr/include/c++/6/type_traits:1558:8: note: provided for 'template<class _From, class _To> struct std::is_convertible'
struct is_convertible
^~~~~~~~~~~~~~
/usr/include/c++/6/tuple: In instantiation of 'static constexpr bool std::_TC<, _Elements>::_MoveConstructibleTuple() [with _UElements = {const c10::nullopt_t&}; bool = true; _Elements = {std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int}]':
/usr/include/c++/6/tuple:626:248: required by substitution of 'template<class ... _UElements, typename std::enable_if<(((std::_TC<(sizeof... (_UElements) == 1), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_NotSameTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_MoveConstructibleTuple<_UElements ...>()) && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && (3ul >= 1)), bool>::type > constexpr std::tuple< >::tuple(_UElements&& ...) [with _UElements = {const c10::nullopt_t&}; typename std::enable_if<(((std::_TC<(sizeof... (_UElements) == 1), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_NotSameTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_MoveConstructibleTuple<_UElements ...>()) && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && (3ul >= 1)), bool>::type = ]'
/usr/include/c++/6/type_traits:970:16: required by substitution of 'template<class _Tp, class _Arg, class> static std::true_type std::__do_is_direct_constructible_impl::__test(int) [with _Tp = std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>; _Arg = const c10::nullopt_t&; = ]'
/usr/include/c++/6/type_traits:981:40: required from 'struct std::__is_direct_constructible_impl<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, const c10::nullopt_t&>'
/usr/include/c++/6/type_traits:143:8: required from 'struct std::_and<std::is_destructible<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int> >, std::__is_direct_constructible_impl<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, const c10::nullopt_t&> >'
/usr/include/c++/6/type_traits:985:8: required from 'struct std::__is_direct_constructible_new_safe<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, const c10::nullopt_t&>'
/usr/include/c++/6/type_traits:1067:8: required from 'struct std::__is_direct_constructible_new<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, const c10::nullopt_t&>'
/usr/include/c++/6/type_traits:1075:8: required from 'struct std::__is_direct_constructible<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, const c10::nullopt_t&>'
/usr/include/c++/6/type_traits:1115:8: required from 'struct std::__is_constructible_impl<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, const c10::nullopt_t&>'
/usr/include/c++/6/type_traits:1126:8: required from 'struct std::is_constructible<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, const c10::nullopt_t&>'
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/c10/util/Optional.h:533:77: required by substitution of 'template<class U, typename std::enable_if<(((std::is_constructible<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, U&&>::value && (! std::is_same<typename std::decay<_Tp>::type, c10::in_place_t>::value)) && (! std::is_same<typename std::decay<_Tp>::type, c10::optional<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int> > >::value)) && std::is_convertible<U&&, std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int> >::value), bool>::type > constexpr c10::optional::optional(U&&) [with U = const c10::nullopt_t&; typename std::enable_if<(((std::is_constructible<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, U&&>::value && (! std::is_same<typename std::decay<_Tp>::type, c10::in_place_t>::value)) && (! std::is_same<typename std::decay<_Tp>::type, c10::optional<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int> > >::value)) && std::is_convertible<U&&, std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int> >::value), bool>::type = ]'
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/jit/frontend/source_range.h:148:13: required from here
/usr/include/c++/6/tuple:483:67: error: mismatched argument pack lengths while expanding 'std::is_constructible<_Elements, _UElements&&>'
return _and<is_constructible<_Elements, _UElements&&>...>::value;
^~~~~
/usr/include/c++/6/tuple: In instantiation of 'static constexpr bool std::_TC<, _Elements>::_ImplicitlyMoveConvertibleTuple() [with _UElements = {const c10::nullopt_t&}; bool = true; _Elements = {std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int}]':
/usr/include/c++/6/tuple:626:362: required by substitution of 'template<class ... _UElements, typename std::enable_if<(((std::_TC<(sizeof... (_UElements) == 1), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_NotSameTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_MoveConstructibleTuple<_UElements ...>()) && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && (3ul >= 1)), bool>::type > constexpr std::tuple< >::tuple(_UElements&& ...) [with _UElements = {const c10::nullopt_t&}; typename std::enable_if<(((std::_TC<(sizeof... (_UElements) == 1), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_NotSameTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_MoveConstructibleTuple<_UElements ...>()) && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && (3ul >= 1)), bool>::type = ]'
/usr/include/c++/6/type_traits:970:16: required by substitution of 'template<class _Tp, class _Arg, class> static std::true_type std::__do_is_direct_constructible_impl::__test(int) [with _Tp = std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>; _Arg = const c10::nullopt_t&; = ]'
/usr/include/c++/6/type_traits:981:40: required from 'struct std::__is_direct_constructible_impl<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, const c10::nullopt_t&>'
/usr/include/c++/6/type_traits:143:8: required from 'struct std::_and<std::is_destructible<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int> >, std::__is_direct_constructible_impl<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, const c10::nullopt_t&> >'
/usr/include/c++/6/type_traits:985:8: required from 'struct std::__is_direct_constructible_new_safe<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, const c10::nullopt_t&>'
/usr/include/c++/6/type_traits:1067:8: required from 'struct std::__is_direct_constructible_new<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, const c10::nullopt_t&>'
/usr/include/c++/6/type_traits:1075:8: required from 'struct std::__is_direct_constructible<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, const c10::nullopt_t&>'
/usr/include/c++/6/type_traits:1115:8: required from 'struct std::__is_constructible_impl<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, const c10::nullopt_t&>'
/usr/include/c++/6/type_traits:1126:8: required from 'struct std::is_constructible<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, const c10::nullopt_t&>'
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/c10/util/Optional.h:533:77: required by substitution of 'template<class U, typename std::enable_if<(((std::is_constructible<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, U&&>::value && (! std::is_same<typename std::decay<_Tp>::type, c10::in_place_t>::value)) && (! std::is_same<typename std::decay<_Tp>::type, c10::optional<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int> > >::value)) && std::is_convertible<U&&, std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int> >::value), bool>::type > constexpr c10::optional::optional(U&&) [with U = const c10::nullopt_t&; typename std::enable_if<(((std::is_constructible<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>, U&&>::value && (! std::is_same<typename std::decay<_Tp>::type, c10::in_place_t>::value)) && (! std::is_same<typename std::decay<_Tp>::type, c10::optional<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int> > >::value)) && std::is_convertible<U&&, std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int> >::value), bool>::type = ]'
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/jit/frontend/source_range.h:148:13: required from here
/usr/include/c++/6/tuple:489:65: error: mismatched argument pack lengths while expanding 'std::is_convertible<_UElements&&, _Elements>'
return _and<is_convertible<_UElements&&, _Elements>...>::value;
^~~~~
/usr/include/c++/6/tuple: In instantiation of 'static constexpr bool std::_TC<, _Elements>::_MoveConstructibleTuple() [with _UElements = {const std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>&}; bool = true; _Elements = {std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int}]':
/usr/include/c++/6/tuple:626:248: required by substitution of 'template<class ... _UElements, typename std::enable_if<(((std::_TC<(sizeof... (_UElements) == 1), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_NotSameTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_MoveConstructibleTuple<_UElements ...>()) && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && (3ul >= 1)), bool>::type > constexpr std::tuple< >::tuple(_UElements&& ...) [with _UElements = {const std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>&}; typename std::enable_if<(((std::_TC<(sizeof... (_UElements) == 1), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_NotSameTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_MoveConstructibleTuple<_UElements ...>()) && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && (3ul >= 1)), bool>::type = ]'
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/c10/util/Optional.h:190:73: required from 'constexpr c10::optional_base::optional_base() [with T = std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>]'
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/c10/util/Optional.h:508:67: required from 'constexpr c10::optional::optional(c10::nullopt_t) [with T = std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>]'
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/jit/frontend/source_range.h:148:13: required from here
/usr/include/c++/6/tuple:483:67: error: mismatched argument pack lengths while expanding 'std::is_constructible<_Elements, _UElements&&>'
return _and<is_constructible<_Elements, _UElements&&>...>::value;
^~~~~
/usr/include/c++/6/tuple: In instantiation of 'static constexpr bool std::_TC<, _Elements>::_ImplicitlyMoveConvertibleTuple() [with _UElements = {const std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>&}; bool = true; _Elements = {std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int}]':
/usr/include/c++/6/tuple:626:362: required by substitution of 'template<class ... _UElements, typename std::enable_if<(((std::_TC<(sizeof... (_UElements) == 1), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_NotSameTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_MoveConstructibleTuple<_UElements ...>()) && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && (3ul >= 1)), bool>::type > constexpr std::tuple< >::tuple(_UElements&& ...) [with _UElements = {const std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>&}; typename std::enable_if<(((std::_TC<(sizeof... (_UElements) == 1), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_NotSameTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_MoveConstructibleTuple<_UElements ...>()) && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && (3ul >= 1)), bool>::type = ]'
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/c10/util/Optional.h:190:73: required from 'constexpr c10::optional_base::optional_base() [with T = std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>]'
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/c10/util/Optional.h:508:67: required from 'constexpr c10::optional::optional(c10::nullopt_t) [with T = std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>]'
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/jit/frontend/source_range.h:148:13: required from here
/usr/include/c++/6/tuple:489:65: error: mismatched argument pack lengths while expanding 'std::is_convertible<_UElements&&, _Elements>'
return _and<is_convertible<_UElements&&, _Elements>...>::value;
^~~~~
/usr/include/c++/6/tuple: In instantiation of 'static constexpr bool std::_TC<, _Elements>::_NonNestedTuple() [with _SrcTuple = const std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>&; bool = true; _Elements = {std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int}]':
/usr/include/c++/6/tuple:662:419: required by substitution of 'template<class ... _UElements, class _Dummy, typename std::enable_if<((std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_ConstructibleTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_ImplicitlyConvertibleTuple<_UElements ...>()) && std::_TC<(std::is_same<_Dummy, void>::value && (1ul == 1)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_NonNestedTuple<const tuple<_Elements ...>&>()), bool>::type > constexpr std::tuple< >::tuple(const std::tuple<_Args1 ...>&) [with _UElements = {std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int}; _Dummy = void; typename std::enable_if<((std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_ConstructibleTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_ImplicitlyConvertibleTuple<_UElements ...>()) && std::_TC<(std::is_same<_Dummy, void>::value && (1ul == 1)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_NonNestedTuple<const tuple<_Elements ...>&>()), bool>::type = ]'
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/c10/util/Optional.h:190:73: required from 'constexpr c10::optional_base::optional_base() [with T = std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>]'
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/c10/util/Optional.h:508:67: required from 'constexpr c10::optional::optional(c10::nullopt_t) [with T = std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>]'
/opt/conda/envs/myenv/lib/python3.6/site-packages/torch/include/torch/csrc/jit/frontend/source_range.h:148:13: required from here
/usr/include/c++/6/tuple:495:244: error: wrong number of template arguments (4, should be 2)
return _and<_not<is_same<tuple<_Elements...>,
^
/usr/include/c++/6/type_traits:1558:8: note: provided for 'template<class _From, class _To> struct std::is_convertible'
struct is_convertible
^~~~~~~~~~~~~~
/usr/include/c++/6/tuple: In instantiation of 'static constexpr bool std::_TC<, _Elements>::_MoveConstructibleTuple() [with _UElements = {c10::optional<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int> >}; bool = true; _Elements = {std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int}]':
/usr/include/c++/6/tuple:626:248: required by substitution of 'template<class ... _UElements, typename std::enable_if<(((std::_TC<(sizeof... (_UElements) == 1), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_NotSameTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_MoveConstructibleTuple<_UElements ...>()) && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && (3ul >= 1)), bool>::type > constexpr std::tuple< >::tuple(_UElements&& ...) [with _UElements = {c10::optional<std::tuple<std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int> >}; typename std::enable_if<(((std::_TC<(sizeof... (_UElements) == 1), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_NotSameTuple<_UElements ...>() && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_MoveConstructibleTuple<_UElements ...>()) && std::_TC<(1ul == sizeof... (_UElements)), std::basic_string<char, std::char_traits, std::allocator >, long unsigned int, long unsigned int>::_ImplicitlyMoveConvertibleTuple<_UElements ...>()) && (3ul >= 1)), bool>::type = ]'
/usr/include/c++/6/type_traits:970:16: required by substitution of 'template<class _Tp, class _Arg, class> static std::true_type std::__do_is_direct_constructible_impl::__test(int) [with _Tp = std::tuple<std::basic_string<char, std::char_traits

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

No branches or pull requests

1 participant