Skip to content

Commit a9a924d

Browse files
author
Han Wang
committed
fix class level imports
1 parent bdd015c commit a9a924d

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

deepmd/pt_expt/atomic_model/dp_atomic_model.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,15 @@
1010
dpmodel_setattr,
1111
register_dpmodel_mapping,
1212
)
13+
from deepmd.pt_expt.descriptor.base_descriptor import (
14+
BaseDescriptor,
15+
)
16+
from deepmd.pt_expt.fitting.base_fitting import (
17+
BaseFitting,
18+
)
1319

1420

1521
class DPAtomicModel(DPAtomicModelDP, torch.nn.Module):
16-
# Import at class level to set base classes for deserialization
17-
# These will be used by the dpmodel deserialize method to create pt_expt instances
18-
from deepmd.pt_expt.descriptor.base_descriptor import (
19-
BaseDescriptor,
20-
)
21-
from deepmd.pt_expt.fitting.base_fitting import (
22-
BaseFitting,
23-
)
24-
2522
base_descriptor_cls = BaseDescriptor
2623
base_fitting_cls = BaseFitting
2724

0 commit comments

Comments
 (0)