package torch

  1. Overview
  2. Docs

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.