Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions deepmd/backend/dpmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ class DPModelBackend(Backend):
name = "DPModel"
"""The formal name of the backend."""
features: ClassVar[Backend.Feature] = (
Backend.Feature.DEEP_EVAL | Backend.Feature.NEIGHBOR_STAT | Backend.Feature.IO
Backend.Feature.ENTRY_POINT
| Backend.Feature.DEEP_EVAL
| Backend.Feature.NEIGHBOR_STAT
| Backend.Feature.IO
)
"""The features of the backend."""
suffixes: ClassVar[list[str]] = [".dp", ".yaml", ".yml"]
Expand All @@ -59,7 +62,9 @@ def entry_point_hook(self) -> Callable[["Namespace"], None]:
Callable[[Namespace], None]
The entry point hook of the backend.
"""
raise NotImplementedError(f"Unsupported backend: {self.name}")
from deepmd.dpmodel.entrypoints.main import main as deepmd_main

return deepmd_main

@property
def deep_eval(self) -> type["DeepEvalBackend"]:
Expand Down
Loading
Loading