Skip to content

Commit

Permalink
prune redundant files
Browse files Browse the repository at this point in the history
  • Loading branch information
HydrogenSulfate committed Nov 15, 2024
1 parent f1fe02a commit 27e6f2f
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 110 deletions.
8 changes: 2 additions & 6 deletions deepmd/pd/__init__.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
# SPDX-License-Identifier: LGPL-3.0-or-later

# import customized OPs globally
from deepmd.pd.cxx_op import (
ENABLE_CUSTOMIZED_OP,
)

from deepmd.utils.entry_point import (
load_entry_point,
)

load_entry_point("deepmd.pd")

__all__ = [
"ENABLE_CUSTOMIZED_OP",
]
__all__ = []
25 changes: 0 additions & 25 deletions deepmd/pd/cxx_op.py

This file was deleted.

17 changes: 2 additions & 15 deletions deepmd/pd/entrypoints/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,12 @@
from deepmd.common import (
expand_sys_str,
)
from deepmd.env import (
GLOBAL_CONFIG,
)
from deepmd.loggers.loggers import (
set_log_handles,
)
from deepmd.main import (
parse_args,
)
from deepmd.pd.cxx_op import (
ENABLE_CUSTOMIZED_OP,
)
from deepmd.pd.infer import (
inference,
)
Expand Down Expand Up @@ -216,18 +210,11 @@ def get_ngpus(self) -> int:

def get_backend_info(self) -> dict:
"""Get backend information."""
if ENABLE_CUSTOMIZED_OP:
op_info = {
"build with PD ver": GLOBAL_CONFIG["pd_version"],
"build with PD inc": GLOBAL_CONFIG["pd_include_dir"].replace(";", "\n"),
"build with PD lib": GLOBAL_CONFIG["pd_libs"].replace(";", "\n"),
}
else:
op_info = {}
op_info = {}
return {
"Backend": "Paddle",
"PD ver": f"v{paddle.__version__}-g{paddle.version.commit[:11]}",
"Enable custom OP": ENABLE_CUSTOMIZED_OP,
"Enable custom OP": False,
**op_info,
}

Expand Down
6 changes: 3 additions & 3 deletions deepmd/pd/train/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
from deepmd.common import (
symlink_prefix_files,
)
from deepmd.dpmodel.utils.learning_rate import (
LearningRateExp,
)
from deepmd.loggers.training import (
format_training_message_per_task,
)
Expand Down Expand Up @@ -59,9 +62,6 @@
SAMPLER_RECORD,
enable_prim,
)
from deepmd.pd.utils.learning_rate import (
LearningRateExp,
)
from deepmd.pd.utils.stat import (
make_stat_input,
)
Expand Down
31 changes: 0 additions & 31 deletions deepmd/pd/utils/cache.py

This file was deleted.

8 changes: 0 additions & 8 deletions deepmd/pd/utils/learning_rate.py

This file was deleted.

16 changes: 0 additions & 16 deletions deepmd/pd/utils/plugin.py

This file was deleted.

6 changes: 0 additions & 6 deletions source/tests/pd/requirements.txt

This file was deleted.

0 comments on commit 27e6f2f

Please sign in to comment.