package torch

  1. Overview
  2. Docs
PyTorch bindings for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

0.8.tar.gz
md5=7f9cb5aa0d5e7e9700dde447a1f61c18
sha512=f4f4c23b5ba49cefa6e7f6d51ac1d015e3f6be284a80ceff378a0cd029faaca6026ddea72b8d97e718f7dc37b0879f816b2c789b809939df6881955f155c592f

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

Source file reduction.ml

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

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

Innovation. Community. Security.