load static method

TfLiteBindings load({
  1. String? libraryPath,
})

Load TFLite C library from the platform-specific location.

Implementation

static TfLiteBindings load({String? libraryPath}) {
  if (_instance != null) return _instance!;

  final path = libraryPath ?? _defaultLibraryPath();
  final lib = DynamicLibrary.open(path);
  _instance = TfLiteBindings._(lib);
  return _instance!;
}