this repo has no description
1opam-version: "2.0"
2maintainer: "Jane Street developers"
3authors: ["Jane Street Group, LLC"]
4homepage: "https://github.com/janestreet/torch"
5bug-reports: "https://github.com/janestreet/torch/issues"
6dev-repo: "git+https://github.com/janestreet/torch.git"
7doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/torch/index.html"
8license: "MIT"
9build: [
10 ["dune" "build" "-p" name "-j" jobs]
11]
12depends: [
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"}
23 "ctypes-foreign"
24 "dune" {>= "3.11.0"}
25 "dune-configurator"
26 "ocaml-compiler-libs" {>= "v0.11.0"}
27 "libtorch" {with-test}
28]
29depopts: [
30 "libtorch"
31]
32available: arch != "arm32" & arch != "x86_32"
33conflicts: [
34 "libtorch" {< "2.1.0" | >= "2.2.0"}
35]
36synopsis: "Torch bindings for OCaml"
37description: "
38The ocaml-torch project provides some OCaml bindings for the Torch library.
39This brings to OCaml NumPy-like tensor computations with GPU acceleration and
40tape-based automatic differentiation.
41"
42url {
43 src: "https://github.com/janestreet/torch/archive/refs/tags/v0.17.0.tar.gz"
44 checksum: [
45 "md5=8e189f338b454bbefc4965d827f5a0cc"
46 "sha512=f96155624705bc500734d5dbb18255436c1e4646f89ddc0c47260d79003543126c68e206267b3487bdf25c4f7168ab694ba89b661304c4735c159a91630f97cd"
47 ]
48}
49post-messages: [
50 "Installation of ocaml-torch failed. This likely happened
51because there is no system installation of libtorch to compile
52OCaml bindings against. Please instal the CPU version of libtorch
53through opam, or the appropriate version of libtorch for your GPU
54through the official distribution." {failure}
55]