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 longAddRemainderToBottomLeftstatic longAddRemainderToBottomRight< Extra padding pixels are accumulated to bottom and right sidesstatic longAddRemainderToMaskstatic longAddRemainderToTopLeft< Extra padding pixels are accumulated to top and left sidesstatic longAddRemainderToTopRightstatic longAlign_reserved< Extra padding pixels are not defined.static longAlignBottomRight< Extra padding pixels appear on the bottom and right sidesstatic longAlignCentered< Extra padding pixels are distributed as evenly as possible to all sidesstatic longAlignMaskstatic longAlignTopLeft< Extra padding pixels appear on top and left sidesstatic longCustom< Use destinationImageDescriptorForSourceImages:sourceStates:forKernel:suggestedDescriptor: to calculate padding and offset.static longCustomWhitelistForNodeFusion< By itself, MPSNNPaddingMethodCustom will inhibit automatic fusion between nodes producing and consuming the image described by the padding policy.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_reservedstatic longSizeFull< The result is the largest image for which *any* source pixel is valid for result pixelsstatic longSizeMaskstatic longSizeSame< The result is the same size as the input image (before strides)static longSizeValidOnly< The result is the largest image for which *all* source pixels are valid for result pixels
-
-
-
Field Detail
-
AlignCentered
public static final long AlignCentered
< Extra padding pixels are distributed as evenly as possible to all sides- See Also:
- Constant Field Values
-
AlignTopLeft
public static final long AlignTopLeft
< Extra padding pixels appear on top and left sides- See Also:
- Constant Field Values
-
AlignBottomRight
public static final long AlignBottomRight
< Extra padding pixels appear on the bottom and right sides- See Also:
- Constant Field Values
-
Align_reserved
public static final long Align_reserved
< Extra padding pixels are not defined.- 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- See Also:
- Constant Field Values
-
AddRemainderToTopRight
public static final long AddRemainderToTopRight
- See Also:
- Constant Field Values
-
AddRemainderToBottomLeft
public static final long AddRemainderToBottomLeft
- See Also:
- Constant Field Values
-
AddRemainderToBottomRight
public static final long AddRemainderToBottomRight
< Extra padding pixels are accumulated to bottom and right sides- 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- See Also:
- Constant Field Values
-
SizeSame
public static final long SizeSame
< The result is the same size as the input image (before strides)- 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- See Also:
- Constant Field Values
-
Size_reserved
public static final long Size_reserved
- See Also:
- Constant Field Values
-
Custom
public static final long Custom
< Use destinationImageDescriptorForSourceImages:sourceStates:forKernel:suggestedDescriptor: to calculate padding and offset.- See Also:
- Constant Field Values
-
SizeMask
public static final long SizeMask
- 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.- See Also:
- Constant Field Values
-
CustomWhitelistForNodeFusion
public static final long CustomWhitelistForNodeFusion
< By itself, MPSNNPaddingMethodCustom will inhibit automatic fusion between nodes producing and consuming the image described by the padding policy. MPSNNPaddingMethodCustomWhitelistForNodeFusion signals that the custom method is benign and fusion may go ahead.- See Also:
- Constant Field Values
-
-