Package apple.metalperformanceshaders
Class MPSNNOptimizerAdam
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.metalperformanceshaders.MPSKernel
-
- apple.metalperformanceshaders.MPSNNOptimizer
-
- apple.metalperformanceshaders.MPSNNOptimizerAdam
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSSecureCoding,NSObject
public class MPSNNOptimizerAdam extends MPSNNOptimizer
MPSNNOptimizerAdam The MPSNNOptimizerAdam performs an Adam Update Initialization time m[0] = 0 (Initialize initial 1st moment vector aka momentum, user is responsible for this) v[0] = 0 (Initialize initial 2nd moment vector aka velocity, user is responsible for this) t = 0 (Initialize timestep) https://arxiv.org/abs/1412.6980 At update time: t = t + 1 lr[t] = learningRate * sqrt(1 - beta2^t) / (1 - beta1^t) m[t] = beta1 * m[t-1] + (1 - beta1) * g v[t] = beta2 * v[t-1] + (1 - beta2) * (g ^ 2) variable = variable - lr[t] * m[t] / (sqrt(v[t]) + epsilon) where, g is gradient of error wrt variable v[t] is velocity m[t] is momentum API-Since: 12.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Block_accessibilityActivateBlock_ret, NSObject.Block_accessibilityActivationPointBlock_ret, NSObject.Block_accessibilityAttributedHintBlock_ret, NSObject.Block_accessibilityAttributedLabelBlock_ret, NSObject.Block_accessibilityAttributedUserInputLabelsBlock_ret, NSObject.Block_accessibilityAttributedValueBlock_ret, NSObject.Block_accessibilityContainerTypeBlock_ret, NSObject.Block_accessibilityCustomActionsBlock_ret, NSObject.Block_accessibilityCustomRotorsBlock_ret, NSObject.Block_accessibilityDecrementBlock_ret, NSObject.Block_accessibilityElementsBlock_ret, NSObject.Block_accessibilityElementsHiddenBlock_ret, NSObject.Block_accessibilityFrameBlock_ret, NSObject.Block_accessibilityHeaderElementsBlock_ret, NSObject.Block_accessibilityHintBlock_ret, NSObject.Block_accessibilityIdentifierBlock_ret, NSObject.Block_accessibilityIncrementBlock_ret, NSObject.Block_accessibilityLabelBlock_ret, NSObject.Block_accessibilityLanguageBlock_ret, NSObject.Block_accessibilityMagicTapBlock_ret, NSObject.Block_accessibilityNavigationStyleBlock_ret, NSObject.Block_accessibilityPathBlock_ret, NSObject.Block_accessibilityPerformEscapeBlock_ret, NSObject.Block_accessibilityRespondsToUserInteractionBlock_ret, NSObject.Block_accessibilityShouldGroupAccessibilityChildrenBlock_ret, NSObject.Block_accessibilityTextualContextBlock_ret, NSObject.Block_accessibilityTraitsBlock_ret, NSObject.Block_accessibilityUserInputLabelsBlock_ret, NSObject.Block_accessibilityValueBlock_ret, NSObject.Block_accessibilityViewIsModalBlock_ret, NSObject.Block_automationElementsBlock_ret, NSObject.Block_isAccessibilityElementBlock_ret, NSObject.Block_setAccessibilityActivateBlock, NSObject.Block_setAccessibilityActivationPointBlock, NSObject.Block_setAccessibilityAttributedHintBlock, NSObject.Block_setAccessibilityAttributedLabelBlock, NSObject.Block_setAccessibilityAttributedUserInputLabelsBlock, NSObject.Block_setAccessibilityAttributedValueBlock, NSObject.Block_setAccessibilityContainerTypeBlock, NSObject.Block_setAccessibilityCustomActionsBlock, NSObject.Block_setAccessibilityCustomRotorsBlock, NSObject.Block_setAccessibilityDecrementBlock, NSObject.Block_setAccessibilityElementsBlock, NSObject.Block_setAccessibilityElementsHiddenBlock, NSObject.Block_setAccessibilityFrameBlock, NSObject.Block_setAccessibilityHeaderElementsBlock, NSObject.Block_setAccessibilityHintBlock, NSObject.Block_setAccessibilityIdentifierBlock, NSObject.Block_setAccessibilityIncrementBlock, NSObject.Block_setAccessibilityLabelBlock, NSObject.Block_setAccessibilityLanguageBlock, NSObject.Block_setAccessibilityMagicTapBlock, NSObject.Block_setAccessibilityNavigationStyleBlock, NSObject.Block_setAccessibilityPathBlock, NSObject.Block_setAccessibilityPerformEscapeBlock, NSObject.Block_setAccessibilityRespondsToUserInteractionBlock, NSObject.Block_setAccessibilityShouldGroupAccessibilityChildrenBlock, NSObject.Block_setAccessibilityTextualContextBlock, NSObject.Block_setAccessibilityTraitsBlock, NSObject.Block_setAccessibilityUserInputLabelsBlock, NSObject.Block_setAccessibilityValueBlock, NSObject.Block_setAccessibilityViewIsModalBlock, NSObject.Block_setAutomationElementsBlock, NSObject.Block_setIsAccessibilityElementBlock, NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMPSNNOptimizerAdam(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()static MPSNNOptimizerAdamalloc()static MPSNNOptimizerAdamallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static booleanautomaticallyNotifiesObserversForKey(@NotNull java.lang.String key)doublebeta1()[@property] beta1 The beta1 at which we update values Default value is 0.9doublebeta2()[@property] beta2 The beta2 at which we update values Default value is 0.999static voidcancelPreviousPerformRequestsWithTarget(@NotNull java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull java.lang.Object aTarget, @NotNull org.moe.natj.objc.SEL aSelector, @Nullable java.lang.Object anArgument)static @NotNull NSArray<java.lang.String>classFallbacksForKeyedArchiver()static @NotNull org.moe.natj.objc.ClassclassForKeyedUnarchiver()static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voidencodeToCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(@NotNull MTLCommandBuffer commandBuffer, @NotNull MPSCNNBatchNormalizationState batchNormalizationGradientState, @NotNull MPSCNNBatchNormalizationState batchNormalizationSourceState, @NotNull NSArray<? extends MPSVector> inputMomentumVectors, @NotNull NSArray<? extends MPSVector> inputVelocityVectors, @Nullable NSArray<? extends MPSVector> maximumVelocityVectors, @NotNull MPSCNNNormalizationGammaAndBetaState resultState)Encode an AMSGrad variant of MPSNNOptimizerAdam object to a command buffer to perform out of place update The following operations would be applied At update time: t = t + 1 lr[t] = learningRate * sqrt(1 - beta2^t) / (1 - beta1^t) m[t] = beta1 * m[t-1] + (1 - beta1) * g v[t] = beta2 * v[t-1] + (1 - beta2) * (g ^ 2) maxVel[t] = max(maxVel[t-1],v[t]) variable = variable - lr[t] * m[t] / (sqrt(maxVel[t]) + epsilon) API-Since: 13.0voidencodeToCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsInputVelocityVectorsResultState(@NotNull MTLCommandBuffer commandBuffer, @NotNull MPSCNNBatchNormalizationState batchNormalizationGradientState, @NotNull MPSCNNBatchNormalizationState batchNormalizationSourceState, @Nullable NSArray<? extends MPSVector> inputMomentumVectors, @Nullable NSArray<? extends MPSVector> inputVelocityVectors, @NotNull MPSCNNNormalizationGammaAndBetaState resultState)Encode an MPSNNOptimizerAdam object to a command buffer to perform out of place update The following operations would be applied t = t + 1 lr[t] = learningRate * sqrt(1 - beta2^t) / (1 - beta1^t) m[t] = beta1 * m[t-1] + (1 - beta1) * g v[t] = beta2 * v[t-1] + (1 - beta2) * (g ^ 2) variable = variable - lr[t] * m[t] / (sqrt(v[t]) + epsilon)voidencodeToCommandBufferBatchNormalizationStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(@NotNull MTLCommandBuffer commandBuffer, @NotNull MPSCNNBatchNormalizationState batchNormalizationState, @NotNull NSArray<? extends MPSVector> inputMomentumVectors, @NotNull NSArray<? extends MPSVector> inputVelocityVectors, @Nullable NSArray<? extends MPSVector> maximumVelocityVectors, @NotNull MPSCNNNormalizationGammaAndBetaState resultState)Encode an AMSGrad variant of MPSNNOptimizerAdam object to a command buffer to perform out of place update The following operations would be applied At update time: t = t + 1 lr[t] = learningRate * sqrt(1 - beta2^t) / (1 - beta1^t) m[t] = beta1 * m[t-1] + (1 - beta1) * g v[t] = beta2 * v[t-1] + (1 - beta2) * (g ^ 2) maxVel[t] = max(maxVel[t-1],v[t]) variable = variable - lr[t] * m[t] / (sqrt(maxVel[t]) + epsilon) API-Since: 13.0voidencodeToCommandBufferBatchNormalizationStateInputMomentumVectorsInputVelocityVectorsResultState(@NotNull MTLCommandBuffer commandBuffer, @NotNull MPSCNNBatchNormalizationState batchNormalizationState, @Nullable NSArray<? extends MPSVector> inputMomentumVectors, @Nullable NSArray<? extends MPSVector> inputVelocityVectors, @NotNull MPSCNNNormalizationGammaAndBetaState resultState)Encode an MPSNNOptimizerAdam object to a command buffer to perform out of place update The following operations would be applied t = t + 1 lr[t] = learningRate * sqrt(1 - beta2^t) / (1 - beta1^t) m[t] = beta1 * m[t-1] + (1 - beta1) * g v[t] = beta2 * v[t-1] + (1 - beta2) * (g ^ 2) variable = variable - lr[t] * m[t] / (sqrt(v[t]) + epsilon)voidencodeToCommandBufferConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(@NotNull MTLCommandBuffer commandBuffer, @NotNull MPSCNNConvolutionGradientState convolutionGradientState, @NotNull MPSCNNConvolutionWeightsAndBiasesState convolutionSourceState, @NotNull NSArray<? extends MPSVector> inputMomentumVectors, @NotNull NSArray<? extends MPSVector> inputVelocityVectors, @Nullable NSArray<? extends MPSVector> maximumVelocityVectors, @NotNull MPSCNNConvolutionWeightsAndBiasesState resultState)Encode an AMSGrad variant of MPSNNOptimizerAdam object to a command buffer to perform out of place update The following operations would be applied At update time: t = t + 1 lr[t] = learningRate * sqrt(1 - beta2^t) / (1 - beta1^t) m[t] = beta1 * m[t-1] + (1 - beta1) * g v[t] = beta2 * v[t-1] + (1 - beta2) * (g ^ 2) maxVel[t] = max(maxVel[t-1],v[t]) variable = variable - lr[t] * m[t] / (sqrt(maxVel[t]) + epsilon) API-Since: 13.0voidencodeToCommandBufferConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsInputVelocityVectorsResultState(@NotNull MTLCommandBuffer commandBuffer, @NotNull MPSCNNConvolutionGradientState convolutionGradientState, @NotNull MPSCNNConvolutionWeightsAndBiasesState convolutionSourceState, @Nullable NSArray<? extends MPSVector> inputMomentumVectors, @Nullable NSArray<? extends MPSVector> inputVelocityVectors, @NotNull MPSCNNConvolutionWeightsAndBiasesState resultState)Encode an MPSNNOptimizerAdam object to a command buffer to perform out of place update The following operations would be applied t = t + 1 lr[t] = learningRate * sqrt(1 - beta2^t) / (1 - beta1^t) m[t] = beta1 * m[t-1] + (1 - beta1) * g v[t] = beta2 * v[t-1] + (1 - beta2) * (g ^ 2) variable = variable - lr[t] * m[t] / (sqrt(v[t]) + epsilon)voidencodeToCommandBufferInputGradientMatrixInputValuesMatrixInputMomentumMatrixInputVelocityMatrixMaximumVelocityMatrixResultValuesMatrix(@NotNull MTLCommandBuffer commandBuffer, @NotNull MPSMatrix inputGradientMatrix, @NotNull MPSMatrix inputValuesMatrix, @NotNull MPSMatrix inputMomentumMatrix, @NotNull MPSMatrix inputVelocityMatrix, @Nullable MPSMatrix maximumVelocityMatrix, @NotNull MPSMatrix resultValuesMatrix)API-Since: 13.0voidencodeToCommandBufferInputGradientMatrixInputValuesMatrixInputMomentumMatrixInputVelocityMatrixResultValuesMatrix(@NotNull MTLCommandBuffer commandBuffer, @NotNull MPSMatrix inputGradientMatrix, @NotNull MPSMatrix inputValuesMatrix, @NotNull MPSMatrix inputMomentumMatrix, @NotNull MPSMatrix inputVelocityMatrix, @NotNull MPSMatrix resultValuesMatrix)API-Since: 13.0voidencodeToCommandBufferInputGradientVectorInputValuesVectorInputMomentumVectorInputVelocityVectorMaximumVelocityVectorResultValuesVector(@NotNull MTLCommandBuffer commandBuffer, @NotNull MPSVector inputGradientVector, @NotNull MPSVector inputValuesVector, @NotNull MPSVector inputMomentumVector, @NotNull MPSVector inputVelocityVector, @Nullable MPSVector maximumVelocityVector, @NotNull MPSVector resultValuesVector)Encode an AMSGrad variant of MPSNNOptimizerAdam object to a command buffer to perform out of place update The following operations would be applied At update time: t = t + 1 lr[t] = learningRate * sqrt(1 - beta2^t) / (1 - beta1^t) m[t] = beta1 * m[t-1] + (1 - beta1) * g v[t] = beta2 * v[t-1] + (1 - beta2) * (g ^ 2) maxVel[t] = max(maxVel[t-1],v[t]) variable = variable - lr[t] * m[t] / (sqrt(maxVel[t]) + epsilon) API-Since: 13.0voidencodeToCommandBufferInputGradientVectorInputValuesVectorInputMomentumVectorInputVelocityVectorResultValuesVector(@NotNull MTLCommandBuffer commandBuffer, @NotNull MPSVector inputGradientVector, @NotNull MPSVector inputValuesVector, @NotNull MPSVector inputMomentumVector, @NotNull MPSVector inputVelocityVector, @NotNull MPSVector resultValuesVector)Encode an MPSNNOptimizerAdam object to a command buffer to perform out of place update The following operations would be applied t = t + 1 lr[t] = learningRate * sqrt(1 - beta2^t) / (1 - beta1^t) m[t] = beta1 * m[t-1] + (1 - beta1) * g v[t] = beta2 * v[t-1] + (1 - beta2) * (g ^ 2) variable = variable - lr[t] * m[t] / (sqrt(v[t]) + epsilon)floatepsilon()[@property] epsilon The epsilon at which we update values This value is usually used to ensure to avoid divide by 0, default value is 1e-8static longhash_static()MPSNNOptimizerAdaminit()MPSNNOptimizerAdaminitWithCoder(@NotNull NSCoder aDecoder)NS_DESIGNATED_INITIALIZERMPSNNOptimizerAdaminitWithCoderDevice(@NotNull NSCoder aDecoder, @NotNull java.lang.Object device)NSSecureCoding compatability While the standard NSSecureCoding/NSCoding method -initWithCoder: should work, since the file can't know which device your data is allocated on, we have to guess and may guess incorrectly.MPSNNOptimizerAdaminitWithDevice(@NotNull java.lang.Object device)Standard init with default properties per filter typeMPSNNOptimizerAdaminitWithDeviceBeta1Beta2EpsilonTimeStepOptimizerDescriptor(@NotNull MTLDevice device, double beta1, double beta2, float epsilon, long timeStep, @NotNull MPSNNOptimizerDescriptor optimizerDescriptor)Full initialization for the adam updateMPSNNOptimizerAdaminitWithDeviceLearningRate(@NotNull MTLDevice device, float learningRate)Convenience initialization for the adam updatestatic NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static @NotNull NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(@NotNull java.lang.String key)static MPSNNOptimizerAdamnew_objc()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)voidsetTimeStep(long value)[@property] timeStep Current timeStep for the update, number of times update has occurredstatic voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()longtimeStep()[@property] timeStep Current timeStep for the update, number of times update has occurredstatic booleanuseStoredAccessor()Deprecated.static longversion_static()-
Methods inherited from class apple.metalperformanceshaders.MPSNNOptimizer
applyGradientClipping, gradientClipMax, gradientClipMin, gradientRescale, learningRate, regularizationScale, regularizationType, setApplyGradientClipping, setLearningRate
-
Methods inherited from class apple.metalperformanceshaders.MPSKernel
copyWithZone, copyWithZoneDevice, device, encodeWithCoder, label, options, setLabel, setOptions
-
Methods inherited from class apple.NSObject
accessibilityActivate, accessibilityActivateBlock, accessibilityActivationPoint, accessibilityActivationPointBlock, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedHintBlock, accessibilityAttributedLabel, accessibilityAttributedLabelBlock, accessibilityAttributedUserInputLabels, accessibilityAttributedUserInputLabelsBlock, accessibilityAttributedValue, accessibilityAttributedValueBlock, accessibilityContainerType, accessibilityContainerTypeBlock, accessibilityCustomActions, accessibilityCustomActionsBlock, accessibilityCustomRotors, accessibilityCustomRotorsBlock, accessibilityDecrement, accessibilityDecrementBlock, accessibilityDirectTouchOptions, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsBlock, accessibilityElementsHidden, accessibilityElementsHiddenBlock, accessibilityFrame, accessibilityFrameBlock, accessibilityHeaderElementsBlock, accessibilityHint, accessibilityHintBlock, accessibilityIdentifierBlock, accessibilityIncrement, accessibilityIncrementBlock, accessibilityLabel, accessibilityLabelBlock, accessibilityLanguage, accessibilityLanguageBlock, accessibilityMagicTapBlock, accessibilityNavigationStyle, accessibilityNavigationStyleBlock, accessibilityPath, accessibilityPathBlock, accessibilityPerformEscape, accessibilityPerformEscapeBlock, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityRespondsToUserInteractionBlock, accessibilityScroll, accessibilityShouldGroupAccessibilityChildrenBlock, accessibilityTextualContext, accessibilityTextualContextBlock, accessibilityTraits, accessibilityTraitsBlock, accessibilityUserInputLabels, accessibilityUserInputLabelsBlock, accessibilityValue, accessibilityValueBlock, accessibilityViewIsModal, accessibilityViewIsModalBlock, accessibilityZoomInAtPoint, accessibilityZoomOutAtPoint, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, automationElements, automationElementsBlock, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, hash, indexOfAccessibilityElement, isAccessibilityElement, isAccessibilityElementBlock, 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, setAccessibilityActivateBlock, setAccessibilityActivationPoint, setAccessibilityActivationPointBlock, setAccessibilityAttributedHint, setAccessibilityAttributedHintBlock, setAccessibilityAttributedLabel, setAccessibilityAttributedLabelBlock, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedUserInputLabelsBlock, setAccessibilityAttributedValue, setAccessibilityAttributedValueBlock, setAccessibilityContainerType, setAccessibilityContainerTypeBlock, setAccessibilityCustomActions, setAccessibilityCustomActionsBlock, setAccessibilityCustomRotors, setAccessibilityCustomRotorsBlock, setAccessibilityDecrementBlock, setAccessibilityDirectTouchOptions, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsBlock, setAccessibilityElementsHidden, setAccessibilityElementsHiddenBlock, setAccessibilityFrame, setAccessibilityFrameBlock, setAccessibilityHeaderElementsBlock, setAccessibilityHint, setAccessibilityHintBlock, setAccessibilityIdentifierBlock, setAccessibilityIncrementBlock, setAccessibilityLabel, setAccessibilityLabelBlock, setAccessibilityLanguage, setAccessibilityLanguageBlock, setAccessibilityMagicTapBlock, setAccessibilityNavigationStyle, setAccessibilityNavigationStyleBlock, setAccessibilityPath, setAccessibilityPathBlock, setAccessibilityPerformEscapeBlock, setAccessibilityRespondsToUserInteraction, setAccessibilityRespondsToUserInteractionBlock, setAccessibilityShouldGroupAccessibilityChildrenBlock, setAccessibilityTextualContext, setAccessibilityTextualContextBlock, setAccessibilityTraits, setAccessibilityTraitsBlock, setAccessibilityUserInputLabels, setAccessibilityUserInputLabelsBlock, setAccessibilityValue, setAccessibilityValueBlock, setAccessibilityViewIsModal, setAccessibilityViewIsModalBlock, setAutomationElements, setAutomationElementsBlock, setIsAccessibilityElement, setIsAccessibilityElementBlock, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, storedValueForKey, superclass, takeStoredValueForKey, takeValueForKey, takeValueForKeyPath, takeValuesFromDictionary, unableToSetNilForKey, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, valuesForKeys, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static MPSNNOptimizerAdam alloc()
-
allocWithZone
public static MPSNNOptimizerAdam allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
automaticallyNotifiesObserversForKey
public static boolean automaticallyNotifiesObserversForKey(@NotNull @NotNull java.lang.String key)
-
beta1
public double beta1()
[@property] beta1 The beta1 at which we update values Default value is 0.9
-
beta2
public double beta2()
[@property] beta2 The beta2 at which we update values Default value is 0.999
-
cancelPreviousPerformRequestsWithTarget
public static void cancelPreviousPerformRequestsWithTarget(@NotNull @NotNull java.lang.Object aTarget)
-
cancelPreviousPerformRequestsWithTargetSelectorObject
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(@NotNull @NotNull java.lang.Object aTarget, @NotNull @NotNull org.moe.natj.objc.SEL aSelector, @Nullable @Nullable java.lang.Object anArgument)
-
classFallbacksForKeyedArchiver
@NotNull public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
-
classForKeyedUnarchiver
@NotNull public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
description_static
public static java.lang.String description_static()
-
encodeToCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState
public void encodeToCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(@NotNull @NotNull MTLCommandBuffer commandBuffer, @NotNull @NotNull MPSCNNBatchNormalizationState batchNormalizationGradientState, @NotNull @NotNull MPSCNNBatchNormalizationState batchNormalizationSourceState, @NotNull @NotNull NSArray<? extends MPSVector> inputMomentumVectors, @NotNull @NotNull NSArray<? extends MPSVector> inputVelocityVectors, @Nullable @Nullable NSArray<? extends MPSVector> maximumVelocityVectors, @NotNull @NotNull MPSCNNNormalizationGammaAndBetaState resultState)Encode an AMSGrad variant of MPSNNOptimizerAdam object to a command buffer to perform out of place update The following operations would be applied At update time: t = t + 1 lr[t] = learningRate * sqrt(1 - beta2^t) / (1 - beta1^t) m[t] = beta1 * m[t-1] + (1 - beta1) * g v[t] = beta2 * v[t-1] + (1 - beta2) * (g ^ 2) maxVel[t] = max(maxVel[t-1],v[t]) variable = variable - lr[t] * m[t] / (sqrt(maxVel[t]) + epsilon) API-Since: 13.0- Parameters:
commandBuffer- A valid MTLCommandBuffer to receive the encoded kernel.batchNormalizationGradientState- A valid MPSCNNBatchNormalizationState object which specifies the input state with gradients for this update.batchNormalizationSourceState- A valid MPSCNNBatchNormalizationState object which specifies the input state with original gamma/beta for this update.inputMomentumVectors- An array MPSVector object which specifies the gradient momentum vectors which will be updated and overwritten. The index 0 corresponds to gamma, index 1 corresponds to beta, array can be of size 1 in which case beta won't be updatedinputVelocityVectors- An array MPSVector object which specifies the gradient velocity vectors which will be updated and overwritten. The index 0 corresponds to gamma, index 1 corresponds to beta, array can be of size 1 in which case beta won't be updatedmaximumVelocityVectors- An array MPSVector object which specifies the maximum velocity vectors which will be updated and overwritten. The index 0 corresponds to weights, index 1 corresponds to biases, array can be of size 1 in which case biases won't be updated. May be nil, if nil then normal Adam optimizer behaviour is followed.resultState- A valid MPSCNNNormalizationGammaAndBetaState object which specifies the resultValues state which will be updated and overwritten.
-
encodeToCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsInputVelocityVectorsResultState
public void encodeToCommandBufferBatchNormalizationGradientStateBatchNormalizationSourceStateInputMomentumVectorsInputVelocityVectorsResultState(@NotNull @NotNull MTLCommandBuffer commandBuffer, @NotNull @NotNull MPSCNNBatchNormalizationState batchNormalizationGradientState, @NotNull @NotNull MPSCNNBatchNormalizationState batchNormalizationSourceState, @Nullable @Nullable NSArray<? extends MPSVector> inputMomentumVectors, @Nullable @Nullable NSArray<? extends MPSVector> inputVelocityVectors, @NotNull @NotNull MPSCNNNormalizationGammaAndBetaState resultState)Encode an MPSNNOptimizerAdam object to a command buffer to perform out of place update The following operations would be applied t = t + 1 lr[t] = learningRate * sqrt(1 - beta2^t) / (1 - beta1^t) m[t] = beta1 * m[t-1] + (1 - beta1) * g v[t] = beta2 * v[t-1] + (1 - beta2) * (g ^ 2) variable = variable - lr[t] * m[t] / (sqrt(v[t]) + epsilon)- Parameters:
commandBuffer- A valid MTLCommandBuffer to receive the encoded kernel.batchNormalizationGradientState- A valid MPSCNNBatchNormalizationState object which specifies the input state with gradients for this update.batchNormalizationSourceState- A valid MPSCNNBatchNormalizationState object which specifies the input state with original gamma/beta for this update.inputMomentumVectors- An array MPSVector object which specifies the gradient momentum vectors which will be updated and overwritten. The index 0 corresponds to gamma, index 1 corresponds to beta, array can be of size 1 in which case beta won't be updatedinputVelocityVectors- An array MPSVector object which specifies the gradient velocity vectors which will be updated and overwritten. The index 0 corresponds to gamma, index 1 corresponds to beta, array can be of size 1 in which case beta won't be updatedresultState- A valid MPSCNNNormalizationGammaAndBetaState object which specifies the resultValues state which will be updated and overwritten.
-
encodeToCommandBufferBatchNormalizationStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState
public void encodeToCommandBufferBatchNormalizationStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(@NotNull @NotNull MTLCommandBuffer commandBuffer, @NotNull @NotNull MPSCNNBatchNormalizationState batchNormalizationState, @NotNull @NotNull NSArray<? extends MPSVector> inputMomentumVectors, @NotNull @NotNull NSArray<? extends MPSVector> inputVelocityVectors, @Nullable @Nullable NSArray<? extends MPSVector> maximumVelocityVectors, @NotNull @NotNull MPSCNNNormalizationGammaAndBetaState resultState)Encode an AMSGrad variant of MPSNNOptimizerAdam object to a command buffer to perform out of place update The following operations would be applied At update time: t = t + 1 lr[t] = learningRate * sqrt(1 - beta2^t) / (1 - beta1^t) m[t] = beta1 * m[t-1] + (1 - beta1) * g v[t] = beta2 * v[t-1] + (1 - beta2) * (g ^ 2) maxVel[t] = max(maxVel[t-1],v[t]) variable = variable - lr[t] * m[t] / (sqrt(maxVel[t]) + epsilon) API-Since: 13.0- Parameters:
commandBuffer- A valid MTLCommandBuffer to receive the encoded kernel.batchNormalizationState- A valid MPSCNNBatchNormalizationState object which specifies the input state with gradients and original gamma/beta for this update.inputMomentumVectors- An array MPSVector object which specifies the gradient momentum vectors which will be updated and overwritten. The index 0 corresponds to gamma, index 1 corresponds to beta, array can be of size 1 in which case beta won't be updatedinputVelocityVectors- An array MPSVector object which specifies the gradient velocity vectors which will be updated and overwritten. The index 0 corresponds to gamma, index 1 corresponds to beta, array can be of size 1 in which case beta won't be updatedmaximumVelocityVectors- An array MPSVector object which specifies the maximum velocity vectors which will be updated and overwritten. The index 0 corresponds to weights, index 1 corresponds to biases, array can be of size 1 in which case biases won't be updated. May be nil, if nil then normal Adam optimizer behaviour is followed.resultState- A valid MPSCNNNormalizationGammaAndBetaState object which specifies the resultValues state which will be updated and overwritten.
-
encodeToCommandBufferBatchNormalizationStateInputMomentumVectorsInputVelocityVectorsResultState
public void encodeToCommandBufferBatchNormalizationStateInputMomentumVectorsInputVelocityVectorsResultState(@NotNull @NotNull MTLCommandBuffer commandBuffer, @NotNull @NotNull MPSCNNBatchNormalizationState batchNormalizationState, @Nullable @Nullable NSArray<? extends MPSVector> inputMomentumVectors, @Nullable @Nullable NSArray<? extends MPSVector> inputVelocityVectors, @NotNull @NotNull MPSCNNNormalizationGammaAndBetaState resultState)Encode an MPSNNOptimizerAdam object to a command buffer to perform out of place update The following operations would be applied t = t + 1 lr[t] = learningRate * sqrt(1 - beta2^t) / (1 - beta1^t) m[t] = beta1 * m[t-1] + (1 - beta1) * g v[t] = beta2 * v[t-1] + (1 - beta2) * (g ^ 2) variable = variable - lr[t] * m[t] / (sqrt(v[t]) + epsilon)- Parameters:
commandBuffer- A valid MTLCommandBuffer to receive the encoded kernel.batchNormalizationState- A valid MPSCNNBatchNormalizationState object which specifies the input state with gradients and original gamma/beta for this update.inputMomentumVectors- An array MPSVector object which specifies the gradient momentum vectors which will be updated and overwritten. The index 0 corresponds to gamma, index 1 corresponds to beta, array can be of size 1 in which case beta won't be updatedinputVelocityVectors- An array MPSVector object which specifies the gradient velocity vectors which will be updated and overwritten. The index 0 corresponds to gamma, index 1 corresponds to beta, array can be of size 1 in which case beta won't be updatedresultState- A valid MPSCNNNormalizationGammaAndBetaState object which specifies the resultValues state which will be updated and overwritten.
-
encodeToCommandBufferConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState
public void encodeToCommandBufferConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsInputVelocityVectorsMaximumVelocityVectorsResultState(@NotNull @NotNull MTLCommandBuffer commandBuffer, @NotNull @NotNull MPSCNNConvolutionGradientState convolutionGradientState, @NotNull @NotNull MPSCNNConvolutionWeightsAndBiasesState convolutionSourceState, @NotNull @NotNull NSArray<? extends MPSVector> inputMomentumVectors, @NotNull @NotNull NSArray<? extends MPSVector> inputVelocityVectors, @Nullable @Nullable NSArray<? extends MPSVector> maximumVelocityVectors, @NotNull @NotNull MPSCNNConvolutionWeightsAndBiasesState resultState)Encode an AMSGrad variant of MPSNNOptimizerAdam object to a command buffer to perform out of place update The following operations would be applied At update time: t = t + 1 lr[t] = learningRate * sqrt(1 - beta2^t) / (1 - beta1^t) m[t] = beta1 * m[t-1] + (1 - beta1) * g v[t] = beta2 * v[t-1] + (1 - beta2) * (g ^ 2) maxVel[t] = max(maxVel[t-1],v[t]) variable = variable - lr[t] * m[t] / (sqrt(maxVel[t]) + epsilon) API-Since: 13.0- Parameters:
commandBuffer- A valid MTLCommandBuffer to receive the encoded kernel.convolutionGradientState- A valid MPSCNNConvolutionGradientState object which specifies the input state with gradients for this update.convolutionSourceState- A valid MPSCNNConvolutionWeightsAndBiasesState object which specifies the input state with values to be updated.inputMomentumVectors- An array MPSVector object which specifies the gradient momentum vectors which will be updated and overwritten. The index 0 corresponds to weights, index 1 corresponds to biases, array can be of size 1 in which case biases won't be updatedinputVelocityVectors- An array MPSVector object which specifies the gradient velocity vectors which will be updated and overwritten. The index 0 corresponds to weights, index 1 corresponds to biases, array can be of size 1 in which case biases won't be updatedmaximumVelocityVectors- An array MPSVector object which specifies the maximum velocity vectors which will be updated and overwritten. The index 0 corresponds to weights, index 1 corresponds to biases, array can be of size 1 in which case biases won't be updated. May be nil, if nil then normal Adam optimizer behaviour is followed.resultState- A valid MPSCNNConvolutionWeightsAndBiasesState object which specifies the resultValues state which will be updated and overwritten.
-
encodeToCommandBufferConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsInputVelocityVectorsResultState
public void encodeToCommandBufferConvolutionGradientStateConvolutionSourceStateInputMomentumVectorsInputVelocityVectorsResultState(@NotNull @NotNull MTLCommandBuffer commandBuffer, @NotNull @NotNull MPSCNNConvolutionGradientState convolutionGradientState, @NotNull @NotNull MPSCNNConvolutionWeightsAndBiasesState convolutionSourceState, @Nullable @Nullable NSArray<? extends MPSVector> inputMomentumVectors, @Nullable @Nullable NSArray<? extends MPSVector> inputVelocityVectors, @NotNull @NotNull MPSCNNConvolutionWeightsAndBiasesState resultState)Encode an MPSNNOptimizerAdam object to a command buffer to perform out of place update The following operations would be applied t = t + 1 lr[t] = learningRate * sqrt(1 - beta2^t) / (1 - beta1^t) m[t] = beta1 * m[t-1] + (1 - beta1) * g v[t] = beta2 * v[t-1] + (1 - beta2) * (g ^ 2) variable = variable - lr[t] * m[t] / (sqrt(v[t]) + epsilon)- Parameters:
commandBuffer- A valid MTLCommandBuffer to receive the encoded kernel.convolutionGradientState- A valid MPSCNNConvolutionGradientState object which specifies the input state with gradients for this update.convolutionSourceState- A valid MPSCNNConvolutionWeightsAndBiasesState object which specifies the input state with values to be updated.inputMomentumVectors- An array MPSVector object which specifies the gradient momentum vectors which will be updated and overwritten. The index 0 corresponds to weights, index 1 corresponds to biases, array can be of size 1 in which case biases won't be updatedinputVelocityVectors- An array MPSVector object which specifies the gradient velocity vectors which will be updated and overwritten. The index 0 corresponds to weights, index 1 corresponds to biases, array can be of size 1 in which case biases won't be updatedresultState- A valid MPSCNNConvolutionWeightsAndBiasesState object which specifies the resultValues state which will be updated and overwritten.
-
encodeToCommandBufferInputGradientMatrixInputValuesMatrixInputMomentumMatrixInputVelocityMatrixMaximumVelocityMatrixResultValuesMatrix
public void encodeToCommandBufferInputGradientMatrixInputValuesMatrixInputMomentumMatrixInputVelocityMatrixMaximumVelocityMatrixResultValuesMatrix(@NotNull @NotNull MTLCommandBuffer commandBuffer, @NotNull @NotNull MPSMatrix inputGradientMatrix, @NotNull @NotNull MPSMatrix inputValuesMatrix, @NotNull @NotNull MPSMatrix inputMomentumMatrix, @NotNull @NotNull MPSMatrix inputVelocityMatrix, @Nullable @Nullable MPSMatrix maximumVelocityMatrix, @NotNull @NotNull MPSMatrix resultValuesMatrix)API-Since: 13.0
-
encodeToCommandBufferInputGradientMatrixInputValuesMatrixInputMomentumMatrixInputVelocityMatrixResultValuesMatrix
public void encodeToCommandBufferInputGradientMatrixInputValuesMatrixInputMomentumMatrixInputVelocityMatrixResultValuesMatrix(@NotNull @NotNull MTLCommandBuffer commandBuffer, @NotNull @NotNull MPSMatrix inputGradientMatrix, @NotNull @NotNull MPSMatrix inputValuesMatrix, @NotNull @NotNull MPSMatrix inputMomentumMatrix, @NotNull @NotNull MPSMatrix inputVelocityMatrix, @NotNull @NotNull MPSMatrix resultValuesMatrix)API-Since: 13.0
-
encodeToCommandBufferInputGradientVectorInputValuesVectorInputMomentumVectorInputVelocityVectorMaximumVelocityVectorResultValuesVector
public void encodeToCommandBufferInputGradientVectorInputValuesVectorInputMomentumVectorInputVelocityVectorMaximumVelocityVectorResultValuesVector(@NotNull @NotNull MTLCommandBuffer commandBuffer, @NotNull @NotNull MPSVector inputGradientVector, @NotNull @NotNull MPSVector inputValuesVector, @NotNull @NotNull MPSVector inputMomentumVector, @NotNull @NotNull MPSVector inputVelocityVector, @Nullable @Nullable MPSVector maximumVelocityVector, @NotNull @NotNull MPSVector resultValuesVector)Encode an AMSGrad variant of MPSNNOptimizerAdam object to a command buffer to perform out of place update The following operations would be applied At update time: t = t + 1 lr[t] = learningRate * sqrt(1 - beta2^t) / (1 - beta1^t) m[t] = beta1 * m[t-1] + (1 - beta1) * g v[t] = beta2 * v[t-1] + (1 - beta2) * (g ^ 2) maxVel[t] = max(maxVel[t-1],v[t]) variable = variable - lr[t] * m[t] / (sqrt(maxVel[t]) + epsilon) API-Since: 13.0- Parameters:
commandBuffer- A valid MTLCommandBuffer to receive the encoded kernel.inputGradientVector- A valid MPSVector object which specifies the input vector of gradients for this update.inputValuesVector- A valid MPSVector object which specifies the input vector of values to be updated.inputMomentumVector- A valid MPSVector object which specifies the gradient momentum vector which will be updated and overwritten.inputVelocityVector- A valid MPSVector object which specifies the gradient velocity vector which will be updated and overwritten.maximumVelocityVector- A valid MPSVector object which specifies the maximum velocity vector which will be updated and overwritten. May be nil, if nil then normal Adam optimizer behaviour is followed.resultValuesVector- A valid MPSCNNConvolutionWeightsAndBiasesState object which specifies the resultValues state which will be updated and overwritten.
-
encodeToCommandBufferInputGradientVectorInputValuesVectorInputMomentumVectorInputVelocityVectorResultValuesVector
public void encodeToCommandBufferInputGradientVectorInputValuesVectorInputMomentumVectorInputVelocityVectorResultValuesVector(@NotNull @NotNull MTLCommandBuffer commandBuffer, @NotNull @NotNull MPSVector inputGradientVector, @NotNull @NotNull MPSVector inputValuesVector, @NotNull @NotNull MPSVector inputMomentumVector, @NotNull @NotNull MPSVector inputVelocityVector, @NotNull @NotNull MPSVector resultValuesVector)Encode an MPSNNOptimizerAdam object to a command buffer to perform out of place update The following operations would be applied t = t + 1 lr[t] = learningRate * sqrt(1 - beta2^t) / (1 - beta1^t) m[t] = beta1 * m[t-1] + (1 - beta1) * g v[t] = beta2 * v[t-1] + (1 - beta2) * (g ^ 2) variable = variable - lr[t] * m[t] / (sqrt(v[t]) + epsilon)- Parameters:
commandBuffer- A valid MTLCommandBuffer to receive the encoded kernel.inputGradientVector- A valid MPSVector object which specifies the input vector of gradients for this update.inputValuesVector- A valid MPSVector object which specifies the input vector of values to be updated.inputMomentumVector- A valid MPSVector object which specifies the gradient momentum vector which will be updated and overwritten.inputVelocityVector- A valid MPSVector object which specifies the gradient velocity vector which will be updated and overwritten.resultValuesVector- A valid MPSVector object which specifies the resultValues vector which will be updated and overwritten.
-
epsilon
public float epsilon()
[@property] epsilon The epsilon at which we update values This value is usually used to ensure to avoid divide by 0, default value is 1e-8
-
hash_static
public static long hash_static()
-
init
public MPSNNOptimizerAdam init()
- Overrides:
initin classMPSNNOptimizer
-
initWithCoder
public MPSNNOptimizerAdam initWithCoder(@NotNull @NotNull NSCoder aDecoder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding- Overrides:
initWithCoderin classMPSNNOptimizer
-
initWithCoderDevice
public MPSNNOptimizerAdam initWithCoderDevice(@NotNull @NotNull NSCoder aDecoder, @NotNull @NotNull java.lang.Object device)
Description copied from class:MPSKernelNSSecureCoding compatability While the standard NSSecureCoding/NSCoding method -initWithCoder: should work, since the file can't know which device your data is allocated on, we have to guess and may guess incorrectly. To avoid that problem, use initWithCoder:device instead.- Overrides:
initWithCoderDevicein classMPSNNOptimizer- Parameters:
aDecoder- The NSCoder subclass with your serialized MPSKerneldevice- The MTLDevice on which to make the MPSKernel- Returns:
- A new MPSKernel object, or nil if failure. API-Since: 11.0
-
initWithDevice
public MPSNNOptimizerAdam initWithDevice(@NotNull @NotNull java.lang.Object device)
Description copied from class:MPSKernelStandard init with default properties per filter type- Overrides:
initWithDevicein classMPSNNOptimizer- Parameters:
device- The device that the filter will be used on. May not be NULL.- Returns:
- a pointer to the newly initialized object. This will fail, returning nil if the device is not supported. Devices must be MTLFeatureSet_iOS_GPUFamily2_v1 or later.
-
initWithDeviceBeta1Beta2EpsilonTimeStepOptimizerDescriptor
public MPSNNOptimizerAdam initWithDeviceBeta1Beta2EpsilonTimeStepOptimizerDescriptor(@NotNull @NotNull MTLDevice device, double beta1, double beta2, float epsilon, long timeStep, @NotNull @NotNull MPSNNOptimizerDescriptor optimizerDescriptor)
Full initialization for the adam update- Parameters:
device- The device on which the kernel will execute.beta1- The beta1 to update valuesbeta2- The beta2 to update valuesepsilon- The epsilon at which we update valuestimeStep- The timeStep at which values will start updatingoptimizerDescriptor- The optimizerDescriptor which will have a bunch of properties to be applied- Returns:
- A valid MPSNNOptimizerAdam object or nil, if failure.
-
initWithDeviceLearningRate
public MPSNNOptimizerAdam initWithDeviceLearningRate(@NotNull @NotNull MTLDevice device, float learningRate)
Convenience initialization for the adam update- Parameters:
device- The device on which the kernel will execute.learningRate- The learningRate at which we will update values- Returns:
- A valid MPSNNOptimizerAdam object or nil, if failure.
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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
@NotNull public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(@NotNull @NotNull java.lang.String key)
-
new_objc
public static MPSNNOptimizerAdam new_objc()
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
setTimeStep
public void setTimeStep(long value)
[@property] timeStep Current timeStep for the update, number of times update has occurred
-
setVersion_static
public static void setVersion_static(long aVersion)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.- Specified by:
_supportsSecureCodingin interfaceNSSecureCoding- Overrides:
_supportsSecureCodingin classMPSNNOptimizer
-
timeStep
public long timeStep()
[@property] timeStep Current timeStep for the update, number of times update has occurred
-
version_static
public static long version_static()
-
useStoredAccessor
@Deprecated public static boolean useStoredAccessor()
Deprecated.
-
-