public class MLCLossLayer extends MLCLayer
A loss layer
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
MLCLossLayer(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
accessInstanceVariablesDirectly() |
static MLCLossLayer |
alloc() |
static MLCLossLayer |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
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 MLCLossLayer |
categoricalCrossEntropyLossWithReductionTypeLabelSmoothingClassCountWeight(int reductionType,
float labelSmoothing,
long classCount,
float weight)
Create a loss layer
|
static MLCLossLayer |
categoricalCrossEntropyLossWithReductionTypeLabelSmoothingClassCountWeights(int reductionType,
float labelSmoothing,
long classCount,
MLCTensor weights)
Create a loss layer
|
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
static MLCLossLayer |
cosineDistanceLossWithReductionTypeWeight(int reductionType,
float weight)
Create a loss layer
|
static MLCLossLayer |
cosineDistanceLossWithReductionTypeWeights(int reductionType,
MLCTensor weights)
Create a loss layer
|
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
MLCLossDescriptor |
descriptor()
[@property] descriptor
|
static long |
hash_static() |
static MLCLossLayer |
hingeLossWithReductionTypeWeight(int reductionType,
float weight)
Create a loss layer
|
static MLCLossLayer |
hingeLossWithReductionTypeWeights(int reductionType,
MLCTensor weights)
Create a loss layer
|
static MLCLossLayer |
huberLossWithReductionTypeDeltaWeight(int reductionType,
float delta,
float weight)
Create a loss layer
|
static MLCLossLayer |
huberLossWithReductionTypeDeltaWeights(int reductionType,
float delta,
MLCTensor weights)
Create a loss layer
|
MLCLossLayer |
init() |
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) |
static MLCLossLayer |
layerWithDescriptor(MLCLossDescriptor lossDescriptor)
Create a loss layer
|
static MLCLossLayer |
layerWithDescriptorWeights(MLCLossDescriptor lossDescriptor,
MLCTensor weights)
Create a MLComputeLoss layer
|
static MLCLossLayer |
logLossWithReductionTypeEpsilonWeight(int reductionType,
float epsilon,
float weight)
Create a loss layer
|
static MLCLossLayer |
logLossWithReductionTypeEpsilonWeights(int reductionType,
float epsilon,
MLCTensor weights)
Create a loss layer
|
static MLCLossLayer |
meanAbsoluteErrorLossWithReductionTypeWeight(int reductionType,
float weight)
Create a loss layer
|
static MLCLossLayer |
meanAbsoluteErrorLossWithReductionTypeWeights(int reductionType,
MLCTensor weights)
Create a loss layer
|
static MLCLossLayer |
meanSquaredErrorLossWithReductionTypeWeight(int reductionType,
float weight)
Create a loss layer
|
static MLCLossLayer |
meanSquaredErrorLossWithReductionTypeWeights(int reductionType,
MLCTensor weights)
Create a loss layer
|
static MLCLossLayer |
new_objc() |
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 MLCLossLayer |
sigmoidCrossEntropyLossWithReductionTypeLabelSmoothingWeight(int reductionType,
float labelSmoothing,
float weight)
Create a loss layer
|
static MLCLossLayer |
sigmoidCrossEntropyLossWithReductionTypeLabelSmoothingWeights(int reductionType,
float labelSmoothing,
MLCTensor weights)
Create a loss layer
|
static MLCLossLayer |
softmaxCrossEntropyLossWithReductionTypeLabelSmoothingClassCountWeight(int reductionType,
float labelSmoothing,
long classCount,
float weight)
Create a loss layer
|
static MLCLossLayer |
softmaxCrossEntropyLossWithReductionTypeLabelSmoothingClassCountWeights(int reductionType,
float labelSmoothing,
long classCount,
MLCTensor weights)
Create a loss layer
|
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsDataTypeOnDevice(int dataType,
MLCDevice device) |
static long |
version_static() |
MLCTensor |
weights()
[@property] weights
|
deviceType, isDebuggingEnabled, label, layerID, setIsDebuggingEnabled, setLabelaccessibilityActivate, 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, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static MLCLossLayer alloc()
public static MLCLossLayer 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 MLCLossLayer categoricalCrossEntropyLossWithReductionTypeLabelSmoothingClassCountWeight(int reductionType, float labelSmoothing, long classCount, float weight)
reductionType - The reduction type to uselabelSmoothing - Label smoothing valueclassCount - Number of classesweight - A scalar floating point valuepublic static MLCLossLayer categoricalCrossEntropyLossWithReductionTypeLabelSmoothingClassCountWeights(int reductionType, float labelSmoothing, long classCount, MLCTensor weights)
reductionType - The reduction type to uselabelSmoothing - Label smoothing valueclassCount - Number of classesweights - The loss label weights tensorpublic static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static MLCLossLayer cosineDistanceLossWithReductionTypeWeight(int reductionType, float weight)
reductionType - The reduction type to useweight - A scalar floating-point valuepublic static MLCLossLayer cosineDistanceLossWithReductionTypeWeights(int reductionType, MLCTensor weights)
reductionType - The reduction type to useweights - The loss label weights tensorpublic static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public MLCLossDescriptor descriptor()
The loss descriptor
public static long hash_static()
public static MLCLossLayer hingeLossWithReductionTypeWeight(int reductionType, float weight)
reductionType - The reduction type to useweight - A scalar floating-point valuepublic static MLCLossLayer hingeLossWithReductionTypeWeights(int reductionType, MLCTensor weights)
reductionType - The reduction type to useweights - The loss label weights tensorpublic static MLCLossLayer huberLossWithReductionTypeDeltaWeight(int reductionType, float delta, float weight)
reductionType - The reduction type to usedelta - The delta parameterweight - A scalar floating-point valuepublic static MLCLossLayer huberLossWithReductionTypeDeltaWeights(int reductionType, float delta, MLCTensor weights)
reductionType - The reduction type to usedelta - The delta parameterweights - The loss label weights tensorpublic MLCLossLayer init()
public 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 static MLCLossLayer layerWithDescriptor(MLCLossDescriptor lossDescriptor)
lossDescriptor - The loss descriptorpublic static MLCLossLayer layerWithDescriptorWeights(MLCLossDescriptor lossDescriptor, MLCTensor weights)
lossDescriptor - The loss descriptorweights - The loss label weights tensorpublic static MLCLossLayer logLossWithReductionTypeEpsilonWeight(int reductionType, float epsilon, float weight)
reductionType - The reduction type to useepsilon - The epsilon parameterweight - A scalar floating-point valuepublic static MLCLossLayer logLossWithReductionTypeEpsilonWeights(int reductionType, float epsilon, MLCTensor weights)
reductionType - The reduction type to useepsilon - The epsilon parameterweights - The loss label weights tensorpublic static MLCLossLayer meanAbsoluteErrorLossWithReductionTypeWeight(int reductionType, float weight)
reductionType - The reduction type to useweight - A scalar floating-point valuepublic static MLCLossLayer meanAbsoluteErrorLossWithReductionTypeWeights(int reductionType, MLCTensor weights)
reductionType - The reduction type to useweights - The loss label weights tensorpublic static MLCLossLayer meanSquaredErrorLossWithReductionTypeWeight(int reductionType, float weight)
reductionType - The reduction type to useweight - A scalar floating-point valuepublic static MLCLossLayer meanSquaredErrorLossWithReductionTypeWeights(int reductionType, MLCTensor weights)
reductionType - The reduction type to useweights - The loss label weights tensorpublic static MLCLossLayer new_objc()
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 MLCLossLayer sigmoidCrossEntropyLossWithReductionTypeLabelSmoothingWeight(int reductionType, float labelSmoothing, float weight)
reductionType - The reduction type to uselabelSmoothing - Label smoothing valueweight - A scalar floating-point valuepublic static MLCLossLayer sigmoidCrossEntropyLossWithReductionTypeLabelSmoothingWeights(int reductionType, float labelSmoothing, MLCTensor weights)
reductionType - The reduction type to uselabelSmoothing - Label smoothing valueweights - The loss label weights tensorpublic static MLCLossLayer softmaxCrossEntropyLossWithReductionTypeLabelSmoothingClassCountWeight(int reductionType, float labelSmoothing, long classCount, float weight)
reductionType - The reduction type to uselabelSmoothing - Label smoothing valueclassCount - Number of classesweight - A scalar floating point valuepublic static MLCLossLayer softmaxCrossEntropyLossWithReductionTypeLabelSmoothingClassCountWeights(int reductionType, float labelSmoothing, long classCount, MLCTensor weights)
reductionType - The reduction type to uselabelSmoothing - Label smoothing valueclassCount - Number of classesweights - The loss label weights tensorpublic static org.moe.natj.objc.Class superclass_static()
public static boolean supportsDataTypeOnDevice(int dataType,
MLCDevice device)
public static long version_static()
public MLCTensor weights()
The loss label weights tensor