invoke method

void invoke()

Runs this signature.

allocateTensors must have been called before invoking. Use the higher-level run method which handles allocation automatically.

Implementation

void invoke() {
  checkState(!_closed, message: 'SignatureRunner is already closed.');
  checkState(
    _allocated,
    message: 'Tensors not allocated. Call allocateTensors() before invoke().',
  );
  checkState(
    tfliteBinding.TfLiteSignatureRunnerInvoke(_runner) ==
        TfLiteStatus.kTfLiteOk,
  );
}