refactor: abstract graph mode support into platform interface (#25161)

Signed-off-by: Yizhou Liu <liu_yizhou@outlook.com>
This commit is contained in:
Yizhou
2025-09-22 10:22:29 +00:00
committed by GitHub
parent 4cf71cc88a
commit b6f01bd9a7
5 changed files with 23 additions and 7 deletions
+7
View File
@@ -587,6 +587,13 @@ class Platform:
"""
return False
@classmethod
def support_static_graph_mode(cls) -> bool:
"""
Returns if the graph mode is supported by the current platform.
"""
return False
@classmethod
def use_sync_weight_loader(cls) -> bool:
"""