-
Notifications
You must be signed in to change notification settings - Fork 526
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
breaking: move deepmd to deepmd.tf (#3177)
Signed-off-by: Jinzhe Zeng <[email protected]>
- Loading branch information
Showing
270 changed files
with
921 additions
and
910 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,11 @@ | ||
# SPDX-License-Identifier: LGPL-3.0-or-later | ||
"""Root of the deepmd package, exposes all public classes and submodules.""" | ||
|
||
try: | ||
from importlib import ( | ||
metadata, | ||
) | ||
except ImportError: # for Python<3.8 | ||
import importlib_metadata as metadata | ||
|
||
import deepmd.utils.network as network | ||
|
||
from . import ( | ||
cluster, | ||
descriptor, | ||
fit, | ||
loss, | ||
nvnmd, | ||
utils, | ||
) | ||
from .env import ( | ||
set_mkl, | ||
) | ||
from .infer import ( | ||
DeepEval, | ||
DeepPotential, | ||
) | ||
from .infer.data_modifier import ( | ||
DipoleChargeModifier, | ||
) | ||
|
||
set_mkl() | ||
|
||
try: | ||
from deepmd_utils._version import version as __version__ | ||
except ImportError: | ||
from .__about__ import ( | ||
__version__, | ||
) | ||
|
||
# load third-party plugins | ||
try: | ||
eps = metadata.entry_points(group="deepmd") | ||
except TypeError: | ||
eps = metadata.entry_points().get("deepmd", []) | ||
for ep in eps: | ||
ep.load() | ||
|
||
__all__ = [ | ||
"__version__", | ||
"descriptor", | ||
"fit", | ||
"loss", | ||
"utils", | ||
"cluster", | ||
"network", | ||
"DeepEval", | ||
"DeepPotential", | ||
"DipoleChargeModifier", | ||
"nvnmd", | ||
] |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# SPDX-License-Identifier: LGPL-3.0-or-later | ||
"""Root of the deepmd package, exposes all public classes and submodules.""" | ||
|
||
try: | ||
from importlib import ( | ||
metadata, | ||
) | ||
except ImportError: # for Python<3.8 | ||
import importlib_metadata as metadata | ||
|
||
import deepmd.tf.utils.network as network | ||
|
||
from . import ( | ||
cluster, | ||
descriptor, | ||
fit, | ||
loss, | ||
nvnmd, | ||
utils, | ||
) | ||
from .env import ( | ||
set_mkl, | ||
) | ||
from .infer import ( | ||
DeepEval, | ||
DeepPotential, | ||
) | ||
from .infer.data_modifier import ( | ||
DipoleChargeModifier, | ||
) | ||
|
||
set_mkl() | ||
|
||
try: | ||
from deepmd_utils._version import version as __version__ | ||
except ImportError: | ||
from .__about__ import ( | ||
__version__, | ||
) | ||
|
||
# load third-party plugins | ||
try: | ||
eps = metadata.entry_points(group="deepmd") | ||
except TypeError: | ||
eps = metadata.entry_points().get("deepmd", []) | ||
for ep in eps: | ||
ep.load() | ||
|
||
__all__ = [ | ||
"__version__", | ||
"descriptor", | ||
"fit", | ||
"loss", | ||
"utils", | ||
"cluster", | ||
"network", | ||
"DeepEval", | ||
"DeepPotential", | ||
"DipoleChargeModifier", | ||
"nvnmd", | ||
] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
Tuple, | ||
) | ||
|
||
from deepmd.env import ( | ||
from deepmd.tf.env import ( | ||
tf, | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
|
||
import hostlist | ||
|
||
from deepmd.cluster import ( | ||
from deepmd.tf.cluster import ( | ||
local, | ||
) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.