package torch

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Torch_core.ReductionSource

Sourcetype 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.

    *)
Sourceval to_int : t -> int