hasktorch / hasktorch

Tensors and neural networks in Haskell
http://hasktorch.org
Other
1.07k stars 106 forks source link

Stack fails on dependency libtorch-ffi #280

Closed KiaraGrouwstra closed 4 years ago

KiaraGrouwstra commented 4 years ago

I followed the installation instructions, then tried running stack run regression. This errors for me as follows, truncated here due to the character limit. It seems like a bunch. How do you guys deal with this dependency?

libtorch-ffi> build (lib)
libtorch-ffi> Preprocessing library for libtorch-ffi-1.4.0.0..
libtorch-ffi> Building library for libtorch-ffi-1.4.0.0..
libtorch-ffi> [ 5 of 56] Compiling Torch.Internal.Const
libtorch-ffi> In file included from /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/TensorMethods.h:10,
libtorch-ffi>                  from /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/Tensor.h:12,
libtorch-ffi>                  from /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/Context.h:4,
libtorch-ffi>                  from /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/ATen.h:5,
libtorch-ffi> 
libtorch-ffi>                  /run/media/kiara/meltan/downloads/repos/hasktorch/libtorch-ffi/from /tmp/ghc433151_0/ghc_3.cpp:2:0: error: 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h: En la instanciación de ‘Return c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = void; Args = {const at::Tensor&, const at::Tensor&, bool, bool}]’:
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:201:114: error:
libtorch-ffi>        se requiere desde ‘Return c10::Dispatcher::callUnboxedOnly(const c10::OperatorHandle&, Args ...) const [with Return = void; Args = {const at::Tensor&, const at::Tensor&, bool, bool}]’
libtorch-ffi>     |
libtorch-ffi> 201 |     return doCallUnboxedOnly<Return, Args...>(dispatchTable, backendFallbackKernels_, std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                                                  ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/TensorMethods.h:66:75: error:
libtorch-ffi>        se requiere desde aquí
libtorch-ffi>    |
libtorch-ffi> 66 |         op, const_cast<Tensor&>(*this), gradient, keep_graph, create_graph);
libtorch-ffi>    |                                                                           ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:211:80: error:
libtorch-ffi>      error: redeclaración de ‘const at::Tensor& args#0’
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |                                                                                ^~~~
libtorch-ffi>     |
libtorch-ffi> 211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:209:115: error:
libtorch-ffi>      nota: ‘const at::Tensor& args#0’ previously declared here
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |                                                                                                                   ^~~~
libtorch-ffi>     |
libtorch-ffi> 209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>     |                                                                                                                   ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:211:80: error:
libtorch-ffi>      error: redeclaración de ‘const at::Tensor& args#1’
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |                                                                                ^~~~
libtorch-ffi>     |
libtorch-ffi> 211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:209:115: error:
libtorch-ffi>      nota: ‘const at::Tensor& args#1’ previously declared here
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |                                                                                                                   ^~~~
libtorch-ffi>     |
libtorch-ffi> 209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>     |                                                                                                                   ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:211:80: error:
libtorch-ffi>      error: redeclaración de ‘bool& args#2’
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |                                                                                ^~~~
libtorch-ffi>     |
libtorch-ffi> 211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:209:115: error:
libtorch-ffi>      nota: ‘bool& args#2’ previously declared here
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |                                                                                                                   ^~~~
libtorch-ffi>     |
libtorch-ffi> 209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>     |                                                                                                                   ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:211:80: error:
libtorch-ffi>      error: redeclaración de ‘bool& args#3’
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |                                                                                ^~~~
libtorch-ffi>     |
libtorch-ffi> 211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:209:115: error:
libtorch-ffi>      nota: ‘bool& args#3’ previously declared here
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |                                                                                                                   ^~~~
libtorch-ffi>     |
libtorch-ffi> 209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>     |                                                                                                                   ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: el miembro ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = void; Args = {const at::Tensor&, const at::Tensor&, bool, bool}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#0 capture>’ es una referencia sin inicializar
libtorch-ffi>       208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>           |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       210 |     const KernelFunction& kernel = dispatch_(dispatchTable, backendFallbackKernels, dispatchKey);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       212 |   });
libtorch-ffi>           |   ~                                   
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: el miembro ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = void; Args = {const at::Tensor&, const at::Tensor&, bool, bool}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#1 capture>’ es una referencia sin inicializar
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: el miembro ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = void; Args = {const at::Tensor&, const at::Tensor&, bool, bool}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#2 capture>’ es una referencia sin inicializar
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: el miembro ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = void; Args = {const at::Tensor&, const at::Tensor&, bool, bool}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#3 capture>’ es una referencia sin inicializar
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: designator order for field ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = void; Args = {const at::Tensor&, const at::Tensor&, bool, bool}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#0 capture>’ does not match declaration order in ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = void; Args = {const at::Tensor&, const at::Tensor&, bool, bool}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>’
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h: En la instanciación de ‘Return c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = void; Args = {const at::Tensor&, const at::Tensor&}]’:
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:201:114: error:
libtorch-ffi>        se requiere desde ‘Return c10::Dispatcher::callUnboxedOnly(const c10::OperatorHandle&, Args ...) const [with Return = void; Args = {const at::Tensor&, const at::Tensor&}]’
libtorch-ffi>     |
libtorch-ffi> 201 |     return doCallUnboxedOnly<Return, Args...>(dispatchTable, backendFallbackKernels_, std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                                                  ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/TensorMethods.h:76:49: error:
libtorch-ffi>        se requiere desde aquí
libtorch-ffi>    |
libtorch-ffi> 76 |         op, const_cast<Tensor&>(*this), new_data);
libtorch-ffi>    |                                                 ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:211:80: error:
libtorch-ffi>      error: redeclaración de ‘const at::Tensor& args#0’
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |                                                                                ^~~~
libtorch-ffi>     |
libtorch-ffi> 211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:209:115: error:
libtorch-ffi>      nota: ‘const at::Tensor& args#0’ previously declared here
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |                                                                                                                   ^~~~
libtorch-ffi>     |
libtorch-ffi> 209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>     |                                                                                                                   ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:211:80: error:
libtorch-ffi>      error: redeclaración de ‘const at::Tensor& args#1’
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |                                                                                ^~~~
libtorch-ffi>     |
libtorch-ffi> 211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:209:115: error:
libtorch-ffi>      nota: ‘const at::Tensor& args#1’ previously declared here
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |                                                                                                                   ^~~~
libtorch-ffi>     |
libtorch-ffi> 209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>     |                                                                                                                   ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: el miembro ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = void; Args = {const at::Tensor&, const at::Tensor&}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#0 capture>’ es una referencia sin inicializar
libtorch-ffi>       208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>           |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       210 |     const KernelFunction& kernel = dispatch_(dispatchTable, backendFallbackKernels, dispatchKey);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       212 |   });
libtorch-ffi>           |   ~                                   
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: el miembro ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = void; Args = {const at::Tensor&, const at::Tensor&}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#1 capture>’ es una referencia sin inicializar
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: designator order for field ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = void; Args = {const at::Tensor&, const at::Tensor&}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#0 capture>’ does not match declaration order in ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = void; Args = {const at::Tensor&, const at::Tensor&}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>’
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h: En la instanciación de ‘Return c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = at::Tensor; Args = {const at::Tensor&}]’:
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:201:114: error:
libtorch-ffi>        se requiere desde ‘Return c10::Dispatcher::callUnboxedOnly(const c10::OperatorHandle&, Args ...) const [with Return = at::Tensor; Args = {const at::Tensor&}]’
libtorch-ffi>     |
libtorch-ffi> 201 |     return doCallUnboxedOnly<Return, Args...>(dispatchTable, backendFallbackKernels_, std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                                                  ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/TensorMethods.h:86:39: error:
libtorch-ffi>        se requiere desde aquí
libtorch-ffi>    |
libtorch-ffi> 86 |         op, const_cast<Tensor&>(*this));
libtorch-ffi>    |                                       ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:211:80: error:
libtorch-ffi>      error: redeclaración de ‘const at::Tensor& args#0’
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |                                                                                ^~~~
libtorch-ffi>     |
libtorch-ffi> 211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:209:115: error:
libtorch-ffi>      nota: ‘const at::Tensor& args#0’ previously declared here
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |                                                                                                                   ^~~~
libtorch-ffi>     |
libtorch-ffi> 209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>     |                                                                                                                   ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: el miembro ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = at::Tensor; Args = {const at::Tensor&}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#0 capture>’ es una referencia sin inicializar
libtorch-ffi>       208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>           |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       210 |     const KernelFunction& kernel = dispatch_(dispatchTable, backendFallbackKernels, dispatchKey);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       212 |   });
libtorch-ffi>           |   ~                                   
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: designator order for field ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = at::Tensor; Args = {const at::Tensor&}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#0 capture>’ does not match declaration order in ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = at::Tensor; Args = {const at::Tensor&}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>’
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h: En la instanciación de ‘Return c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = bool; Args = {const at::Tensor&}]’:
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:201:114: error:
libtorch-ffi>        se requiere desde ‘Return c10::Dispatcher::callUnboxedOnly(const c10::OperatorHandle&, Args ...) const [with Return = bool; Args = {const at::Tensor&}]’
libtorch-ffi>     |
libtorch-ffi> 201 |     return doCallUnboxedOnly<Return, Args...>(dispatchTable, backendFallbackKernels_, std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                                                  ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/TensorMethods.h:96:39: error:
libtorch-ffi>        se requiere desde aquí
libtorch-ffi>    |
libtorch-ffi> 96 |         op, const_cast<Tensor&>(*this));
libtorch-ffi>    |                                       ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:211:80: error:
libtorch-ffi>      error: redeclaración de ‘const at::Tensor& args#0’
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |                                                                                ^~~~
libtorch-ffi>     |
libtorch-ffi> 211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:209:115: error:
libtorch-ffi>      nota: ‘const at::Tensor& args#0’ previously declared here
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |                                                                                                                   ^~~~
libtorch-ffi>     |
libtorch-ffi> 209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>     |                                                                                                                   ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: el miembro ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = bool; Args = {const at::Tensor&}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#0 capture>’ es una referencia sin inicializar
libtorch-ffi>       208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>           |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       210 |     const KernelFunction& kernel = dispatch_(dispatchTable, backendFallbackKernels, dispatchKey);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       212 |   });
libtorch-ffi>           |   ~                                   
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: designator order for field ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = bool; Args = {const at::Tensor&}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#0 capture>’ does not match declaration order in ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = bool; Args = {const at::Tensor&}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>’
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h: En la instanciación de ‘Return c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = long int; Args = {const at::Tensor&}]’:
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:201:114: error:
libtorch-ffi>        se requiere desde ‘Return c10::Dispatcher::callUnboxedOnly(const c10::OperatorHandle&, Args ...) const [with Return = long int; Args = {const at::Tensor&}]’
libtorch-ffi>     |
libtorch-ffi> 201 |     return doCallUnboxedOnly<Return, Args...>(dispatchTable, backendFallbackKernels_, std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                                                  ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/TensorMethods.h:106:39: error:
libtorch-ffi>        se requiere desde aquí
libtorch-ffi>     |
libtorch-ffi> 106 |         op, const_cast<Tensor&>(*this));
libtorch-ffi>     |                                       ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:211:80: error:
libtorch-ffi>      error: redeclaración de ‘const at::Tensor& args#0’
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |                                                                                ^~~~
libtorch-ffi>     |
libtorch-ffi> 211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:209:115: error:
libtorch-ffi>      nota: ‘const at::Tensor& args#0’ previously declared here
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |                                                                                                                   ^~~~
libtorch-ffi>     |
libtorch-ffi> 209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>     |                                                                                                                   ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: el miembro ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = long int; Args = {const at::Tensor&}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#0 capture>’ es una referencia sin inicializar
libtorch-ffi>       208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>           |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       210 |     const KernelFunction& kernel = dispatch_(dispatchTable, backendFallbackKernels, dispatchKey);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       212 |   });
libtorch-ffi>           |   ~                                   
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: designator order for field ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = long int; Args = {const at::Tensor&}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#0 capture>’ does not match declaration order in ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = long int; Args = {const at::Tensor&}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>’
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h: En la instanciación de ‘Return c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = at::Tensor&; Args = {at::Tensor&, bool}]’:
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:201:114: error:
libtorch-ffi>        se requiere desde ‘Return c10::Dispatcher::callUnboxedOnly(const c10::OperatorHandle&, Args ...) const [with Return = at::Tensor&; Args = {at::Tensor&, bool}]’
libtorch-ffi>     |
libtorch-ffi> 201 |     return doCallUnboxedOnly<Return, Args...>(dispatchTable, backendFallbackKernels_, std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                                                  ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/TensorMethods.h:126:55: error:
libtorch-ffi>        se requiere desde aquí
libtorch-ffi>     |
libtorch-ffi> 126 |         op, const_cast<Tensor&>(*this), _requires_grad);
libtorch-ffi>     |                                                       ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:211:80: error:
libtorch-ffi>      error: redeclaración de ‘at::Tensor& args#0’
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |                                                                                ^~~~
libtorch-ffi>     |
libtorch-ffi> 211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:209:115: error:
libtorch-ffi>      nota: ‘at::Tensor& args#0’ previously declared here
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |                                                                                                                   ^~~~
libtorch-ffi>     |
libtorch-ffi> 209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>     |                                                                                                                   ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:211:80: error:
libtorch-ffi>      error: redeclaración de ‘bool& args#1’
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |                                                                                ^~~~
libtorch-ffi>     |
libtorch-ffi> 211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:209:115: error:
libtorch-ffi>      nota: ‘bool& args#1’ previously declared here
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |                                                                                                                   ^~~~
libtorch-ffi>     |
libtorch-ffi> 209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>     |                                                                                                                   ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: el miembro ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = at::Tensor&; Args = {at::Tensor&, bool}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#0 capture>’ es una referencia sin inicializar
libtorch-ffi>       208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>           |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       210 |     const KernelFunction& kernel = dispatch_(dispatchTable, backendFallbackKernels, dispatchKey);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       212 |   });
libtorch-ffi>           |   ~                                   
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: el miembro ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = at::Tensor&; Args = {at::Tensor&, bool}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#1 capture>’ es una referencia sin inicializar
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: designator order for field ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = at::Tensor&; Args = {at::Tensor&, bool}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#0 capture>’ does not match declaration order in ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = at::Tensor&; Args = {at::Tensor&, bool}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>’
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h: En la instanciación de ‘Return c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = at::Tensor&; Args = {at::Tensor&, c10::optional<c10::ArrayRef<at::Dimname> >}]’:
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:201:114: error:
libtorch-ffi>        se requiere desde ‘Return c10::Dispatcher::callUnboxedOnly(const c10::OperatorHandle&, Args ...) const [with Return = at::Tensor&; Args = {at::Tensor&, c10::optional<c10::ArrayRef<at::Dimname> >}]’
libtorch-ffi>     |
libtorch-ffi> 201 |     return doCallUnboxedOnly<Return, Args...>(dispatchTable, backendFallbackKernels_, std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                                                  ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/TensorMethods.h:137:46: error:
libtorch-ffi>        se requiere desde aquí
libtorch-ffi>     |
libtorch-ffi> 137 |         op, const_cast<Tensor&>(*this), names);
libtorch-ffi>     |                                              ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:211:80: error:
libtorch-ffi>      error: redeclaración de ‘at::Tensor& args#0’
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |                                                                                ^~~~
libtorch-ffi>     |
libtorch-ffi> 211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:209:115: error:
libtorch-ffi>      nota: ‘at::Tensor& args#0’ previously declared here
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |                                                                                                                   ^~~~
libtorch-ffi>     |
libtorch-ffi> 209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>     |                                                                                                                   ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:211:80: error:
libtorch-ffi>      error: redeclaración de ‘c10::optional<c10::ArrayRef<at::Dimname> >& args#1’
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |                                                                                ^~~~
libtorch-ffi>     |
libtorch-ffi> 211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>     |                                                                                ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:209:115: error:
libtorch-ffi>      nota: ‘c10::optional<c10::ArrayRef<at::Dimname> >& args#1’ previously declared here
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |                                                                                                                   ^~~~
libtorch-ffi>     |
libtorch-ffi> 209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>     |                                                                                                                   ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: el miembro ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = at::Tensor&; Args = {at::Tensor&, c10::optional<c10::ArrayRef<at::Dimname> >}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#0 capture>’ es una referencia sin inicializar
libtorch-ffi>       208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>           |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       209 |     c10::optional<TensorTypeId> dispatchKey = dispatchTable.dispatchKeyExtractor().getDispatchKeyUnboxed<Args...>(args...);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       210 |     const KernelFunction& kernel = dispatch_(dispatchTable, backendFallbackKernels, dispatchKey);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       211 |     return kernel.template callUnboxedOnly<Return, Args...>(std::forward<Args>(args)...);
libtorch-ffi>           |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
libtorch-ffi>       212 |   });
libtorch-ffi>           |   ~                                   
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: el miembro ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = at::Tensor&; Args = {at::Tensor&, c10::optional<c10::ArrayRef<at::Dimname> >}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#1 capture>’ es una referencia sin inicializar
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> 
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h:208:38: error:
libtorch-ffi>      error: designator order for field ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = at::Tensor&; Args = {at::Tensor&, c10::optional<c10::ArrayRef<at::Dimname> >}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>::<args#0 capture>’ does not match declaration order in ‘c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = at::Tensor&; Args = {at::Tensor&, c10::optional<c10::ArrayRef<at::Dimname> >}]::<lambda(const ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction>&)>’
libtorch-ffi>     |
libtorch-ffi> 208 |   return backendFallbackKernels.read([&] (const ska::flat_hash_map<TensorTypeId, KernelFunction>& backendFallbackKernels) -> Return {
libtorch-ffi>     |                                      ^
libtorch-ffi> /run/media/kiara/meltan/downloads/repos/hasktorch/deps/libtorch/include/ATen/core/dispatch/Dispatcher.h: En la instanciación de ‘Return c10::Dispatcher::doCallUnboxedOnly(const c10::DispatchTable&, const c10::LeftRight<ska::flat_hash_map<c10::TensorTypeId, c10::KernelFunction> >&, Args ...) const [with Return = at::Tensor; Args = {const at::Tensor&, c10::optional<c10::ArrayRef<at::Dimname> >}]’:
libtorch-ffi> 

[...]

libtorch-ffi> /libtorch-ffi> `gcc' failed in phase `C Compiler'. (Exit code: 1)

--  While building package libtorch-ffi-1.4.0.0 using:
      /run/media/kiara/meltan/~/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.4.0.1 build lib:libtorch-ffi --ghc-options ""
    Process exited with code: ExitFailure 1
tscholak commented 4 years ago

hi @tycho01, I'm sorry that you have these issues. I use the nix build system for my development work on hasktorch. However, I may still be able to help you. have you roughly followed instructions that are comparable to what's in the stack GitHub action script? https://github.com/hasktorch/hasktorch/blob/master/.github/workflows/stack-linux.yml

tscholak commented 4 years ago

Btw, your master's thesis repo looks very interesting. We are trying to make hasktorch great for researching neural program synthesis. I would love if you chose hasktorch for your project.

junjihashimoto commented 4 years ago

https://github.com/pytorch/pytorch/issues/32277 https://github.com/dhpollack/huggingface_libtorch/issues/4 The version of gcc may be the cause.

KiaraGrouwstra commented 4 years ago

Thanks, I'm gonna check those out! I'll try by nix as well.

@tscholak thank you for your kind words -- I'd be glad to. :smile: I'd somehow held the impression tensorflow/haskell had been more actively maintained than HaskTorch, but it seems I was quite wrong there. Been having quite some trouble installing TF as well, so definitely gonna try HaskTorch some more now.

It's felt like I'd made some outlandish choices picking a thesis topic that got zero exposure throughout our AI program, probably as the only one even using a language different from Python. But this was just something I really wanted to do, and to me doing the ML bits for neural program synthesis in Haskell had just made complete sense as well.

I'm actually surprised I hadn't found Haskell implementations for neural program synthesis before, so if you're aware of other HaskTorch users in that space I'd be pretty curious! :upside_down_face:

KiaraGrouwstra commented 4 years ago

Downgrading gcc did it for me. Thanks again, and looking forward to trying HaskTorch!

tscholak commented 4 years ago

Let us know how it goes. Maybe consider joining our Slack for more immediate feedback and exchange of thoughts.