Class MPSNNPaddingMethod


  • public final class MPSNNPaddingMethod
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long AddRemainderToBottomLeft  
      static long AddRemainderToBottomRight
      < Extra padding pixels are accumulated to bottom and right sides
      static long AddRemainderToMask  
      static long AddRemainderToTopLeft
      < Extra padding pixels are accumulated to top and left sides
      static long AddRemainderToTopRight  
      static long Align_reserved
      < Extra padding pixels are not defined.
      static long AlignBottomRight
      < Extra padding pixels appear on the bottom and right sides
      static long AlignCentered
      < Extra padding pixels are distributed as evenly as possible to all sides
      static long AlignMask  
      static long AlignTopLeft
      < Extra padding pixels appear on top and left sides
      static long Custom
      < Use destinationImageDescriptorForSourceImages:sourceStates:forKernel:suggestedDescriptor: to calculate padding and offset.
      static long CustomWhitelistForNodeFusion
      < By itself, MPSNNPaddingMethodCustom will inhibit automatic fusion between nodes producing and consuming the image described by the padding policy.
      static 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.
      static long Size_reserved  
      static long SizeFull
      < The result is the largest image for which *any* source pixel is valid for result pixels
      static long SizeMask  
      static long SizeSame
      < The result is the same size as the input image (before strides)
      static long SizeValidOnly
      < The result is the largest image for which *all* source pixels are valid for result pixels
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
      • 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
      • 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
      • Custom

        public static final long Custom
        < Use destinationImageDescriptorForSourceImages:sourceStates:forKernel:suggestedDescriptor: to calculate padding and offset.
        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