Class MPSNNPaddingMethod
- java.lang.Object
-
- apple.metalperformanceshaders.enums.MPSNNPaddingMethod
-
public final class MPSNNPaddingMethod extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static longAddRemainderToBottomLeftAPI-Since: 11.0static longAddRemainderToBottomRight< Extra padding pixels are accumulated to bottom and right sides API-Since: 11.0static longAddRemainderToMaskstatic longAddRemainderToTopLeft< Extra padding pixels are accumulated to top and left sides API-Since: 11.0static longAddRemainderToTopRightAPI-Since: 11.0static longAlign_reserved< Extra padding pixels are not defined.static longAlignBottomRight< Extra padding pixels appear on the bottom and right sides API-Since: 11.0static longAlignCentered< Extra padding pixels are distributed as evenly as possible to all sides API-Since: 11.0static longAlignMaskstatic longAlignTopLeft< Extra padding pixels appear on top and left sides API-Since: 11.0static longCustom< Use destinationImageDescriptorForSourceImages:sourceStates:forKernel:suggestedDescriptor: to calculate padding and offset.static longCustomAllowForNodeFusion< By itself, MPSNNPaddingMethodCustom will inhibit automatic fusion between nodes producing and consuming the image described by the padding policy.static longCustomWhitelistForNodeFusionDeprecated.static longExcludeEdgesThe caffe framework constrains the average pooling area to the limits of the padding area in cases where a pixel would read beyond the padding area.static longSize_reservedAPI-Since: 11.0static longSizeFull< The result is the largest image for which *any* source pixel is valid for result pixels API-Since: 11.0static longSizeMaskAPI-Since: 11.0static longSizeSame< The result is the same size as the input image (before strides) API-Since: 11.0static longSizeValidOnly< The result is the largest image for which *all* source pixels are valid for result pixels API-Since: 11.0
-
-
-
Field Detail
-
AlignCentered
public static final long AlignCentered
< Extra padding pixels are distributed as evenly as possible to all sides API-Since: 11.0- See Also:
- Constant Field Values
-
AlignTopLeft
public static final long AlignTopLeft
< Extra padding pixels appear on top and left sides API-Since: 11.0- See Also:
- Constant Field Values
-
AlignBottomRight
public static final long AlignBottomRight
< Extra padding pixels appear on the bottom and right sides API-Since: 11.0- See Also:
- Constant Field Values
-
Align_reserved
public static final long Align_reserved
< Extra padding pixels are not defined. API-Since: 11.0- See Also:
- Constant Field Values
-
AlignMask
public static final long AlignMask
- See Also:
- Constant Field Values
-
AddRemainderToTopLeft
public static final long AddRemainderToTopLeft
< Extra padding pixels are accumulated to top and left sides API-Since: 11.0- See Also:
- Constant Field Values
-
AddRemainderToTopRight
public static final long AddRemainderToTopRight
API-Since: 11.0- See Also:
- Constant Field Values
-
AddRemainderToBottomLeft
public static final long AddRemainderToBottomLeft
API-Since: 11.0- See Also:
- Constant Field Values
-
AddRemainderToBottomRight
public static final long AddRemainderToBottomRight
< Extra padding pixels are accumulated to bottom and right sides API-Since: 11.0- See Also:
- Constant Field Values
-
AddRemainderToMask
public static final long AddRemainderToMask
- See Also:
- Constant Field Values
-
SizeValidOnly
public static final long SizeValidOnly
< The result is the largest image for which *all* source pixels are valid for result pixels API-Since: 11.0- See Also:
- Constant Field Values
-
SizeSame
public static final long SizeSame
< The result is the same size as the input image (before strides) API-Since: 11.0- See Also:
- Constant Field Values
-
SizeFull
public static final long SizeFull
< The result is the largest image for which *any* source pixel is valid for result pixels API-Since: 11.0- See Also:
- Constant Field Values
-
Size_reserved
public static final long Size_reserved
API-Since: 11.0- See Also:
- Constant Field Values
-
Custom
public static final long Custom
< Use destinationImageDescriptorForSourceImages:sourceStates:forKernel:suggestedDescriptor: to calculate padding and offset. API-Since: 11.0- See Also:
- Constant Field Values
-
SizeMask
public static final long SizeMask
API-Since: 11.0- See Also:
- Constant Field Values
-
ExcludeEdges
public static final long ExcludeEdges
The caffe framework constrains the average pooling area to the limits of the padding area in cases where a pixel would read beyond the padding area. Set this bit for Caffe emulation with average pooling. API-Since: 11.0- See Also:
- Constant Field Values
-
CustomWhitelistForNodeFusion
@Deprecated public static final long CustomWhitelistForNodeFusion
Deprecated.API-Since: 12.0 Deprecated-Since: 15.0- See Also:
- Constant Field Values
-
CustomAllowForNodeFusion
public static final long CustomAllowForNodeFusion
< By itself, MPSNNPaddingMethodCustom will inhibit automatic fusion between nodes producing and consuming the image described by the padding policy. MPSNNPaddingMethodCustomAllowForNodeFusion signals that the custom method is benign and fusion may go ahead. API-Since: 15.0- See Also:
- Constant Field Values
-
-