MpClassifications class final
Defines classification results for a given classifier head.
- Inheritance
- Implemented types
- Available extensions
Constructors
Properties
-
address
→ Pointer<
T> -
Available on T, provided by the StructAddress extension
The memory address of the underlying data.no setter -
categories
↔ Pointer<
MpCategory> -
The array of predicted categories, usually sorted by descending scores,
e.g. from high to low probability.
getter/setter pair
- categories_count ↔ int
-
The number of elements in the categories array.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- head_index ↔ int
-
The index of the classifier head (i.e. output tensor) these categories
refer to. This is useful for multi-head models.
getter/setter pair
-
head_name
↔ Pointer<
Char> -
The optional name of the classifier head, as provided in the TFLite Model
Metadata 1 if present. This is useful for multi-head models.
getter/setter pair
- 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
-
$allocate(
Allocator $allocator, {required Pointer< MpCategory> categories, required int categories_count, required int head_index, required Pointer<Char> head_name}) → Pointer<MpClassifications>