Build:
- 0
2026-07-26 12:40.43: New job: build torch.0.10 (0c3ade24c4e1)
2026-07-26 12:40.43: Waiting for resource in pool day11-builds
2026-07-26 13:33.46: Got resource from pool day11-builds
2026-07-26 13:33.46: [profile full] build torch.0.10
2026-07-26 13:33.46: build torch.0.10 (0c3ade24c4e1)
=== DEPENDENCIES (47 transitive) ===
base.v0.16.5 26a2f2e8d04c
base-threads.base afe16a8e71c3
base-unix.base 73c0a5fdd34a
camlzip.1.14 ed17d43a9dc4
cmdliner.2.1.1 b8b693aa0ae6
conf-libffi.2.0.0 59537f7edda9
conf-pkg-config.5 2c611009363a
conf-zlib.1 9b96a8154eb2
csexp.1.5.2 0ca1baf201f7
ctypes.0.24.0 01281ab1d42f
ctypes-foreign.0.24.0 14e30fd67b45
dune.3.24.1 2ab3cd6b5374
dune-configurator.3.24.1 989431d87548
integers.0.8.0 2be2a987bb2e
jane-street-headers.v0.16.0 858c2bb24dfc
jst-config.v0.16.0 350fe4a7123f
libtorch.1.6.0 c12104fb9f47
npy.0.0.9 d7ba58fe9d04
num.1.6 7b85f4c9b895
ocaml.5.3.0 b03c83883650
ocaml-base-compiler.5.3.0 eeaecf50e77a
ocaml-compiler.5.3.0 4d6cfa10fb02
ocaml-compiler-libs.v0.17.0 5956d384e8c7
ocaml-config.3 021689f4187e
ocamlfind.1.9.8 14b02964ea68
parsexp.v0.16.0 b0a541a6b0f8
ppx_assert.v0.16.0 266e4c8b14da
ppx_base.v0.16.0 1cb597fda5be
ppx_cold.v0.16.0 c9e5fd46dffc
ppx_compare.v0.16.0 92d74cb06a16
ppx_custom_printf.v0.16.0 53bfd86c2dc3
ppx_derivers.1.2.1 8cf1aacb7e87
ppx_enumerate.v0.16.0 057978a4c39f
ppx_expect.v0.16.2 8e703c36003b
ppx_globalize.v0.16.0 ddcbf082fb8d
ppx_hash.v0.16.0 7a0626e686ae
ppx_here.v0.16.0 ee8fdb24dad8
ppx_inline_test.v0.16.1 37cb8dc01946
ppx_optcomp.v0.16.0 cdc174bc3aa3
ppx_sexp_conv.v0.16.0 11032ad2d5d6
ppxlib.0.35.0 bad0edbd8aea
re.1.14.0 9c9f66c73b8b
sexplib.v0.16.0 a21f4f16a78a
sexplib0.v0.16.0 132cca44d63c
stdio.v0.16.0 fdda49d16a76
stdlib-shims.0.3.0 31897655d25b
time_now.v0.16.0 f41ea8b381ba
=== STDOUT ===
Processing: [default: loading data]
[torch.0.10: dl]
[torch.0.10: extract]
-> retrieved torch.0.10 (https://opam.ocaml.org/cache)
[torch: dune build]
+ /home/opam/.opam/default/bin/dune "build" "-p" "torch" "-j" "39" (CWD=/home/opam/.opam/default/.opam-switch/build/torch.0.10)
- (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -g -bin-annot -bin-annot-occurrences -I src/config/.discover.eobjs/byte -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/csexp -I /home/opam/.opam/default/lib/dune-configurator -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -no-alias-deps -o src/config/.discover.eobjs/byte/discover.cmo -c -impl src/config/discover.ml)
- File "src/config/discover.ml", line 11, characters 13-33:
- 11 | let ( /^ ) = Caml.Filename.concat
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 12, characters 18-38:
- 12 | let file_exists = Caml.Sys.file_exists
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 46, characters 38-59:
- 46 | if file_exists libdir && Caml.Sys.is_directory libdir
- ^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 38, characters 4-20:
- 38 | Caml.Sys.readdir conda_prefix
- ^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 55, characters 8-27:
- 55 | match Caml.Sys.getenv_opt "LIBTORCH" with
- ^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 59, characters 19-38:
- 59 | Option.bind (Caml.Sys.getenv_opt "CONDA_PREFIX") ~f:(fun conda_prefix ->
- ^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 65, characters 13-32:
- 65 | (match Caml.Sys.getenv_opt "OPAM_SWITCH_PREFIX" with
- ^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 75, characters 28-49:
- 75 | if file_exists cudadir && Caml.Sys.is_directory cudadir
- ^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 104, characters 11-30:
- 104 | (Caml.Sys.getenv_opt "CONDA_PREFIX")
- ^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 110, characters 16-35:
- 110 | match Caml.Sys.getenv_opt "LIBTORCH_CXX11_ABI" with
- ^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 120, characters 11-21:
- 120 | if Caml.( = ) cuda_flags empty_flags
- ^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
- (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -g -I src/config/.discover.eobjs/byte -I src/config/.discover.eobjs/native -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/csexp -I /home/opam/.opam/default/lib/dune-configurator -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -cmi-file src/config/.discover.eobjs/byte/discover.cmi -no-alias-deps -o src/config/.discover.eobjs/native/discover.cmx -c -impl src/config/discover.ml)
- File "src/config/discover.ml", line 11, characters 13-33:
- 11 | let ( /^ ) = Caml.Filename.concat
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 12, characters 18-38:
- 12 | let file_exists = Caml.Sys.file_exists
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 46, characters 38-59:
- 46 | if file_exists libdir && Caml.Sys.is_directory libdir
- ^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 38, characters 4-20:
- 38 | Caml.Sys.readdir conda_prefix
- ^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 55, characters 8-27:
- 55 | match Caml.Sys.getenv_opt "LIBTORCH" with
- ^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 59, characters 19-38:
- 59 | Option.bind (Caml.Sys.getenv_opt "CONDA_PREFIX") ~f:(fun conda_prefix ->
- ^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 65, characters 13-32:
- 65 | (match Caml.Sys.getenv_opt "OPAM_SWITCH_PREFIX" with
- ^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 75, characters 28-49:
- 75 | if file_exists cudadir && Caml.Sys.is_directory cudadir
- ^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 104, characters 11-30:
- 104 | (Caml.Sys.getenv_opt "CONDA_PREFIX")
- ^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 110, characters 16-35:
- 110 | match Caml.Sys.getenv_opt "LIBTORCH_CXX11_ABI" with
- ^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/config/discover.ml", line 120, characters 11-21:
- 120 | if Caml.( = ) cuda_flags empty_flags
- ^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
- File "src/wrapper/dune", line 5, characters 13-22:
- 5 | (cxx_names torch_api)
- ^^^^^^^^^
- (cd _build/default/src/wrapper && /usr/bin/gcc -std=c++14 -fPIC -D_GLIBCXX_USE_CXX11_ABI=1 -isystem /home/opam/.opam/default/lib/libtorch/include -isystem /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include -g -I /home/opam/.opam/default/lib/ocaml -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/stdlib-shims -o torch_api.o -c torch_api.cpp)
- In file included from /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:5,
- from /home/opam/.opam/default/lib/libtorch/include/c10/core/Device.h:5,
- from /home/opam/.opam/default/lib/libtorch/include/ATen/core/TensorBody.h:3,
- from /home/opam/.opam/default/lib/libtorch/include/ATen/Tensor.h:3,
- from /home/opam/.opam/default/lib/libtorch/include/torch/csrc/autograd/engine.h:6,
- from torch_api.cpp:1:
- /home/opam/.opam/default/lib/libtorch/include/c10/util/StringUtil.h:108:3: error: 'uint32_t' does not name a type
- 108 | uint32_t line;
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/StringUtil.h:12:1: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- 11 | #include <vector>
- +++ |+#include <cstdint>
- 12 |
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:65:13: error: 'uint32_t' does not name a type
- 65 | const uint32_t line,
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:7:1: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- 6 | #include <c10/util/Deprecated.h>
- +++ |+#include <cstdint>
- 7 |
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Device.h: In member function 'void c10::Device::validate()':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Device.h:96:5: error: 'uint32_t' was not declared in this scope
- 96 | TORCH_CHECK(index_ == -1 || index_ >= 0,
- | ^~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Device.h:6:1: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- 5 | #include <c10/util/Exception.h>
- +++ |+#include <cstdint>
- 6 |
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Device.h:96:5: error: expected primary-expression before '(' token
- 96 | TORCH_CHECK(index_ == -1 || index_ >= 0,
- | ^~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Device.h:96:5: error: 'uint32_t' does not name a type
- 96 | TORCH_CHECK(index_ == -1 || index_ >= 0,
- | ^~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Device.h:96:5: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Device.h:98:5: error: 'uint32_t' was not declared in this scope
- 98 | TORCH_CHECK(!is_cpu() || index_ <= 0,
- | ^~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Device.h:98:5: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Device.h:98:5: error: expected primary-expression before '(' token
- 98 | TORCH_CHECK(!is_cpu() || index_ <= 0,
- | ^~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Device.h:98:5: error: 'uint32_t' does not name a type
- 98 | TORCH_CHECK(!is_cpu() || index_ <= 0,
- | ^~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Device.h:98:5: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Device.h: In member function 'std::size_t std::hash<c10::Device>::operator()(c10::Device) const':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Device.h:126:5: error: 'uint32_t' was not declared in this scope
- 126 | uint32_t bits =
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Device.h:126:5: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Device.h:129:34: error: 'bits' was not declared in this scope
- 129 | return std::hash<uint32_t>{}(bits);
- | ^~~~
- In file included from /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:4,
- from /home/opam/.opam/default/lib/libtorch/include/c10/core/Layout.h:3,
- from /home/opam/.opam/default/lib/libtorch/include/ATen/core/TensorBody.h:4:
- /home/opam/.opam/default/lib/libtorch/include/c10/core/DispatchKey.h: At global scope:
- /home/opam/.opam/default/lib/libtorch/include/c10/core/DispatchKey.h:18:24: error: found ':' in nested-name-specifier, expected '::'
- 18 | enum class DispatchKey : uint8_t {
- | ^
- | ::
- /home/opam/.opam/default/lib/libtorch/include/c10/core/DispatchKey.h:18:12: error: 'DispatchKey' has not been declared
- 18 | enum class DispatchKey : uint8_t {
- | ^~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/DispatchKey.h:18:34: error: expected unqualified-id before '{' token
- 18 | enum class DispatchKey : uint8_t {
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/core/DispatchKey.h:279:15: error: 'uint8_t' does not name a type
- 279 | static_cast<uint8_t>(DispatchKey::NumDispatchKeys) < 64,
- | ^~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/DispatchKey.h:4:1: note: 'uint8_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- 3 | #include <iostream>
- +++ |+#include <cstdint>
- 4 | #include <string>
- /home/opam/.opam/default/lib/libtorch/include/c10/core/DispatchKey.h:279:24: error: 'DispatchKey' has not been declared
- 279 | static_cast<uint8_t>(DispatchKey::NumDispatchKeys) < 64,
- | ^~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/DispatchKey.h:282:30: error: 'DispatchKey' was not declared in this scope
- 282 | C10_API const char* toString(DispatchKey);
- | ^~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/DispatchKey.h:283:49: error: 'DispatchKey' has not been declared
- 283 | C10_API std::ostream& operator<<(std::ostream&, DispatchKey);
- | ^~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/DispatchKey.h:290:11: error: 'DispatchKey' does not name a type
- 290 | constexpr DispatchKey kAutograd = DispatchKey::Autograd;
- | ^~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/DispatchKey.h:297:14: error: 'kAutograd' has not been declared in 'c10'
- 297 | using c10::kAutograd;
- | ^~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/DispatchKey.h:304:18: error: 'DispatchKey' is not a member of 'c10'
- 304 | struct hash<c10::DispatchKey> {
- | ^~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/DispatchKey.h:304:18: error: 'DispatchKey' is not a member of 'c10'
- /home/opam/.opam/default/lib/libtorch/include/c10/core/DispatchKey.h:304:29: error: template argument 1 is invalid
- 304 | struct hash<c10::DispatchKey> {
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:94:44: error: 'DispatchKey' was not declared in this scope
- 94 | static inline Backend dispatchKeyToBackend(DispatchKey t) {
- | ^~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:128:15: error: 'DispatchKey' does not name a type
- 128 | static inline DispatchKey backendToDispatchKey(Backend b) {
- | ^~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h: In function 'c10::DeviceType c10::backendToDeviceType(Backend)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:191:7: error: 'uint32_t' was not declared in this scope
- 191 | AT_ERROR("Undefined backend is not a valid device type");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:5:1: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- 4 | #include <c10/core/DispatchKey.h>
- +++ |+#include <cstdint>
- 5 | #include <c10/util/Exception.h>
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:191:7: error: expected primary-expression before '(' token
- 191 | AT_ERROR("Undefined backend is not a valid device type");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:191:7: error: 'uint32_t' does not name a type
- 191 | AT_ERROR("Undefined backend is not a valid device type");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:191:7: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:193:7: error: 'uint32_t' was not declared in this scope
- 193 | AT_ERROR("Unknown backend");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:193:7: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:193:7: error: expected primary-expression before '(' token
- 193 | AT_ERROR("Unknown backend");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:193:7: error: 'uint32_t' does not name a type
- 193 | AT_ERROR("Unknown backend");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:193:7: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h: In function 'c10::Backend c10::backendToCPU(Backend)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:225:7: error: 'uint32_t' was not declared in this scope
- 225 | AT_ERROR("Unknown backend");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:225:7: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:225:7: error: expected primary-expression before '(' token
- 225 | AT_ERROR("Unknown backend");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:225:7: error: 'uint32_t' does not name a type
- 225 | AT_ERROR("Unknown backend");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:225:7: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h: In function 'c10::Backend c10::backendToCUDA(Backend)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:245:7: error: 'uint32_t' was not declared in this scope
- 245 | AT_ERROR("Unknown backend");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:245:7: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:245:7: error: expected primary-expression before '(' token
- 245 | AT_ERROR("Unknown backend");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:245:7: error: 'uint32_t' does not name a type
- 245 | AT_ERROR("Unknown backend");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:245:7: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h: In function 'c10::Backend c10::backendToHIP(Backend)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:265:7: error: 'uint32_t' was not declared in this scope
- 265 | AT_ERROR("Unknown backend");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:265:7: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:265:7: error: expected primary-expression before '(' token
- 265 | AT_ERROR("Unknown backend");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:265:7: error: 'uint32_t' does not name a type
- 265 | AT_ERROR("Unknown backend");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:265:7: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h: At global scope:
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Backend.h:270:45: error: 'const char* c10::toString(Backend)' redeclared as different kind of entity
- 270 | static inline const char* toString(Backend b) {
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/core/DispatchKey.h:282:21: note: previous declaration 'const char* c10::toString'
- 282 | C10_API const char* toString(DispatchKey);
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Layout.h: In function 'std::ostream& c10::operator<<(std::ostream&, Layout)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Layout.h:37:7: error: 'uint32_t' was not declared in this scope
- 37 | AT_ERROR("Unknown layout");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Layout.h:4:1: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- 3 | #include <c10/core/Backend.h>
- +++ |+#include <cstdint>
- 4 | #include <c10/util/Exception.h>
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Layout.h:37:7: error: expected primary-expression before '(' token
- 37 | AT_ERROR("Unknown layout");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Layout.h:37:7: error: 'uint32_t' does not name a type
- 37 | AT_ERROR("Unknown layout");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Layout.h:37:7: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
- /home/opam/.opam/default/lib/libtorch/include/c10/core/MemoryFormat.h: In function 'std::ostream& c10::operator<<(std::ostream&, MemoryFormat)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/MemoryFormat.h:51:7: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 51 | AT_ERROR("Unknown memory format");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/core/MemoryFormat.h: In function 'std::vector<long int> c10::get_channels_last_strides_2d(IntArrayRef)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/MemoryFormat.h:71:7: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::__cxx11::basic_string<char>)'
- 71 | TORCH_INTERNAL_ASSERT(false, "ChannelsLast2d doesn't support size ", sizes.size());
- | ^~~~~~~~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/core/MemoryFormat.h: In function 'std::vector<long int> c10::get_channels_last_strides_3d(IntArrayRef)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/MemoryFormat.h:92:7: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::__cxx11::basic_string<char>)'
- 92 | TORCH_INTERNAL_ASSERT(false, "ChannelsLast3d doesn't support size ", sizes.size());
- | ^~~~~~~~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- In file included from /home/opam/.opam/default/lib/libtorch/include/ATen/core/TensorBody.h:6:
- /home/opam/.opam/default/lib/libtorch/include/c10/core/QScheme.h: At global scope:
- /home/opam/.opam/default/lib/libtorch/include/c10/core/QScheme.h:29:44: error: 'std::string c10::toString(QScheme)' redeclared as different kind of entity
- 29 | inline std::string toString(QScheme qscheme) {
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/core/DispatchKey.h:282:21: note: previous declaration 'const char* c10::toString'
- 282 | C10_API const char* toString(DispatchKey);
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/QScheme.h: In function 'std::string c10::toString(QScheme)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/QScheme.h:40:7: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 40 | TORCH_CHECK(false, "Unrecognized qscheme: ", static_cast<int>(qscheme));
- | ^~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h: In function 'caffe2::TypeMeta c10::scalarTypeToTypeMeta(ScalarType)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h:160:7: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 160 | AT_ERROR(
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h: In function 'c10::ScalarType c10::typeMetaToScalarType(caffe2::TypeMeta)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h:186:3: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 186 | AT_ERROR(
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- In file included from /home/opam/.opam/default/lib/libtorch/include/c10/core/Scalar.h:10,
- from /home/opam/.opam/default/lib/libtorch/include/ATen/core/TensorBody.h:7:
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h: At global scope:
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h:207:48: error: 'const char* c10::toString(ScalarType)' redeclared as different kind of entity
- 207 | static inline const char* toString(ScalarType t) {
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/core/DispatchKey.h:282:21: note: previous declaration 'const char* c10::toString'
- 282 | C10_API const char* toString(DispatchKey);
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h: In function 'size_t c10::elementSize(ScalarType)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h:228:7: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 228 | AT_ERROR("Unknown ScalarType");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h: In function 'bool c10::isSignedType(ScalarType)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h:292:3: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 292 | TORCH_CHECK(!isQIntType(t), "isSignedType not supported for quantized types");
- | ^~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h:303:7: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 303 | AT_ERROR("Unknown ScalarType");
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h: In function 'c10::ScalarType c10::toComplexType(ScalarType)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h:330:7: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 330 | TORCH_CHECK(false, "Unknown Complex ScalarType");
- | ^~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h: In function 'c10::ScalarType c10::promoteTypes(ScalarType, ScalarType)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h:387:5: error: 'c10::toString' cannot be used as a function
- 387 | AT_ERROR(
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h:387:5: error: 'c10::toString' cannot be used as a function
- 387 | AT_ERROR(
- | ^~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h: In function 'std::ostream& c10::operator<<(std::ostream&, ScalarType)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/ScalarType.h:423:28: error: 'c10::toString' cannot be used as a function
- 423 | return stream << toString(scalar_type);
- | ~~~~~~~~^~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Allocator.h: In member function 'void* c10::Allocator::raw_allocate(size_t)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Allocator.h:163:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::__cxx11::basic_string<char>)'
- 163 | AT_ASSERT(dptr.get() == dptr.get_context());
- | ^~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Allocator.h: In member function 'void c10::Allocator::raw_deallocate(void*)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/Allocator.h:168:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::__cxx11::basic_string<char>)'
- 168 | AT_ASSERT(d);
- | ^~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/intrusive_ptr.h: In destructor 'virtual c10::intrusive_ptr_target::~intrusive_ptr_target()':
- /home/opam/.opam/default/lib/libtorch/include/c10/util/intrusive_ptr.h:96:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::__cxx11::basic_string<char>)'
- 96 | TORCH_INTERNAL_ASSERT_DEBUG_ONLY(
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/intrusive_ptr.h:99:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::__cxx11::basic_string<char>)'
- 99 | TORCH_INTERNAL_ASSERT_DEBUG_ONLY(
- | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/core/StorageImpl.h: In constructor 'c10::StorageImpl::StorageImpl(use_byte_size_t, size_t, c10::DataPtr, c10::Allocator*, bool)':
- /home/opam/.opam/default/lib/libtorch/include/c10/core/StorageImpl.h:26:7: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::__cxx11::basic_string<char>)'
- 26 | AT_ASSERTM(
- | ^~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- ...TRUNCATED BY DUNE...
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:93:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 93 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of 'std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::AdaptiveLogSoftmaxWithLossImpl]':
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:34:27: required from here
- 34 | std::shared_ptr<Module> clone(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:48:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 48 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:61:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 61 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:74:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 74 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of 'void torch::nn::Cloneable<Derived>::clone_(torch::nn::Module&, const c10::optional<c10::Device>&) [with Derived = torch::nn::AdaptiveLogSoftmaxWithLossImpl]':
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:88:8: required from here
- 88 | void clone_(Module& other, const optional<Device>& device) final {
- | ^~~~~~
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:93:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 93 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of 'std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::BilinearImpl]':
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:34:27: required from here
- 34 | std::shared_ptr<Module> clone(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:48:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 48 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:61:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 61 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:74:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 74 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of 'void torch::nn::Cloneable<Derived>::clone_(torch::nn::Module&, const c10::optional<c10::Device>&) [with Derived = torch::nn::BilinearImpl]':
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:88:8: required from here
- 88 | void clone_(Module& other, const optional<Device>& device) final {
- | ^~~~~~
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:93:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 93 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of 'std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::LinearImpl]':
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:34:27: required from here
- 34 | std::shared_ptr<Module> clone(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:48:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 48 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:61:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 61 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:74:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 74 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of 'void torch::nn::Cloneable<Derived>::clone_(torch::nn::Module&, const c10::optional<c10::Device>&) [with Derived = torch::nn::LinearImpl]':
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:88:8: required from here
- 88 | void clone_(Module& other, const optional<Device>& device) final {
- | ^~~~~~
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:93:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 93 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of 'void torch::nn::Cloneable<Derived>::clone_(torch::nn::Module&, const c10::optional<c10::Device>&) [with Derived = torch::nn::SequentialImpl]':
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:88:8: required from here
- 88 | void clone_(Module& other, const optional<Device>& device) final {
- | ^~~~~~
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:93:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 93 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of 'std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::SequentialImpl]':
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:34:27: required from here
- 34 | std::shared_ptr<Module> clone(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:48:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 48 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:61:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 61 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:74:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 74 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of 'void torch::nn::Cloneable<Derived>::clone_(torch::nn::Module&, const c10::optional<c10::Device>&) [with Derived = torch::nn::ModuleListImpl]':
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:88:8: required from here
- 88 | void clone_(Module& other, const optional<Device>& device) final {
- | ^~~~~~
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:93:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 93 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h: In instantiation of 'std::shared_ptr<torch::nn::Module> torch::nn::Cloneable<Derived>::clone(const c10::optional<c10::Device>&) const [with Derived = torch::nn::ModuleListImpl]':
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:34:27: required from here
- 34 | std::shared_ptr<Module> clone(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:48:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 48 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:61:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 61 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/torch/csrc/api/include/torch/nn/cloneable.h:74:5: error: no matching function for call to 'c10::Error::Error(<brace-enclosed initializer list>, std::string)'
- 74 | TORCH_CHECK(
- | ^
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:72:3: note: candidate: 'c10::Error::Error(std::string, std::string, const void*)'
- 72 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:73:19: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::string' {aka 'std::__cxx11::basic_string<char>'}
- 73 | std::string msg,
- | ~~~~~~~~~~~~^~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate: 'c10::Error::Error(const char*, int, const char*, const std::string&, const std::string&, const void*)'
- 63 | Error(
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:63:3: note: candidate expects 6 arguments, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:3: note: candidate: 'c10::Error::Error(c10::SourceLocation, std::string)'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:60:24: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'c10::SourceLocation'
- 60 | Error(SourceLocation source_location, std::string msg);
- | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(const c10::Error&)'
- 28 | class C10_API Error : public std::exception {
- | ^~~~~
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate: 'c10::Error::Error(c10::Error&&)'
- /home/opam/.opam/default/lib/libtorch/include/c10/util/Exception.h:28:15: note: candidate expects 1 argument, 2 provided
- File "src/wrapper/dune", line 4, characters 11-22:
- 4 | (c_names torch_stubs)
- ^^^^^^^^^^^
- (cd _build/default/src/wrapper && /usr/bin/gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -pthread -D_FILE_OFFSET_BITS=64 -O2 -fno-strict-aliasing -fwrapv -fPIC -pthread -g -I /home/opam/.opam/default/lib/ocaml -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/stdlib-shims -o torch_stubs.o -c torch_stubs.c)
- torch_stubs.c: In function 'caml__31_at_save':
- torch_stubs.c:237:18: warning: passing argument 2 of 'at_save' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 237 | at_save(x227, x228);
- | ^~~~
- In file included from torch_stubs.c:1:
- torch_api.h:56:28: note: expected 'char *' but argument is of type 'const char *'
- 56 | void at_save(tensor, char *filename);
- | ~~~~~~^~~~~~~~
- torch_stubs.c: In function 'caml__32_at_load':
- torch_stubs.c:243:25: warning: passing argument 1 of 'at_load' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 243 | void* x232 = at_load(x231);
- | ^~~~
- torch_api.h:57:22: note: expected 'char *' but argument is of type 'const char *'
- 57 | tensor at_load(char *filename);
- | ~~~~~~^~~~~~~~
- torch_stubs.c: In function 'caml__33_at_save_multi':
- torch_stubs.c:252:36: warning: passing argument 4 of 'at_save_multi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 252 | at_save_multi(x237, x238, x239, x242);
- | ^~~~
- torch_api.h:59:78: note: expected 'char *' but argument is of type 'const char *'
- 59 | void at_save_multi(tensor *tensors, char **tensor_names, int ntensors, char *filename);
- | ~~~~~~^~~~~~~~
- torch_stubs.c: In function 'caml__34_at_load_multi':
- torch_stubs.c:261:36: warning: passing argument 4 of 'at_load_multi' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 261 | at_load_multi(x248, x249, x250, x253);
- | ^~~~
- torch_api.h:61:78: note: expected 'char *' but argument is of type 'const char *'
- 61 | void at_load_multi(tensor *tensors, char **tensor_names, int ntensors, char *filename);
- | ~~~~~~^~~~~~~~
- torch_stubs.c: In function 'caml__35_at_load_multi_':
- torch_stubs.c:270:37: warning: passing argument 4 of 'at_load_multi_' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 270 | at_load_multi_(x259, x260, x261, x264);
- | ^~~~
- torch_api.h:63:79: note: expected 'char *' but argument is of type 'const char *'
- 63 | void at_load_multi_(tensor *tensors, char **tensor_names, int ntensors, char *filename);
- | ~~~~~~^~~~~~~~
- torch_stubs.c: In function 'caml__36_at_load_callback':
- torch_stubs.c:277:21: warning: passing argument 1 of 'at_load_callback' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 277 | at_load_callback(x268, x269);
- | ^~~~
- torch_api.h:65:29: note: expected 'char *' but argument is of type 'const char *'
- 65 | void at_load_callback(char *filename, void (*f)(char *, tensor));
- | ~~~~~~^~~~~~~~
- torch_stubs.c:277:27: error: passing argument 2 of 'at_load_callback' from incompatible pointer type [-Wincompatible-pointer-types]
- 277 | at_load_callback(x268, x269);
- | ^~~~
- | |
- | void (*)(const char *, void *)
- torch_api.h:65:46: note: expected 'void (*)(char *, void *)' but argument is of type 'void (*)(const char *, void *)'
- 65 | void at_load_callback(char *filename, void (*f)(char *, tensor));
- | ~~~~~~~^~~~~~~~~~~~~~~~~~
- torch_stubs.c: In function 'caml__63_ati_string':
- torch_stubs.c:469:28: warning: passing argument 1 of 'ati_string' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 469 | void* x439 = ati_string(x438);
- | ^~~~
- torch_api.h:121:19: note: expected 'char *' but argument is of type 'const char *'
- 121 | ivalue ati_string(char *);
- | ^~~~~~
- torch_stubs.c: In function 'caml__66_atm_load':
- torch_stubs.c:487:26: warning: passing argument 1 of 'atm_load' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 487 | void* x448 = atm_load(x447);
- | ^~~~
- torch_api.h:108:17: note: expected 'char *' but argument is of type 'const char *'
- 108 | module atm_load(char *);
- | ^~~~~~
- torch_stubs.c: In function 'caml__487_atg_einsum':
- torch_stubs.c:6815:22: warning: passing argument 2 of 'atg_einsum' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 6815 | atg_einsum(x6878, x6879, x6880, x6881);
- | ^~~~~
- In file included from torch_api.h:135:
- torch_api_generated.h:420:34: note: expected 'char *' but argument is of type 'const char *'
- 420 | void atg_einsum(tensor *, char * equation, tensor *tensors_data, int tensors_len);
- | ~~~~~~~^~~~~~~~
- torch_stubs.c: In function 'caml__584_atg_from_file':
- torch_stubs.c:8158:25: warning: passing argument 2 of 'atg_from_file' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers]
- 8158 | atg_from_file(x8143, x8144, x8145, x8148, x8151, x8154);
- | ^~~~~
- torch_api_generated.h:517:37: note: expected 'char *' but argument is of type 'const char *'
- 517 | void atg_from_file(tensor *, char * filename, int shared, int64_t size, int options_kind, int options_device);
- | ~~~~~~~^~~~~~~~
- (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -g -bin-annot -bin-annot-occurrences -I src/torch/.torch.objs/byte -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -cmi-file src/torch/.torch.objs/byte/torch__Text_helper.cmi -no-alias-deps -open Torch__ -o src/torch/.torch.objs/byte/torch__Text_helper.cmo -c -impl src/torch/text_helper.ml)
- File "src/torch/text_helper.ml", line 53, characters 4-22:
- 53 | Caml.Gc.full_major ()
- ^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
- (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -g -bin-annot -bin-annot-occurrences -I src/torch/.torch.objs/byte -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -cmi-file src/torch/.torch.objs/byte/torch__Tensor.cmi -no-alias-deps -open Torch__ -o src/torch/.torch.objs/byte/torch__Tensor.cmo -c -impl src/torch/tensor.ml)
- File "src/torch/tensor.ml", line 219, characters 4-32:
- 219 | Caml.Format.pp_print_newline formatter ();
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/tensor.ml", line 220, characters 4-31:
- 220 | Caml.Format.pp_print_string formatter (to_string t ~line_size:96);
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/tensor.ml", line 221, characters 4-32:
- 221 | Caml.Format.pp_print_newline formatter ())
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/tensor.ml", line 226, characters 7-34:
- 226 | |> Caml.Format.pp_print_string formatter
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/tensor.ml", line 375, characters 10-21:
- 375 | else if Caml.( <> ) (shape t1) (shape t2)
- ^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
- (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -g -bin-annot -bin-annot-occurrences -I src/torch/.torch.objs/byte -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -cmi-file src/torch/.torch.objs/byte/torch__Dataset_helper.cmi -no-alias-deps -open Torch__ -o src/torch/.torch.objs/byte/torch__Dataset_helper.cmo -c -impl src/torch/dataset_helper.ml)
- File "src/torch/dataset_helper.ml", line 148, characters 4-22:
- 148 | Caml.Gc.full_major ();
- ^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/dataset_helper.ml", line 193, characters 4-22:
- 193 | Caml.Gc.full_major ()
- ^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/dataset_helper.ml", line 200, characters 8-26:
- 200 | Caml.Gc.full_major ();
- ^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/dataset_helper.ml", line 207, characters 8-26:
- 207 | Caml.Gc.full_major ();
- ^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
- (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -g -bin-annot -bin-annot-occurrences -I src/torch/.torch.objs/byte -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -cmi-file src/torch/.torch.objs/byte/torch__Checkpointing.cmi -no-alias-deps -open Torch__ -o src/torch/.torch.objs/byte/torch__Checkpointing.cmo -c -impl src/torch/checkpointing.ml)
- File "src/torch/checkpointing.ml", line 4, characters 16-37:
- 4 | let dirname = Caml.Filename.dirname checkpoint_base in
- ^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/checkpointing.ml", line 5, characters 17-39:
- 5 | let basename = Caml.Filename.basename checkpoint_base in
- ^^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/checkpointing.ml", line 12, characters 44-64:
- 12 | (try Some (Int.of_string suffix, Caml.Filename.concat dirname filename) with
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/checkpointing.ml", line 6, characters 2-18:
- 6 | Caml.Sys.readdir dirname
- ^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
- (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -g -bin-annot -bin-annot-occurrences -I src/torch/.torch.objs/byte -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -cmi-file src/torch/.torch.objs/byte/torch__Cifar_helper.cmi -no-alias-deps -open Torch__ -o src/torch/.torch.objs/byte/torch__Cifar_helper.cmo -c -impl src/torch/cifar_helper.ml)
- File "src/torch/cifar_helper.ml", line 46, characters 26-46:
- 46 | let read_one filename = Caml.Filename.concat dirname filename |> read_file in
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/cifar_helper.ml", line 67, characters 21-41:
- 67 | let cache_file = Caml.Filename.concat dirname "cifar-cache.ot" in
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
- (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -g -bin-annot -bin-annot-occurrences -I src/torch/.torch.objs/byte -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -cmi-file src/torch/.torch.objs/byte/torch__Mnist_helper.cmi -no-alias-deps -open Torch__ -o src/torch/.torch.objs/byte/torch__Mnist_helper.cmo -c -impl src/torch/mnist_helper.ml)
- File "src/torch/mnist_helper.ml", line 36, characters 17-37:
- 36 | let filename = Caml.Filename.concat prefix in
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
- (cd _build/default && /home/opam/.opam/default/bin/ocamlc.opt -w -40 -g -bin-annot -bin-annot-occurrences -I src/vision/.torch_vision.objs/byte -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/lib/stdlib-shims -I src/torch/.torch.objs/byte -I src/wrapper/.torch_core.objs/byte -cmi-file src/vision/.torch_vision.objs/byte/torch_vision__Image.cmi -no-alias-deps -open Torch_vision -o src/vision/.torch_vision.objs/byte/torch_vision__Image.cmo -c -impl src/vision/image.ml)
- File "src/vision/image.ml", line 81, characters 10-31:
- 81 | if not (Caml.Sys.is_directory dir) then Printf.failwithf "not a directory %s" dir ();
- ^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/vision/image.ml", line 82, characters 14-30:
- 82 | let files = Caml.Sys.readdir dir |> Array.to_list in
- ^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/vision/image.ml", line 87, characters 26-46:
- 87 | match load_image (Caml.Filename.concat dir filename) ?resize with
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/vision/image.ml", line 162, characters 12-33:
- 162 | if not (Caml.Sys.is_directory dir) then Printf.failwithf "not a directory %s" dir ();
- ^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/vision/image.ml", line 167, characters 28-48:
- 167 | let next_dir = Caml.Filename.concat dir file in
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/vision/image.ml", line 168, characters 16-37:
- 168 | if Caml.Sys.is_directory next_dir
- ^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/vision/image.ml", line 165, characters 6-22:
- 165 | Caml.Sys.readdir dir
- ^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/vision/image.ml", line 187, characters 41-61:
- 187 | load_image ?resize:t.resize (Caml.Filename.concat dir file)
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/vision/image.ml", line 198, characters 37-57:
- 198 | load_image ?resize:t.resize (Caml.Filename.concat dir file) |> Or_error.ok_exn)
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
- (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -I src/wrapper/.torch_core.objs/native -cmi-file src/torch/.torch.objs/byte/torch__Tensor.cmi -no-alias-deps -open Torch__ -o src/torch/.torch.objs/native/torch__Tensor.cmx -c -impl src/torch/tensor.ml)
- File "src/torch/tensor.ml", line 219, characters 4-32:
- 219 | Caml.Format.pp_print_newline formatter ();
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/tensor.ml", line 220, characters 4-31:
- 220 | Caml.Format.pp_print_string formatter (to_string t ~line_size:96);
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/tensor.ml", line 221, characters 4-32:
- 221 | Caml.Format.pp_print_newline formatter ())
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/tensor.ml", line 226, characters 7-34:
- 226 | |> Caml.Format.pp_print_string formatter
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/tensor.ml", line 375, characters 10-21:
- 375 | else if Caml.( <> ) (shape t1) (shape t2)
- ^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
- (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -I src/wrapper/.torch_core.objs/native -cmi-file src/torch/.torch.objs/byte/torch__Text_helper.cmi -no-alias-deps -open Torch__ -o src/torch/.torch.objs/native/torch__Text_helper.cmx -c -impl src/torch/text_helper.ml)
- File "src/torch/text_helper.ml", line 53, characters 4-22:
- 53 | Caml.Gc.full_major ()
- ^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
- (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -I src/wrapper/.torch_core.objs/native -cmi-file src/torch/.torch.objs/byte/torch__Dataset_helper.cmi -no-alias-deps -open Torch__ -o src/torch/.torch.objs/native/torch__Dataset_helper.cmx -c -impl src/torch/dataset_helper.ml)
- File "src/torch/dataset_helper.ml", line 148, characters 4-22:
- 148 | Caml.Gc.full_major ();
- ^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/dataset_helper.ml", line 193, characters 4-22:
- 193 | Caml.Gc.full_major ()
- ^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/dataset_helper.ml", line 200, characters 8-26:
- 200 | Caml.Gc.full_major ();
- ^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/dataset_helper.ml", line 207, characters 8-26:
- 207 | Caml.Gc.full_major ();
- ^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
- (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -I src/wrapper/.torch_core.objs/native -cmi-file src/torch/.torch.objs/byte/torch__Cifar_helper.cmi -no-alias-deps -open Torch__ -o src/torch/.torch.objs/native/torch__Cifar_helper.cmx -c -impl src/torch/cifar_helper.ml)
- File "src/torch/cifar_helper.ml", line 46, characters 26-46:
- 46 | let read_one filename = Caml.Filename.concat dirname filename |> read_file in
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/cifar_helper.ml", line 67, characters 21-41:
- 67 | let cache_file = Caml.Filename.concat dirname "cifar-cache.ot" in
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
- (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -I src/wrapper/.torch_core.objs/native -cmi-file src/torch/.torch.objs/byte/torch__Mnist_helper.cmi -no-alias-deps -open Torch__ -o src/torch/.torch.objs/native/torch__Mnist_helper.cmx -c -impl src/torch/mnist_helper.ml)
- File "src/torch/mnist_helper.ml", line 36, characters 17-37:
- 36 | let filename = Caml.Filename.concat prefix in
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
- (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -g -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/lib/stdlib-shims -I src/wrapper/.torch_core.objs/byte -I src/wrapper/.torch_core.objs/native -cmi-file src/torch/.torch.objs/byte/torch__Checkpointing.cmi -no-alias-deps -open Torch__ -o src/torch/.torch.objs/native/torch__Checkpointing.cmx -c -impl src/torch/checkpointing.ml)
- File "src/torch/checkpointing.ml", line 4, characters 16-37:
- 4 | let dirname = Caml.Filename.dirname checkpoint_base in
- ^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/checkpointing.ml", line 5, characters 17-39:
- 5 | let basename = Caml.Filename.basename checkpoint_base in
- ^^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/checkpointing.ml", line 12, characters 44-64:
- 12 | (try Some (Int.of_string suffix, Caml.Filename.concat dirname filename) with
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/torch/checkpointing.ml", line 6, characters 2-18:
- 6 | Caml.Sys.readdir dirname
- ^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
- (cd _build/default && /home/opam/.opam/default/bin/ocamlopt.opt -w -40 -g -I src/vision/.torch_vision.objs/byte -I src/vision/.torch_vision.objs/native -I /home/opam/.opam/default/lib/base -I /home/opam/.opam/default/lib/base/base_internalhash_types -I /home/opam/.opam/default/lib/base/caml -I /home/opam/.opam/default/lib/base/shadow_stdlib -I /home/opam/.opam/default/lib/ctypes -I /home/opam/.opam/default/lib/ctypes-foreign -I /home/opam/.opam/default/lib/ctypes/stubs -I /home/opam/.opam/default/lib/integers -I /home/opam/.opam/default/lib/ocaml/str -I /home/opam/.opam/default/lib/ocaml/threads -I /home/opam/.opam/default/lib/ocaml/unix -I /home/opam/.opam/default/lib/sexplib0 -I /home/opam/.opam/default/lib/stdio -I /home/opam/.opam/default/lib/stdlib-shims -I src/torch/.torch.objs/byte -I src/torch/.torch.objs/native -I src/wrapper/.torch_core.objs/byte -I src/wrapper/.torch_core.objs/native -cmi-file src/vision/.torch_vision.objs/byte/torch_vision__Image.cmi -no-alias-deps -open Torch_vision -o src/vision/.torch_vision.objs/native/torch_vision__Image.cmx -c -impl src/vision/image.ml)
- File "src/vision/image.ml", line 81, characters 10-31:
- 81 | if not (Caml.Sys.is_directory dir) then Printf.failwithf "not a directory %s" dir ();
- ^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/vision/image.ml", line 82, characters 14-30:
- 82 | let files = Caml.Sys.readdir dir |> Array.to_list in
- ^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/vision/image.ml", line 87, characters 26-46:
- 87 | match load_image (Caml.Filename.concat dir filename) ?resize with
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/vision/image.ml", line 162, characters 12-33:
- 162 | if not (Caml.Sys.is_directory dir) then Printf.failwithf "not a directory %s" dir ();
- ^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/vision/image.ml", line 167, characters 28-48:
- 167 | let next_dir = Caml.Filename.concat dir file in
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/vision/image.ml", line 168, characters 16-37:
- 168 | if Caml.Sys.is_directory next_dir
- ^^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/vision/image.ml", line 165, characters 6-22:
- 165 | Caml.Sys.readdir dir
- ^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/vision/image.ml", line 187, characters 41-61:
- 187 | load_image ?resize:t.resize (Caml.Filename.concat dir file)
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
-
- File "src/vision/image.ml", line 198, characters 37-57:
- 198 | load_image ?resize:t.resize (Caml.Filename.concat dir file) |> Or_error.ok_exn)
- ^^^^^^^^^^^^^^^^^^^^
- Alert deprecated: module Caml
- [since v0.16] use Stdlib instead of Caml
[ERROR] The compilation of torch.0.10 failed at "dune build -p torch -j 39".
build failed...
=== STDERR ===
2026-07-26 13:39.17: FAILED: build torch.0.10
2026-07-26 13:39.17: Job failed: build failed: torch.0.10