Skip to content

Commit 9c767ad

Browse files
authored
feat(dpmodel/jax): add entry point for dpmodel and jax backend (#4284)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced entry point loading functionality for enhanced module initialization in both `dpmodel` and `jax` components of the DeepMD framework. These changes improve the framework's functionality and streamline backend configuration. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: Jinzhe Zeng <[email protected]>
1 parent 0d13911 commit 9c767ad

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

deepmd/dpmodel/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# SPDX-License-Identifier: LGPL-3.0-or-later
2+
from deepmd.utils.entry_point import (
3+
load_entry_point,
4+
)
5+
26
from .common import (
37
DEFAULT_PRECISION,
48
PRECISION_DICT,
@@ -32,3 +36,6 @@
3236
"get_deriv_name",
3337
"get_hessian_name",
3438
]
39+
40+
41+
load_entry_point("deepmd.dpmodel")

deepmd/jax/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
# SPDX-License-Identifier: LGPL-3.0-or-later
22
"""JAX backend."""
3+
4+
from deepmd.utils.entry_point import (
5+
load_entry_point,
6+
)
7+
8+
load_entry_point("deepmd.jax")

0 commit comments

Comments
 (0)