AttentionType enum

Enum representing different types of attention mechanisms.

  • unspecified: Default value when the attention type is not specified.
  • causal: Represents causal attention.
  • nonCausal: Represents non-causal attention.

Provides a method to convert a string representation to an AttentionType enum value.

Inheritance
Available extensions

Values

unspecified → const AttentionType

Default value when the attention type is not specified.

causal → const AttentionType

Causal attention.

nonCausal → const AttentionType

Non-causal attention.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

fromString(String value) AttentionType
Converts a string value to the corresponding AttentionType enum value.

Constants

values → const List<AttentionType>
A constant List of the values in this enum, in order of their declaration.