Class MLCLossLayer

  • All Implemented Interfaces:
    NSObject
    Direct Known Subclasses:
    MLCYOLOLossLayer

    @Deprecated
    public class MLCLossLayer
    extends MLCLayer
    Deprecated.
    MLCLossLayer A loss layer API-Since: 14.0 Deprecated-Since: 100000.0 Deprecated-Message: Use Metal Performance Shaders Graph or BNNS instead.
    • Constructor Detail

      • MLCLossLayer

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
        Deprecated.
      • allocWithZone

        public static MLCLossLayer allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Deprecated.
      • automaticallyNotifiesObserversForKey

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

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
        Deprecated.
      • 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)
        Deprecated.
      • categoricalCrossEntropyLossWithReductionTypeLabelSmoothingClassCountWeight

        @NotNull
        public static @NotNull MLCLossLayer categoricalCrossEntropyLossWithReductionTypeLabelSmoothingClassCountWeight​(int reductionType,
                                                                                                                       float labelSmoothing,
                                                                                                                       long classCount,
                                                                                                                       float weight)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        labelSmoothing - Label smoothing value
        classCount - Number of classes
        weight - A scalar floating point value
        Returns:
        A new categorical cross entropy loss layer.
      • categoricalCrossEntropyLossWithReductionTypeLabelSmoothingClassCountWeights

        @NotNull
        public static @NotNull MLCLossLayer categoricalCrossEntropyLossWithReductionTypeLabelSmoothingClassCountWeights​(int reductionType,
                                                                                                                        float labelSmoothing,
                                                                                                                        long classCount,
                                                                                                                        @Nullable
                                                                                                                        @Nullable MLCTensor weights)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        labelSmoothing - Label smoothing value
        classCount - Number of classes
        weights - The loss label weights tensor
        Returns:
        A new categorical cross entropy loss layer.
      • classFallbacksForKeyedArchiver

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

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
        Deprecated.
      • cosineDistanceLossWithReductionTypeWeight

        @NotNull
        public static @NotNull MLCLossLayer cosineDistanceLossWithReductionTypeWeight​(int reductionType,
                                                                                      float weight)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        weight - A scalar floating-point value
        Returns:
        A new cosine distance loss layer.
      • cosineDistanceLossWithReductionTypeWeights

        @NotNull
        public static @NotNull MLCLossLayer cosineDistanceLossWithReductionTypeWeights​(int reductionType,
                                                                                       @Nullable
                                                                                       @Nullable MLCTensor weights)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        weights - The loss label weights tensor
        Returns:
        A new cosine distance loss layer.
      • debugDescription_static

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

        public static java.lang.String description_static()
        Deprecated.
      • descriptor

        @NotNull
        public @NotNull MLCLossDescriptor descriptor()
        Deprecated.
        [@property] descriptor The loss descriptor
      • hash_static

        public static long hash_static()
        Deprecated.
      • hingeLossWithReductionTypeWeight

        @NotNull
        public static @NotNull MLCLossLayer hingeLossWithReductionTypeWeight​(int reductionType,
                                                                             float weight)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        weight - A scalar floating-point value
        Returns:
        A new hinge loss layer.
      • hingeLossWithReductionTypeWeights

        @NotNull
        public static @NotNull MLCLossLayer hingeLossWithReductionTypeWeights​(int reductionType,
                                                                              @Nullable
                                                                              @Nullable MLCTensor weights)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        weights - The loss label weights tensor
        Returns:
        A new hinge loss layer.
      • huberLossWithReductionTypeDeltaWeight

        @NotNull
        public static @NotNull MLCLossLayer huberLossWithReductionTypeDeltaWeight​(int reductionType,
                                                                                  float delta,
                                                                                  float weight)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        delta - The delta parameter
        weight - A scalar floating-point value
        Returns:
        A new huber loss layer.
      • huberLossWithReductionTypeDeltaWeights

        @NotNull
        public static @NotNull MLCLossLayer huberLossWithReductionTypeDeltaWeights​(int reductionType,
                                                                                   float delta,
                                                                                   @Nullable
                                                                                   @Nullable MLCTensor weights)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        delta - The delta parameter
        weights - The loss label weights tensor
        Returns:
        A new huber loss layer.
      • instanceMethodSignatureForSelector

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

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

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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
        Deprecated.
      • layerWithDescriptor

        public static MLCLossLayer layerWithDescriptor​(@NotNull
                                                       @NotNull MLCLossDescriptor lossDescriptor)
        Deprecated.
        Create a loss layer
        Parameters:
        lossDescriptor - The loss descriptor
        Returns:
        A new loss layer.
      • layerWithDescriptorWeights

        public static MLCLossLayer layerWithDescriptorWeights​(@NotNull
                                                              @NotNull MLCLossDescriptor lossDescriptor,
                                                              @NotNull
                                                              @NotNull MLCTensor weights)
        Deprecated.
        Create a MLComputeLoss layer
        Parameters:
        lossDescriptor - The loss descriptor
        weights - The loss label weights tensor
        Returns:
        A new loss layer.
      • logLossWithReductionTypeEpsilonWeight

        @NotNull
        public static @NotNull MLCLossLayer logLossWithReductionTypeEpsilonWeight​(int reductionType,
                                                                                  float epsilon,
                                                                                  float weight)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        epsilon - The epsilon parameter
        weight - A scalar floating-point value
        Returns:
        A new log loss layer.
      • logLossWithReductionTypeEpsilonWeights

        @NotNull
        public static @NotNull MLCLossLayer logLossWithReductionTypeEpsilonWeights​(int reductionType,
                                                                                   float epsilon,
                                                                                   @Nullable
                                                                                   @Nullable MLCTensor weights)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        epsilon - The epsilon parameter
        weights - The loss label weights tensor
        Returns:
        A new log loss layer.
      • meanAbsoluteErrorLossWithReductionTypeWeight

        @NotNull
        public static @NotNull MLCLossLayer meanAbsoluteErrorLossWithReductionTypeWeight​(int reductionType,
                                                                                         float weight)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        weight - A scalar floating-point value
        Returns:
        A new L1 i.e. mean absolute error loss layer.
      • meanAbsoluteErrorLossWithReductionTypeWeights

        @NotNull
        public static @NotNull MLCLossLayer meanAbsoluteErrorLossWithReductionTypeWeights​(int reductionType,
                                                                                          @Nullable
                                                                                          @Nullable MLCTensor weights)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        weights - The loss label weights tensor
        Returns:
        A new L1 i.e. mean absolute error loss layer.
      • meanSquaredErrorLossWithReductionTypeWeight

        @NotNull
        public static @NotNull MLCLossLayer meanSquaredErrorLossWithReductionTypeWeight​(int reductionType,
                                                                                        float weight)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        weight - A scalar floating-point value
        Returns:
        A new L2 i.e. mean squared error loss layer.
      • meanSquaredErrorLossWithReductionTypeWeights

        @NotNull
        public static @NotNull MLCLossLayer meanSquaredErrorLossWithReductionTypeWeights​(int reductionType,
                                                                                         @Nullable
                                                                                         @Nullable MLCTensor weights)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        weights - The loss label weights tensor
        Returns:
        A new L2 i.e. mean squared error loss layer.
      • new_objc

        public static MLCLossLayer new_objc()
        Deprecated.
      • resolveClassMethod

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

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

        public static void setVersion_static​(long aVersion)
        Deprecated.
      • sigmoidCrossEntropyLossWithReductionTypeLabelSmoothingWeight

        @NotNull
        public static @NotNull MLCLossLayer sigmoidCrossEntropyLossWithReductionTypeLabelSmoothingWeight​(int reductionType,
                                                                                                         float labelSmoothing,
                                                                                                         float weight)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        labelSmoothing - Label smoothing value
        weight - A scalar floating-point value
        Returns:
        A new sigmoid cross entropy loss layer.
      • sigmoidCrossEntropyLossWithReductionTypeLabelSmoothingWeights

        @NotNull
        public static @NotNull MLCLossLayer sigmoidCrossEntropyLossWithReductionTypeLabelSmoothingWeights​(int reductionType,
                                                                                                          float labelSmoothing,
                                                                                                          @Nullable
                                                                                                          @Nullable MLCTensor weights)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        labelSmoothing - Label smoothing value
        weights - The loss label weights tensor
        Returns:
        A new sigmoid cross entropy loss layer.
      • softmaxCrossEntropyLossWithReductionTypeLabelSmoothingClassCountWeight

        @NotNull
        public static @NotNull MLCLossLayer softmaxCrossEntropyLossWithReductionTypeLabelSmoothingClassCountWeight​(int reductionType,
                                                                                                                   float labelSmoothing,
                                                                                                                   long classCount,
                                                                                                                   float weight)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        labelSmoothing - Label smoothing value
        classCount - Number of classes
        weight - A scalar floating point value
        Returns:
        A new softmax cross entropy loss layer.
      • softmaxCrossEntropyLossWithReductionTypeLabelSmoothingClassCountWeights

        @NotNull
        public static @NotNull MLCLossLayer softmaxCrossEntropyLossWithReductionTypeLabelSmoothingClassCountWeights​(int reductionType,
                                                                                                                    float labelSmoothing,
                                                                                                                    long classCount,
                                                                                                                    @Nullable
                                                                                                                    @Nullable MLCTensor weights)
        Deprecated.
        Create a loss layer
        Parameters:
        reductionType - The reduction type to use
        labelSmoothing - Label smoothing value
        classCount - Number of classes
        weights - The loss label weights tensor
        Returns:
        A new softmax cross entropy loss layer.
      • superclass_static

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

        public static boolean supportsDataTypeOnDevice​(int dataType,
                                                       @NotNull
                                                       @NotNull MLCDevice device)
        Deprecated.
      • version_static

        public static long version_static()
        Deprecated.
      • weights

        @Nullable
        public @Nullable MLCTensor weights()
        Deprecated.
        [@property] weights The loss label weights tensor
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.