getOutputTensors method

List<Tensor> getOutputTensors()

Gets all output tensors associated with the model.

Implementation

List<Tensor> getOutputTensors() {
  return _outputTensors ??= _buildTensorList(
    tfliteBinding.TfLiteInterpreterGetOutputTensorCount(_interpreter),
    (i) => Tensor(
      tfliteBinding.TfLiteInterpreterGetOutputTensor(_interpreter, i),
    ),
  );
}