Class MLCMultiheadAttentionDescriptor

  • All Implemented Interfaces:
    NSCopying, NSObject

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

      • MLCMultiheadAttentionDescriptor

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
        Deprecated.
      • addsZeroAttention

        public boolean addsZeroAttention()
        Deprecated.
        if true, a row of zeroes is added to projected key and value. Default = 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
      • debugDescription_static

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

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

        public static MLCMultiheadAttentionDescriptor descriptorWithModelDimensionHeadCount​(long modelDimension,
                                                                                            long headCount)
        Deprecated.
        A multi-head attention layer descriptor
        Parameters:
        modelDimension - total dimension of model space
        headCount - number of parallel attention heads
        Returns:
        A valid MultiheadAttention layer descriptor
      • descriptorWithModelDimensionKeyDimensionValueDimensionHeadCountDropoutHasBiasesHasAttentionBiasesAddsZeroAttention

        public static MLCMultiheadAttentionDescriptor descriptorWithModelDimensionKeyDimensionValueDimensionHeadCountDropoutHasBiasesHasAttentionBiasesAddsZeroAttention​(long modelDimension,
                                                                                                                                                                         long keyDimension,
                                                                                                                                                                         long valueDimension,
                                                                                                                                                                         long headCount,
                                                                                                                                                                         float dropout,
                                                                                                                                                                         boolean hasBiases,
                                                                                                                                                                         boolean hasAttentionBiases,
                                                                                                                                                                         boolean addsZeroAttention)
        Deprecated.
        A multi-head attention layer descriptor
        Parameters:
        modelDimension - total dimension of model space
        keyDimension - total dimension of key space. Default = modelDimension
        valueDimension - total dimension of value space. Default = modelDimension
        headCount - number of parallel attention heads
        dropout - optional, a dropout layer applied to the output projection weights. Default = 0.0f
        hasBiases - if true, bias will be added to query/key/value/output projections. Default = YES
        hasAttentionBiases - if true, an array of biases is added to key and value respectively. Default = NO
        addsZeroAttention - if true, a row of zeroes is added to projected key and value. Default = NO
        Returns:
        A new MultiheadAttention layer descriptor
      • dropout

        public float dropout()
        Deprecated.
        a droupout layer applied to the output projection weights. Default = 0.0
      • hasAttentionBiases

        public boolean hasAttentionBiases()
        Deprecated.
        if true, an array of biases is added to key and value respectively. Default = false
      • hasBiases

        public boolean hasBiases()
        Deprecated.
        if true, bias is used for query/key/value/output projections. Default = true
      • hash_static

        public static long hash_static()
        Deprecated.
      • headCount

        public long headCount()
        Deprecated.
        number of parallel attention heads
      • 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.
      • keyDimension

        public long keyDimension()
        Deprecated.
        total dimension of key space, Default = modelDimension
      • keyPathsForValuesAffectingValueForKey

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

        public long modelDimension()
        Deprecated.
        model or embedding dimension
      • 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.
      • valueDimension

        public long valueDimension()
        Deprecated.
        total dimension of value space, Default = modelDimension
      • version_static

        public static long version_static()
        Deprecated.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.