Class MPSGraphLossReductionType
- java.lang.Object
-
- apple.metalperformanceshadersgraph.enums.MPSGraphLossReductionType
-
public final class MPSGraphLossReductionType extends java.lang.ObjectThe type of the reduction MPSGraph applies in the loss operations.
-
-
Field Summary
Fields Modifier and Type Field Description static longAxisComputes the loss without reduction.static longMeanReduces the loss down to a scalar with a mean operation.static longNoneComputes the loss without reduction.static longSumReduces the loss down to a scalar with a sum operation.
-
-
-
Field Detail
-
Axis
public static final long Axis
Computes the loss without reduction. API-Since: 14.0- See Also:
- Constant Field Values
-
Sum
public static final long Sum
Reduces the loss down to a scalar with a sum operation. API-Since: 14.0- See Also:
- Constant Field Values
-
Mean
public static final long Mean
Reduces the loss down to a scalar with a mean operation. API-Since: 15.0- See Also:
- Constant Field Values
-
None
public static final long None
Computes the loss without reduction. API-Since: 17.0- See Also:
- Constant Field Values
-
-