Reduction

public final enum Reduction

Type of Loss Reduction

AUTO indicates that the reduction option will be determined by the usage context. For almost all cases this defaults to SUM_OVER_BATCH_SIZE .

NONE Weighted losses with one dimension reduced (axis=-1, or axis specified by loss function).

SUM Scalar sum of weighted losses.

SUM_OVER_BATCH_SIZE Scalar SUM divided by number of elements in losses.

Inherited Methods

Enum Values

public static final Reduction AUTO

public static final Reduction NONE

public static final Reduction SUM

public static final Reduction SUM_OVER_BATCH_SIZE