Class MPSCNNNormalizationMeanAndVarianceState

  • All Implemented Interfaces:
    NSObject

    public class MPSCNNNormalizationMeanAndVarianceState
    extends MPSState
    MPSCNNNormalizationMeanAndVarianceState [@description] A state which contains mean and variance terms used to apply a normalization in a MPSCNNBatchNormalization operation.
    • Constructor Detail

      • MPSCNNNormalizationMeanAndVarianceState

        protected MPSCNNNormalizationMeanAndVarianceState​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • initWithMeanVariance

        public MPSCNNNormalizationMeanAndVarianceState initWithMeanVariance​(MTLBuffer mean,
                                                                            MTLBuffer variance)
        Initialize a MPSCNNNormalizationMeanAndVarianceState object using values contained in MTLBuffers.
        Parameters:
        mean - The MTLBuffer containing mean terms.
        variance - The MTLBuffer containing variance terms.
      • initWithResources

        public MPSCNNNormalizationMeanAndVarianceState initWithResources​(NSArray<?> resources)
        Description copied from class: MPSState
        Create a state object with a list of MTLResources Because MPS prefers deferred allocation of resources your application should use -initWithTextures:bufferSizes:bufferCount: whenever possible. This method is useful for cases when the MTLResources must be initialized by the CPU.
        Overrides:
        initWithResources in class MPSState
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • mean

        public MTLBuffer mean()
        [@property] mean A MTLBuffer containing the mean terms.
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • temporaryStateWithCommandBuffer

        public static java.lang.Object temporaryStateWithCommandBuffer​(MTLCommandBuffer cmdBuf)
      • temporaryStateWithCommandBufferBufferSize

        public static java.lang.Object temporaryStateWithCommandBufferBufferSize​(MTLCommandBuffer cmdBuf,
                                                                                 long bufferSize)
      • temporaryStateWithCommandBufferNumberOfFeatureChannels

        public static java.lang.Object temporaryStateWithCommandBufferNumberOfFeatureChannels​(MTLCommandBuffer commandBuffer,
                                                                                              long numberOfFeatureChannels)
        Create a temporary MPSCNNNormalizationMeanAndVarianceState suitable for a normalization operation on images containing no more than the specified number of feature channels.
        Parameters:
        commandBuffer - The command buffer on which the temporary state will be used.
        numberOfFeatureChannels - The number of feature channels used to size the state.
      • temporaryStateWithCommandBufferResourceList

        public static java.lang.Object temporaryStateWithCommandBufferResourceList​(MTLCommandBuffer commandBuffer,
                                                                                   MPSStateResourceList resourceList)
      • temporaryStateWithCommandBufferTextureDescriptor

        public static java.lang.Object temporaryStateWithCommandBufferTextureDescriptor​(MTLCommandBuffer cmdBuf,
                                                                                        MTLTextureDescriptor descriptor)
      • variance

        public MTLBuffer variance()
        [@property] variance A MTLBuffer containing the variance terms.
      • version_static

        public static long version_static()