Module class
- Inheritance
-
- Object
- NativeObject
- Module
Constructors
- Module.extract(VecVARP inputs, VecVARP outputs, {bool forTrain = false})
-
factory
- Module.fromPointer(mnn_module_t ptr, {bool attach = true, int? externalSize})
-
Module.loadFromBuffer(Uint8List buffer, {List<
String> ? inputs, List<String> ? outputs, RuntimeManager? runtimeManager, ModuleConfig? config}) -
factory
-
Module.loadFromFile(String path, {List<
String> ? inputs, List<String> ? outputs, RuntimeManager? runtimeManager, ModuleConfig? config}) -
factory
Properties
- attach → bool
-
finalinherited
- finalizer → NativeFinalizer
-
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- info → ModuleInfo
-
no setter
- isEmpty → bool
-
no setterinherited
- isTraining ↔ bool
-
getter/setter pair
- name ↔ String
-
getter/setter pair
-
props
→ List<
Object?> -
no setteroverride
-
ptr
→ Pointer<
Void> -
Gets the pointer to the underlying C++ object
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ String
-
getter/setter pair
Methods
-
addParameter(
VARP parameter) → int -
clearCache(
) → void -
clone(
{}) → Module -
dispose(
) → void -
inherited
-
forward(
VARP input) → VARP -
forwardAsync(
VARP input) → Future< VARP> -
loadParams(
VecVARP parameters) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onForward(
VecVARP inputs) → VecVARP -
onForwardAsync(
VecVARP inputs) → Future< VecVARP> -
reattach(
Pointer< Void> ptr) → void -
inherited
-
release(
) → void -
Releases the underlying C++ object
Subclasses must implement specific release logic
override
-
setParameter(
VARP parameter, int index) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited