[mob][photos] Remove comments
This commit is contained in:
@@ -26,8 +26,6 @@ abstract class MlModel {
|
||||
int get sessionAddress =>
|
||||
usePlatformPlugin ? _nativePluginSessionIndex : _ffiSessionAddress;
|
||||
|
||||
// isInitialized is used to check if the model is loaded by the ffi based
|
||||
// plugin
|
||||
bool _isFfiInitialized = false;
|
||||
int _ffiSessionAddress = -1;
|
||||
|
||||
@@ -72,9 +70,7 @@ abstract class MlModel {
|
||||
}
|
||||
}
|
||||
|
||||
// Initializes the model.
|
||||
// If `useEntePlugin` is set to true, the custom plugin is used for initialization.
|
||||
// Note: The custom plugin requires a dedicated isolate for loading the model to ensure thread safety and performance isolation.
|
||||
// Note: The platform plugin requires a dedicated isolate for loading the model to ensure thread safety and performance isolation.
|
||||
// In contrast, the current FFI-based plugin leverages the session memory address for session management, which does not require a dedicated isolate.
|
||||
static Future<int> loadModel(
|
||||
String modelName,
|
||||
|
||||
Reference in New Issue
Block a user