We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77609c1 + a0bd530 commit 1fa1eb2Copy full SHA for 1fa1eb2
1 file changed
deepmd/pt_expt/atomic_model/dp_atomic_model.py
@@ -7,19 +7,16 @@
7
register_dpmodel_mapping,
8
torch_module,
9
)
10
+from deepmd.pt_expt.descriptor.base_descriptor import (
11
+ BaseDescriptor,
12
+)
13
+from deepmd.pt_expt.fitting.base_fitting import (
14
+ BaseFitting,
15
16
17
18
@torch_module
19
class DPAtomicModel(DPAtomicModelDP):
- # Import at class level to set base classes for deserialization
- # These will be used by the dpmodel deserialize method to create pt_expt instances
- from deepmd.pt_expt.descriptor.base_descriptor import (
- BaseDescriptor,
- )
- from deepmd.pt_expt.fitting.base_fitting import (
20
- BaseFitting,
21
22
-
23
base_descriptor_cls = BaseDescriptor
24
base_fitting_cls = BaseFitting
25
0 commit comments