public class MPSNNForwardLossNode extends MPSNNFilterNode
MPSNNFilterNode.Block_trainingGraphWithSourceGradientNodeHandlerNSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
MPSNNForwardLossNode(org.moe.natj.general.Pointer peer) |
label, paddingPolicy, resultImage, resultState, resultStates, setLabel, setPaddingPolicy, trainingGraphWithSourceGradientNodeHandleraccessibilityActivate, 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 MPSNNForwardLossNode(org.moe.natj.general.Pointer peer)
public static boolean accessInstanceVariablesDirectly()
public static MPSNNForwardLossNode alloc()
public static MPSNNForwardLossNode allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
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 float delta()
public static java.lang.String description_static()
public float epsilon()
public MPSNNLossGradientNode gradientFilterWithSource(MPSNNImageNode sourceGradient)
MPSNNFilterNodeThe backwards training version of the filter will be returned. The non-gradient image and state arguments for the filter are automatically obtained from the target.
gradientFilterWithSource in class MPSNNFilterNodesourceGradient - The gradient images corresponding with the resultImage
of the targetpublic MPSNNLossGradientNode gradientFilterWithSources(NSArray<? extends MPSNNImageNode> sourceGradient)
gradientFilterWithSources in class MPSNNFilterNodesourceGradient - The gradient images corresponding with the resultImage
of the targetpublic NSArray<? extends MPSNNLossGradientNode> gradientFiltersWithSource(MPSNNImageNode sourceGradient)
MPSNNFilterNodeMPSNNFilters that consume multiple inputs generally result in multiple conjugate filters for the gradient computation at the end of training. For example, a single concatenation operation that concatenates multple images will result in an array of slice operators that carve out subsections of the input gradient image.
gradientFiltersWithSource in class MPSNNFilterNodepublic NSArray<? extends MPSNNLossGradientNode> gradientFiltersWithSources(NSArray<? extends MPSNNImageNode> sourceGradient)
MPSNNFilterNodeMPSNNFilters that consume multiple inputs generally result in multiple conjugate filters for the gradient computation at the end of training. For example, a single concatenation operation that concatenates multple images will result in an array of slice operators that carve out subsections of the input gradient image.
gradientFiltersWithSources in class MPSNNFilterNodepublic static long hash_static()
public MPSNNForwardLossNode init()
init in class MPSNNFilterNodepublic MPSNNForwardLossNode initWithSourceLabelsLossDescriptor(MPSNNImageNode source, MPSNNImageNode labels, MPSCNNLossDescriptor descriptor)
public MPSNNForwardLossNode initWithSourceLabelsWeightsLossDescriptor(MPSNNImageNode source, MPSNNImageNode labels, MPSNNImageNode weights, MPSCNNLossDescriptor descriptor)
public MPSNNForwardLossNode initWithSourcesLossDescriptor(NSArray<? extends MPSNNImageNode> sourceNodes, MPSCNNLossDescriptor descriptor)
sourceNodes - The MPSNNImageNode representing the source MPSImages for the filter
Node0: logits, Node1: labels, Node2: weightspublic 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 float labelSmoothing()
public int lossType()
public static MPSNNForwardLossNode new_objc()
public static MPSNNForwardLossNode nodeWithSourceLabelsLossDescriptor(MPSNNImageNode source, MPSNNImageNode labels, MPSCNNLossDescriptor descriptor)
public static MPSNNForwardLossNode nodeWithSourceLabelsWeightsLossDescriptor(MPSNNImageNode source, MPSNNImageNode labels, MPSNNImageNode weights, MPSCNNLossDescriptor descriptor)
public static MPSNNForwardLossNode nodeWithSourcesLossDescriptor(NSArray<? extends MPSNNImageNode> sourceNodes, MPSCNNLossDescriptor descriptor)
sourceNodes - The MPSNNImageNode representing the source MPSImages for the filter
Node0: logits, Node1: labels, Node2: weightspublic long numberOfClasses()
public MPSNNLossCallback propertyCallBack()
Optional callback option - setting this allows the scalar weight value to be changed dynamically at encode time. Default value: nil.
public int reductionType()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public void setPropertyCallBack(MPSNNLossCallback value)
Optional callback option - setting this allows the scalar weight value to be changed dynamically at encode time. Default value: nil.
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static long version_static()
public float weight()
public boolean reduceAcrossBatch()