PoolingType enum
Enum representing different types of pooling operations.
The available pooling types are:
unspecified
: Default value when no pooling type is specified.none
: No pooling operation.mean
: Mean pooling operation.cls
: CLS token pooling operation.last
: Last token pooling operation.rank
: Rank pooling operation.
The fromString
method converts a string value to the corresponding
PoolingType
enum value. If the string does not match any known pooling
type, it returns PoolingType.unspecified
.
Values
- unspecified → const PoolingType
-
Default value when no pooling type is specified.
- none → const PoolingType
-
No pooling operation.
- mean → const PoolingType
-
Mean pooling operation.
- cls → const PoolingType
-
CLS token pooling operation.
- last → const PoolingType
-
Last token pooling operation.
- rank → const PoolingType
-
Rank pooling operation.
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) → PoolingType -
Converts a string value to the corresponding
PoolingType
enum value.
Constants
-
values
→ const List<
PoolingType> - A constant List of the values in this enum, in order of their declaration.