opam-version: "2.0" maintainer: "Jane Street developers" authors: ["Jane Street Group, LLC"] homepage: "https://github.com/janestreet/torch" bug-reports: "https://github.com/janestreet/torch/issues" dev-repo: "git+https://github.com/janestreet/torch.git" doc: "https://ocaml.janestreet.com/ocaml-core/latest/doc/torch/index.html" license: "MIT" available: arch = "x86_64" & os = "linux" synopsis: "CPU-only binaries for torch" description: "Downloads the CPU-only libtorch binaries, a requirement for using OCaml Torch." install: [ "sh" "-c" "test -d %{lib}%/libtorch/lib/libtorch.so || ( unzip libtorch-linux.zip && mv -f libtorch %{lib}%/ )" ] extra-source "libtorch-linux.zip" { src: "https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-2.1.2%2Bcpu.zip" checksum: [ "sha256=904b764df6106a8a35bef64c4b55b8c1590ad9d071eb276e680cf42abafe79e9" "md5=6395886cf4b2a9981306b78e15dad992" ] }