···
2
+
maintainer: "Jane Street developers"
3
+
authors: ["Jane Street Group, LLC"]
4
+
homepage: "https://github.com/janestreet/torch"
5
+
bug-reports: "https://github.com/janestreet/torch/issues"
6
+
dev-repo: "git+https://github.com/janestreet/torch.git"
7
+
doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/torch/index.html"
10
+
["dune" "build" "-p" name "-j" jobs]
13
+
"ocaml" {>= "5.1.0"}
14
+
"base" {>= "v0.17" & < "v0.18"}
15
+
"core" {>= "v0.17" & < "v0.18"}
16
+
"core_unix" {>= "v0.17" & < "v0.18"}
17
+
"ppx_bench" {>= "v0.17" & < "v0.18"}
18
+
"ppx_inline_test" {>= "v0.17" & < "v0.18"}
19
+
"ppx_jane" {>= "v0.17" & < "v0.18"}
20
+
"ppx_string" {>= "v0.17" & < "v0.18"}
21
+
"stdio" {>= "v0.17" & < "v0.18"}
22
+
"ctypes" {>= "0.18.0"}
24
+
"dune" {>= "3.11.0"}
26
+
"ocaml-compiler-libs" {>= "v0.11.0"}
27
+
"libtorch" {with-test}
32
+
available: arch != "arm32" & arch != "x86_32"
34
+
"libtorch" {< "2.1.0" | >= "2.2.0"}
36
+
synopsis: "Torch bindings for OCaml"
38
+
The ocaml-torch project provides some OCaml bindings for the Torch library.
39
+
This brings to OCaml NumPy-like tensor computations with GPU acceleration and
40
+
tape-based automatic differentiation.
43
+
src: "https://github.com/janestreet/torch/archive/refs/tags/v0.17.0.tar.gz"
45
+
"md5=8e189f338b454bbefc4965d827f5a0cc"
46
+
"sha512=f96155624705bc500734d5dbb18255436c1e4646f89ddc0c47260d79003543126c68e206267b3487bdf25c4f7168ab694ba89b661304c4735c159a91630f97cd"
50
+
"Installation of ocaml-torch failed. This likely happened
51
+
because there is no system installation of libtorch to compile
52
+
OCaml bindings against. Please instal the CPU version of libtorch
53
+
through opam, or the appropriate version of libtorch for your GPU
54
+
through the official distribution." {failure}