Skip to content

Commit

Permalink
fix import bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Han Wang committed Feb 13, 2024
1 parent 820d9f6 commit 5707074
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions deepmd/dpmodel/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
from .atomic_model import (
DPAtomicModel,
)
from .common import (
DEFAULT_PRECISION,
PRECISION_DICT,
Expand All @@ -22,7 +19,6 @@

__all__ = [
"DPModel",
"DPAtomicModel",
"PRECISION_DICT",
"DEFAULT_PRECISION",
"NativeOP",
Expand Down
2 changes: 1 addition & 1 deletion deepmd/dpmodel/model/dp_model.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: LGPL-3.0-or-later
from deepmd.dpmodel import (
from deepmd.dpmodel.atomic_model import (
DPAtomicModel,
)

Expand Down
2 changes: 1 addition & 1 deletion source/tests/pt/model/test_dp_atomic_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import numpy as np
import torch

from deepmd.dpmodel import DPAtomicModel as DPDPAtomicModel
from deepmd.dpmodel.atomic_model import DPAtomicModel as DPDPAtomicModel
from deepmd.dpmodel.descriptor import DescrptSeA as DPDescrptSeA
from deepmd.dpmodel.fitting import InvarFitting as DPInvarFitting
from deepmd.pt.model.atomic_model import (
Expand Down

0 comments on commit 5707074

Please sign in to comment.