Class MLCLSTMDescriptor

  • All Implemented Interfaces:
    NSCopying, NSObject

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

      • MLCLSTMDescriptor

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
        Deprecated.
      • allocWithZone

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

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

        public boolean batchFirst()
        Deprecated.
        [@property] batchFirst LSTM only supports batchFirst=YES. This means the input and output will have shape [batch size, time steps, feature]. Default is YES.
      • 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
      • debugDescription_static

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

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

        public static MLCLSTMDescriptor descriptorWithInputSizeHiddenSizeLayerCount​(long inputSize,
                                                                                    long hiddenSize,
                                                                                    long layerCount)
        Deprecated.
        Creates a LSTM descriptor with batchFirst = YES
        Parameters:
        inputSize - The number of expected features in the input
        hiddenSize - The number of features in the hidden state
        layerCount - Number of recurrent layers
        Returns:
        A valid MLCLSTMDescriptor object or nil, if failure.
      • descriptorWithInputSizeHiddenSizeLayerCountUsesBiasesBatchFirstIsBidirectionalDropout

        public static MLCLSTMDescriptor descriptorWithInputSizeHiddenSizeLayerCountUsesBiasesBatchFirstIsBidirectionalDropout​(long inputSize,
                                                                                                                              long hiddenSize,
                                                                                                                              long layerCount,
                                                                                                                              boolean usesBiases,
                                                                                                                              boolean batchFirst,
                                                                                                                              boolean isBidirectional,
                                                                                                                              float dropout)
        Deprecated.
      • descriptorWithInputSizeHiddenSizeLayerCountUsesBiasesBatchFirstIsBidirectionalReturnsSequencesDropout

        public static MLCLSTMDescriptor descriptorWithInputSizeHiddenSizeLayerCountUsesBiasesBatchFirstIsBidirectionalReturnsSequencesDropout​(long inputSize,
                                                                                                                                              long hiddenSize,
                                                                                                                                              long layerCount,
                                                                                                                                              boolean usesBiases,
                                                                                                                                              boolean batchFirst,
                                                                                                                                              boolean isBidirectional,
                                                                                                                                              boolean returnsSequences,
                                                                                                                                              float dropout)
        Deprecated.
      • descriptorWithInputSizeHiddenSizeLayerCountUsesBiasesBatchFirstIsBidirectionalReturnsSequencesDropoutResultMode

        public static MLCLSTMDescriptor descriptorWithInputSizeHiddenSizeLayerCountUsesBiasesBatchFirstIsBidirectionalReturnsSequencesDropoutResultMode​(long inputSize,
                                                                                                                                                        long hiddenSize,
                                                                                                                                                        long layerCount,
                                                                                                                                                        boolean usesBiases,
                                                                                                                                                        boolean batchFirst,
                                                                                                                                                        boolean isBidirectional,
                                                                                                                                                        boolean returnsSequences,
                                                                                                                                                        float dropout,
                                                                                                                                                        long resultMode)
        Deprecated.
        Creates a LSTM descriptor.
        Parameters:
        inputSize - The number of expected features in the input
        hiddenSize - The number of features in the hidden state
        layerCount - Number of recurrent layers
        usesBiases - If NO, the layer does not use bias weights. Default: YES
        batchFirst - LSTM only supports batchFirst=YES. This means the input and output will have shape [batch size, time steps, feature]. Default is YES.
        isBidirectional - If YES, becomes a bi-directional LSTM. Default: NO
        returnsSequences - if YES return output for all sequences else return output only for the last sequences. Default: YES
        dropout - If non-zero, introduces a dropout layer on the outputs of each LSTM layer except the last layer with dropout probability equal to dropout.
        resultMode - expected result tensors. MLCLSTMResultModeOutput returns output data. MLCLSTMResultModeOutputAndStates returns output data, last hidden state h_n, and last cell state c_n. Default: MLCLSTMResultModeOutput.
        Returns:
        A valid MLCLSTMDescriptor object or nil, if failure.
      • descriptorWithInputSizeHiddenSizeLayerCountUsesBiasesIsBidirectionalDropout

        public static MLCLSTMDescriptor descriptorWithInputSizeHiddenSizeLayerCountUsesBiasesIsBidirectionalDropout​(long inputSize,
                                                                                                                    long hiddenSize,
                                                                                                                    long layerCount,
                                                                                                                    boolean usesBiases,
                                                                                                                    boolean isBidirectional,
                                                                                                                    float dropout)
        Deprecated.
        Creates a LSTM descriptor descriptor with batchFirst = YES
        Parameters:
        inputSize - The number of expected features in the input
        hiddenSize - The number of features in the hidden state
        layerCount - Number of recurrent layers
        usesBiases - If NO, the layer does not use bias weights. Default: YES
        isBidirectional - If YES, becomes a bi-directional LSTM. Default: NO
        dropout - If non-zero, introduces a dropout layer on the outputs of each LSTM layer except the last layer with dropout probability equal to dropout.
        Returns:
        A valid MLCLSTMDescriptor object or nil, if failure.
      • dropout

        public float dropout()
        Deprecated.
        [@property] dropout If non-zero, intrdouces a dropout layer on the outputs of each LSTM layer except the last layer, with dropout probablity equal to dropout. Default is 0.0.
      • hash_static

        public static long hash_static()
        Deprecated.
      • hiddenSize

        public long hiddenSize()
        Deprecated.
        [@property] hiddenSize The number of feature channels in the hidden state
      • inputSize

        public long inputSize()
        Deprecated.
        [@property] inputSize The number of expected feature channels in the input
      • instanceMethodSignatureForSelector

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

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

        public boolean isBidirectional()
        Deprecated.
        [@property] isBidirectional If YES, becomes a bidirectional LSTM. Default is NO.
      • 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.
      • layerCount

        public long layerCount()
        Deprecated.
        [@property] layerCount The number of recurrent layers. Default is 1.
      • resolveClassMethod

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

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

        public long resultMode()
        Deprecated.
        [@property] resultMode MLCLSTMResultModeOutput returns output data. MLCLSTMResultModeOutputAndStates returns output data, last hidden state h_n, and last cell state c_n. Default MLCLSTMResultModeOutput.
      • returnsSequences

        public boolean returnsSequences()
        Deprecated.
        [@property] returnsSequences if YES return output for all sequences else return output only for the last sequences. Default: YES
      • setVersion_static

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

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

        public boolean usesBiases()
        Deprecated.
        [@property] usesBiases If NO, the layer does not use bias terms. Default is YES.
      • version_static

        public static long version_static()
        Deprecated.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.