getVariableTensorCount method

int getVariableTensorCount()

Returns the number of variable (trainable) tensors in the model.

Implementation

int getVariableTensorCount() {
  checkState(
    !_deleted,
    message: 'Should not access interpreter after it has been closed.',
  );
  return tfliteBinding.TfLiteInterpreterGetVariableTensorCount(_interpreter);
}