Skip to content

Commit 3ccefcc

Browse files
committed
fix name in dpmodel
1 parent 5e2a9e6 commit 3ccefcc

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

deepmd/dpmodel/descriptor/dpa3.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def __init__(
150150
skip_stat: bool = False,
151151
optim_update: bool = True,
152152
smooth_edge_update: bool = False,
153-
use_ext_ebd: bool = False,
153+
use_loc_mapping: bool = True,
154154
) -> None:
155155
self.n_dim = n_dim
156156
self.e_dim = e_dim
@@ -177,7 +177,7 @@ def __init__(
177177
self.a_compress_use_split = a_compress_use_split
178178
self.optim_update = optim_update
179179
self.smooth_edge_update = smooth_edge_update
180-
self.use_ext_ebd = use_ext_ebd
180+
self.use_loc_mapping = use_loc_mapping
181181

182182
def __getitem__(self, key):
183183
if hasattr(self, key):
@@ -209,7 +209,7 @@ def serialize(self) -> dict:
209209
"fix_stat_std": self.fix_stat_std,
210210
"optim_update": self.optim_update,
211211
"smooth_edge_update": self.smooth_edge_update,
212-
"use_ext_ebd": self.use_ext_ebd,
212+
"use_loc_mapping": self.use_loc_mapping,
213213
}
214214

215215
@classmethod
@@ -265,7 +265,7 @@ def __init__(
265265
use_econf_tebd: bool = False,
266266
use_tebd_bias: bool = False,
267267
type_map: Optional[list[str]] = None,
268-
use_ext_ebd: bool = False,
268+
use_loc_mapping: bool = True,
269269
) -> None:
270270
super().__init__()
271271

@@ -279,7 +279,7 @@ def init_subclass_params(sub_data, sub_class):
279279
f"Input args must be a {sub_class.__name__} class or a dict!"
280280
)
281281

282-
self.use_ext_ebd = use_ext_ebd
282+
self.use_loc_mapping = use_loc_mapping
283283
self.repflow_args = init_subclass_params(repflow, RepFlowArgs)
284284
self.activation_function = activation_function
285285

@@ -312,7 +312,7 @@ def init_subclass_params(sub_data, sub_class):
312312
env_protection=env_protection,
313313
precision=precision,
314314
seed=child_seed(seed, 1),
315-
use_ext_ebd=use_ext_ebd,
315+
use_loc_mapping=use_loc_mapping,
316316
)
317317

318318
self.use_econf_tebd = use_econf_tebd
@@ -550,7 +550,7 @@ def serialize(self) -> dict:
550550
"use_tebd_bias": self.use_tebd_bias,
551551
"type_map": self.type_map,
552552
"type_embedding": self.type_embedding.serialize(),
553-
"use_ext_ebd": self.use_ext_ebd,
553+
"use_loc_mapping": self.use_loc_mapping,
554554
}
555555
repflow_variable = {
556556
"edge_embd": repflows.edge_embd.serialize(),

deepmd/dpmodel/descriptor/repflows.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def __init__(
171171
optim_update: bool = True,
172172
smooth_edge_update: bool = False,
173173
seed: Optional[Union[int, list[int]]] = None,
174-
use_ext_ebd: bool = False,
174+
use_loc_mapping: bool = True,
175175
) -> None:
176176
super().__init__()
177177
self.e_rcut = float(e_rcut)
@@ -202,7 +202,7 @@ def __init__(
202202
self.a_compress_use_split = a_compress_use_split
203203
self.optim_update = optim_update
204204
self.smooth_edge_update = smooth_edge_update
205-
self.use_ext_ebd = use_ext_ebd
205+
self.use_loc_mapping = use_loc_mapping
206206

207207
self.n_dim = n_dim
208208
self.e_dim = e_dim
@@ -585,7 +585,7 @@ def serialize(self):
585585
"repflow_layers": [layer.serialize() for layer in self.layers],
586586
"env_mat_edge": self.env_mat_edge.serialize(),
587587
"env_mat_angle": self.env_mat_angle.serialize(),
588-
"use_ext_ebd": self.use_ext_ebd,
588+
"use_loc_mapping": self.use_loc_mapping,
589589
"@variables": {
590590
"davg": to_numpy_array(self["davg"]),
591591
"dstd": to_numpy_array(self["dstd"]),

0 commit comments

Comments
 (0)