fromAsset static method
Creates interpreter from a assetName
Place your .tflite
file in the assets folder. Do not include the "assets/"
directory in assetName.
Example:
final interpreter = await tfl.Interpreter.fromAsset('your_model.tflite');
Implementation
static Future<Interpreter> fromAsset(String assetName,
{InterpreterOptions? options}) async {
Uint8List buffer = await _getBuffer(assetName);
return Interpreter.fromBuffer(buffer, options: options);
}