device.ml
torch
torch.core
torch.toplevel
torch.vision
1 2 3 4 5 6 type t = | Cpu | Cuda (* Hardcoded, should match Device.h *) let to_int = function Cpu -> 0 | Cuda -> 1
1 2 3 4 5 6
type t = | Cpu | Cuda (* Hardcoded, should match Device.h *) let to_int = function Cpu -> 0 | Cuda -> 1