public class MPSCNNBatchNormalizationState extends MPSNNGradientState
MPSCNNBatchNormalizationState encapsulates the data necessary to execute batch normalization.
MPSCNNBatchNormalizationState cannot initialize the size of its own underlying resources. Use [MPSCNNBatchNormalizationStatistics resultStateForSourceImages:] or [MPSCNNBatchNormalizationStatistics temporaryResultStateForCommandBuffer:sourceImages:].
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
MPSCNNBatchNormalizationState(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static MPSCNNBatchNormalizationState |
alloc() |
static MPSCNNBatchNormalizationState |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
MPSCNNBatchNormalization |
batchNormalization() |
MTLBuffer |
beta()
Return an MTLBuffer object with the state's current beta values..
|
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
MTLBuffer |
gamma()
Return an MTLBuffer object with the state's current gamma values.
|
MTLBuffer |
gradientForBeta()
Return an MTLBuffer object containing the values of the gradient of the loss function
with respect to the bias terms.
|
MTLBuffer |
gradientForGamma()
Return an MTLBuffer object containing the values of the gradient of the loss function
with respect to the scale factors.
|
static long |
hash_static() |
MPSCNNBatchNormalizationState |
init() |
MPSCNNBatchNormalizationState |
initWithDeviceBufferSize(MTLDevice device,
long bufferSize) |
MPSCNNBatchNormalizationState |
initWithDeviceResourceList(MTLDevice device,
MPSStateResourceList resourceList)
Initialize a non-temporary state to hold a number of textures and buffers
|
MPSCNNBatchNormalizationState |
initWithDeviceTextureDescriptor(MTLDevice device,
MTLTextureDescriptor descriptor) |
MPSCNNBatchNormalizationState |
initWithResource(MTLResource resource)
Create a MPSState with a non-temporary MTLResource
|
MPSCNNBatchNormalizationState |
initWithResources(NSArray<?> resources)
Create a state object with a list of MTLResources
|
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
MTLBuffer |
mean()
Return an MTLBuffer object with the most recently computed batch mean values.
|
static MPSCNNBatchNormalizationState |
new_objc() |
void |
reset()
Reset any accumulated state data to its initial values.
|
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static MPSCNNBatchNormalizationState |
temporaryStateWithCommandBuffer(MTLCommandBuffer cmdBuf) |
static MPSCNNBatchNormalizationState |
temporaryStateWithCommandBufferBufferSize(MTLCommandBuffer cmdBuf,
long bufferSize) |
static MPSCNNBatchNormalizationState |
temporaryStateWithCommandBufferResourceList(MTLCommandBuffer commandBuffer,
MPSStateResourceList resourceList) |
static MPSCNNBatchNormalizationState |
temporaryStateWithCommandBufferTextureDescriptor(MTLCommandBuffer cmdBuf,
MTLTextureDescriptor descriptor) |
MTLBuffer |
variance()
Return an MTLBuffer object with the most recently computed batch variance values.
|
static long |
version_static() |
bufferSizeAtIndex, destinationImageDescriptorForSourceImagesSourceStatesForKernelSuggestedDescriptor, isTemporary, label, readCount, resource, resourceAtIndexAllocateMemory, resourceCount, resourceSize, resourceTypeAtIndex, setLabel, setReadCount, synchronizeOnCommandBuffer, textureInfoAtIndexaccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, removeObserverForKeyPath, removeObserverForKeyPathContext, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeyprotected MPSCNNBatchNormalizationState(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static MPSCNNBatchNormalizationState alloc()
public static MPSCNNBatchNormalizationState allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public MPSCNNBatchNormalization batchNormalization()
public MTLBuffer beta()
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public MTLBuffer gamma()
public MTLBuffer gradientForBeta()
public MTLBuffer gradientForGamma()
public static long hash_static()
public MPSCNNBatchNormalizationState init()
init in class MPSNNGradientStatepublic MPSCNNBatchNormalizationState initWithDeviceBufferSize(MTLDevice device, long bufferSize)
initWithDeviceBufferSize in class MPSNNGradientStatepublic MPSCNNBatchNormalizationState initWithDeviceResourceList(MTLDevice device, MPSStateResourceList resourceList)
MPSStateThe allocation of each resource will be deferred until it is needed. This occurs when -resource or -resourceAtIndex: is called.
initWithDeviceResourceList in class MPSNNGradientStateresourceList - The list of resources to create.public MPSCNNBatchNormalizationState initWithDeviceTextureDescriptor(MTLDevice device, MTLTextureDescriptor descriptor)
initWithDeviceTextureDescriptor in class MPSNNGradientStatepublic MPSCNNBatchNormalizationState initWithResource(MTLResource resource)
MPSStateinitWithResource in class MPSNNGradientStateresource - A MTLBuffer or MTLTexture. May be nil.public MPSCNNBatchNormalizationState initWithResources(NSArray<?> resources)
MPSStateBecause 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.
initWithResources in class MPSNNGradientStatepublic static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public MTLBuffer mean()
public static MPSCNNBatchNormalizationState new_objc()
public void reset()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static MPSCNNBatchNormalizationState temporaryStateWithCommandBuffer(MTLCommandBuffer cmdBuf)
public static MPSCNNBatchNormalizationState temporaryStateWithCommandBufferBufferSize(MTLCommandBuffer cmdBuf, long bufferSize)
public static MPSCNNBatchNormalizationState temporaryStateWithCommandBufferResourceList(MTLCommandBuffer commandBuffer, MPSStateResourceList resourceList)
public static MPSCNNBatchNormalizationState temporaryStateWithCommandBufferTextureDescriptor(MTLCommandBuffer cmdBuf, MTLTextureDescriptor descriptor)
public MTLBuffer variance()
public static long version_static()