You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by yo...@apache.org on 2025/11/26 09:40:36 UTC
(iotdb) 04/04: Update model_manager.py
This is an automated email from the ASF dual-hosted git repository.
yongzao pushed a commit to branch model-management
in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit baa2c15d68d8c92dd7e5ef888f4fcb143aaa938e
Author: Yongzao <53...@qq.com>
AuthorDate: Wed Nov 26 17:40:04 2025 +0800
Update model_manager.py
---
iotdb-core/ainode/iotdb/ainode/core/manager/model_manager.py | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/iotdb-core/ainode/iotdb/ainode/core/manager/model_manager.py b/iotdb-core/ainode/iotdb/ainode/core/manager/model_manager.py
index a07552922ff..aa0d8a31c1f 100644
--- a/iotdb-core/ainode/iotdb/ainode/core/manager/model_manager.py
+++ b/iotdb-core/ainode/iotdb/ainode/core/manager/model_manager.py
@@ -37,7 +37,6 @@ from iotdb.thrift.common.ttypes import TSStatus
logger = Logger()
-
class ModelManager:
def __init__(self):
self.models_dir = os.path.join(
@@ -108,14 +107,3 @@ class ModelManager:
def is_model_registered(self, model_id: str) -> bool:
return self.storage.is_model_registered(model_id)
-
-
-# Create a global model manager instance
-_default_manager: Optional[ModelManager] = None
-
-
-def get_model_manager() -> ModelManager:
- global _default_manager
- if _default_manager is None:
- _default_manager = ModelManager()
- return _default_manager