Skip to content

Commit a4b72da

Browse files
committed
feat(pt): add dynamic_index version1
1 parent e96bc90 commit a4b72da

7 files changed

Lines changed: 773 additions & 16 deletions

File tree

deepmd/dpmodel/descriptor/dpa3.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def __init__(
3232
angle_init_use_sin: bool = False,
3333
smooth_edge_update: bool = False,
3434
angle_multi_freq: Optional[str] = None,
35+
no_sel: bool = False,
3536
) -> None:
3637
r"""The constructor for the RepFlowArgs class which defines the parameters of the repflow block in DPA3 descriptor.
3738
@@ -113,6 +114,7 @@ def __init__(
113114
self.angle_init_use_sin = angle_init_use_sin
114115
self.smooth_edge_update = smooth_edge_update
115116
self.angle_multi_freq = angle_multi_freq
117+
self.no_sel = no_sel
116118

117119
def __getitem__(self, key):
118120
if hasattr(self, key):

deepmd/pt/model/descriptor/dpa3.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ def init_subclass_params(sub_data, sub_class):
167167
angle_init_use_sin=self.repflow_args.angle_init_use_sin,
168168
smooth_edge_update=self.repflow_args.smooth_edge_update,
169169
angle_multi_freq=self.repflow_args.angle_multi_freq,
170+
no_sel=self.repflow_args.no_sel,
170171
exclude_types=exclude_types,
171172
env_protection=env_protection,
172173
precision=precision,

0 commit comments

Comments
 (0)