getInputTensor method

Tensor getInputTensor(
  1. String name
)

Returns the input Tensor identified by name.

Throws ArgumentError if name is not a valid input name.

Implementation

Tensor getInputTensor(String name) =>
    _inputTensorCache[name] ??= _getTensorByName(
      name,
      tfliteBinding.TfLiteSignatureRunnerGetInputTensor,
      'Input',
      () => inputNames,
    );