package torch

  1. Overview
  2. Docs
type t =
  1. | None
    (*

    Do not perform any reduction.

    *)
  2. | Elementwise_mean
    (*

    Reduces the tensor to a scalar by taking the mean of the elements.

    *)
  3. | Sum
    (*

    Reduces the tensor to a scalar by taking the sum of the elements.

    *)
val to_int : t -> int
OCaml

Innovation. Community. Security.