opam-version: "2.0"
bug-reports:  "https://github.com/LaurentMazare/ocaml-torch/issues"
homepage:     "https://github.com/LaurentMazare/ocaml-torch"
dev-repo:     "git+https://github.com/LaurentMazare/ocaml-torch.git"
maintainer:   "Laurent Mazare <lmazare@gmail.com>"
authors:      [ "Laurent Mazare" ]

build: [["dune" "build" "-p" name "-j" jobs]]

depends: [
  "base" {>= "0.11.0" & < "v0.15"}
  "cmdliner"
  "ctypes" {>= "0.5"}
  "ctypes-foreign"
  "dune" {>= "1.3.0"}
  "dune-configurator"
  "libtorch" {>= "1.0.1" & < "1.1.0"}
  "npy"
  "ocaml" {>= "4.06"}
  "ocaml-compiler-libs"
  "ppx_custom_printf" {< "v0.15"}
  "ppx_expect" {< "v0.15"}
  "ppx_sexp_conv" {< "v0.15"}
  "sexplib" {< "v0.15"}
  "stb_image"
  "stdio" {< "v0.15"}
]

available: os = "linux" | os = "macos"
x-ci-accept-failures: ["debian-unstable"]

synopsis: "PyTorch bindings for OCaml"
description: """
The ocaml-torch project provides some OCaml bindings for the PyTorch library.
This brings to OCaml NumPy-like tensor computations with GPU acceleration and
tape-based automatic differentiation.
"""

url {
  src: "https://github.com/LaurentMazare/ocaml-torch/archive/0.3.tar.gz"
  checksum: [
    "md5=353b6053959182da904bffada2f0d8e0"
    "sha512=84471d6f86fdf1e35c5119b02536c812dc7822d3fb5e5d47a83e5c1492b7362f9be17361acfce69f1dd0e684fc49c2392c43fcf87a59f26fb873b3324cdb5d4e"
  ]
}
