predictorInstance method

Future<void> predictorInstance()

Implementation

Future<void> predictorInstance() async {
  if (!_isInitialized) {
    final success = await loadModel();
    if (!success) {
      throw ModelNotLoadedException(
        'Model failed to load. Cannot perform inference.',
      );
    }
  }
  await _modelManager!.predictorInstance();
}