package torch

  1. Overview
  2. Docs
Torch bindings for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

torch-v0.16.0.tar.gz
sha256=ccd9ef3b630bdc7c41e363e71d8ecb86c316460cbf79afe67546c6ff22c19da4

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

Source file reduction.ml

1
2
3
4
5
6
7
8
9
10
type t =
  | None
  | Elementwise_mean
  | Sum

let to_int = function
  | None -> 0
  | Elementwise_mean -> 1
  | Sum -> 2
;;
OCaml

Innovation. Community. Security.