getInputTensor method

Tensor getInputTensor(
  1. int index
)

Implementation

Tensor getInputTensor(int index) {
  final int tensorsCount = TfLiteInterpreterGetInputTensorCount(_ref);
  if (index < 0 || index >= tensorsCount) {
    throw ArgumentError('Invalid input Tensor index: $index');
  }
  return Tensor(TfLiteInterpreterGetInputTensor(_ref, index));
}