Skip to content

Commit edd34de

Browse files
authored
Merge pull request #26141 from public-release/opam-publish-torch.v0.17.0
Package torch.v0.17.0
2 parents 39a5da8 + b3443fe commit edd34de

File tree

1 file changed

+55
-0
lines changed
  • packages/torch/torch.v0.17.0

1 file changed

+55
-0
lines changed

packages/torch/torch.v0.17.0/opam

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
opam-version: "2.0"
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"
8+
license: "MIT"
9+
build: [
10+
["dune" "build" "-p" name "-j" jobs]
11+
]
12+
depends: [
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+
]
29+
depopts: [
30+
"libtorch"
31+
]
32+
available: arch != "arm32" & arch != "x86_32"
33+
conflicts: [
34+
"libtorch" {< "2.1.0" | >= "2.2.0"}
35+
]
36+
synopsis: "Torch bindings for OCaml"
37+
description: "
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.
41+
"
42+
url {
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+
}
49+
post-messages: [
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}
55+
]

0 commit comments

Comments
 (0)