package torch

  1. Overview
  2. Docs
PyTorch bindings for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

0.4.tar.gz
md5=9547e9e025dacd52e405ff699539c582
sha512=23fd9bef6f5f11c55171f2383a2f7ca57330511af6521a4579410e002d8667a91e764aecc2deb1cf8d7bf3b0e988cd3020850fa4a5a1ec713dfb110ec7352892

doc/src/torch.core/device.ml.html

Source file device.ml

1
2
3
4
5
6
type t =
  | Cpu
  | Cuda

(* Hardcoded, should match Device.h *)
let to_int = function Cpu -> 0 | Cuda -> 1
OCaml

Innovation. Community. Security.