Interpreter class
- Available extensions
Constructors
- Interpreter.fromBuffer(Uint8List buffer, {InterpreterOptions? options})
-
factory
- Interpreter.fromFile(String modelPath, {InterpreterOptions? options})
-
factory
Properties
- allowBufferHandleOutput ← bool
-
no getter
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputTensorCount → int
-
no setter
-
inputTensors
→ List<
Tensor> -
no setter
- outputTensorCount → int
-
no setter
-
outputTensors
→ List<
Tensor> -
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delete(
) → void -
getInputTensor(
int index) → Tensor -
getOutputTensor(
int index) → Tensor -
invoke(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resizeInputTensor(
int index, List< int> shape) → void -
run(
Object input, Object output) → void -
Available on Interpreter, provided by the InterpreterRunner extension
-
runForMultipleInputs(
List< Object> inputs, Map<int, Object> outputs) → void -
Available on Interpreter, provided by the InterpreterRunner extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited