Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Remove comments

laurensprieme205b07e6067
diff --git a/mobile/lib/services/machine_learning/ml_model.dart b/mobile/lib/services/machine_learning/ml_model.dart
index 384ca2b4c5..daad0ad61a 100644
--- a/mobile/lib/services/machine_learning/ml_model.dart
+++ b/mobile/lib/services/machine_learning/ml_model.dart
@@ -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,