getInputTensors method

List<Tensor> getInputTensors()

Gets all input tensors associated with the model.

Implementation

List<Tensor> getInputTensors() {
  return _inputTensors ??= _buildTensorList(
    tfliteBinding.TfLiteInterpreterGetInputTensorCount(_interpreter),
    (i) => Tensor(
      tfliteBinding.TfLiteInterpreterGetInputTensor(_interpreter, i),
    ),
  );
}