Interpreter.fromAddress constructor

Interpreter.fromAddress(
  1. int address, {
  2. bool allocated = false,
  3. bool deleted = false,
})

Creates interpreter from an address.

Typically used for passing interpreter between isolates.

Implementation

factory Interpreter.fromAddress(int address,
    {bool allocated = false, bool deleted = false}) {
  final interpreter = Pointer<TfLiteInterpreter>.fromAddress(address);
  return Interpreter._(interpreter)
    .._deleted = deleted
    .._allocated = allocated;
}