Class MLCOptimizerDescriptor

  • All Implemented Interfaces:
    NSCopying, NSObject

    @Deprecated
    public class MLCOptimizerDescriptor
    extends NSObject
    implements NSCopying
    Deprecated.
    MLCOptimizerDescriptor The MLCOptimizerDescriptor specifies an optimizer descriptor. API-Since: 14.0 Deprecated-Since: 100000.0 Deprecated-Message: Use Metal Performance Shaders Graph or BNNS instead.
    • Constructor Detail

      • MLCOptimizerDescriptor

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
        Deprecated.
      • allocWithZone

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

        public boolean appliesGradientClipping()
        Deprecated.
        [@property] appliesGradientClipping Whether gradient clipping should be applied or not. The default is false
      • 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.
      • classFallbacksForKeyedArchiver

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

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

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Deprecated.
        Specified by:
        copyWithZone in interface NSCopying
      • customGlobalNorm

        public float customGlobalNorm()
        Deprecated.
        [@property] customGlobalNorm Used only with MLCGradientClippingTypeByGlobalNorm. If non zero, this norm will be used in place of global norm. API-Since: 15.0
      • debugDescription_static

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

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

        public static MLCOptimizerDescriptor descriptorWithLearningRateGradientRescaleAppliesGradientClippingGradientClipMaxGradientClipMinRegularizationTypeRegularizationScale​(float learningRate,
                                                                                                                                                                                 float gradientRescale,
                                                                                                                                                                                 boolean appliesGradientClipping,
                                                                                                                                                                                 float gradientClipMax,
                                                                                                                                                                                 float gradientClipMin,
                                                                                                                                                                                 int regularizationType,
                                                                                                                                                                                 float regularizationScale)
        Deprecated.
        Create a MLCOptimizerDescriptor object
        Parameters:
        learningRate - The learning rate
        gradientRescale - The gradient rescale value
        appliesGradientClipping - Whether to apply gradient clipping
        gradientClipMax - The maximum gradient value to be used with gradient clipping
        gradientClipMin - The minimum gradient value to be used with gradient clipping
        regularizationType - The regularization type
        regularizationScale - The regularization scale
        Returns:
        A new MLCOptimizerDescriptor object.
      • descriptorWithLearningRateGradientRescaleAppliesGradientClippingGradientClippingTypeGradientClipMaxGradientClipMinMaximumClippingNormCustomGlobalNormRegularizationTypeRegularizationScale

        public static MLCOptimizerDescriptor descriptorWithLearningRateGradientRescaleAppliesGradientClippingGradientClippingTypeGradientClipMaxGradientClipMinMaximumClippingNormCustomGlobalNormRegularizationTypeRegularizationScale​(float learningRate,
                                                                                                                                                                                                                                        float gradientRescale,
                                                                                                                                                                                                                                        boolean appliesGradientClipping,
                                                                                                                                                                                                                                        int gradientClippingType,
                                                                                                                                                                                                                                        float gradientClipMax,
                                                                                                                                                                                                                                        float gradientClipMin,
                                                                                                                                                                                                                                        float maximumClippingNorm,
                                                                                                                                                                                                                                        float customGlobalNorm,
                                                                                                                                                                                                                                        int regularizationType,
                                                                                                                                                                                                                                        float regularizationScale)
        Deprecated.
        Create an MLCOptimizerDescriptor object
        Parameters:
        learningRate - The learning rate
        gradientRescale - The gradient rescale value
        appliesGradientClipping - Whether to apply gradient clipping
        gradientClippingType - The type of clipping applied to gradients
        gradientClipMax - The maximum gradient value to be used with gradient clipping
        gradientClipMin - The minimum gradient value to be used with gradient clipping
        maximumClippingNorm - The maximum norm to be used with gradient clipping
        customGlobalNorm - If non-zero, the norm to be used instead of calculating the global norm
        regularizationType - The regularization type
        regularizationScale - The regularization scale
        Returns:
        A new MLCOptimizerDescriptor object. API-Since: 15.0
      • descriptorWithLearningRateGradientRescaleRegularizationTypeRegularizationScale

        public static MLCOptimizerDescriptor descriptorWithLearningRateGradientRescaleRegularizationTypeRegularizationScale​(float learningRate,
                                                                                                                            float gradientRescale,
                                                                                                                            int regularizationType,
                                                                                                                            float regularizationScale)
        Deprecated.
        Create a MLCOptimizerDescriptor object
        Parameters:
        learningRate - The learning rate
        gradientRescale - The gradient rescale value
        regularizationType - The regularization type
        regularizationScale - The regularization scale
        Returns:
        A new MLCOptimizerDescriptor object.
      • gradientClipMax

        public float gradientClipMax()
        Deprecated.
        [@property] gradientClipMax The maximum gradient value if gradient clipping is enabled before gradient is rescaled.
      • gradientClipMin

        public float gradientClipMin()
        Deprecated.
        [@property] gradientClipMin The minimum gradient value if gradient clipping is enabled before gradient is rescaled.
      • gradientClippingType

        public int gradientClippingType()
        Deprecated.
        [@property] gradientClippingType The type of clipping applied to gradient API-Since: 15.0
      • gradientRescale

        public float gradientRescale()
        Deprecated.
        [@property] gradientRescale The rescale value applied to gradients during optimizer update
      • hash_static

        public static long hash_static()
        Deprecated.
      • 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.
      • learningRate

        public float learningRate()
        Deprecated.
        [@property] learningRate The learning rate
      • maximumClippingNorm

        public float maximumClippingNorm()
        Deprecated.
        [@property] maximumClippingNorm The maximum clipping value API-Since: 15.0
      • regularizationScale

        public float regularizationScale()
        Deprecated.
        [@property] regularizationScale The regularization scale.
      • regularizationType

        public int regularizationType()
        Deprecated.
        [@property] regularizationType The regularization type.
      • 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.
      • superclass_static

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

        public static long version_static()
        Deprecated.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.