Skip to content

Commit

Permalink
fix se_atten variable names when suffix is given
Browse files Browse the repository at this point in the history
It seems that deepmodeling#1891 wrongly added a suffix to the variable names to make them like `filter_type_all_suffix/matrix_1_suffix`. However, it is expected to be `filter_type_all_suffix/matrix_1` which is consistent in other classes and methods.

Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz authored Jun 23, 2023
1 parent 473893e commit 35797eb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion deepmd/descriptor/se_atten.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,6 @@ def _pass_filter(
type_i,
natoms,
name="filter_type_all" + suffix,
suffix=suffix,
reuse=reuse,
trainable=trainable,
activation_fn=self.filter_activation_fn,
Expand Down

0 comments on commit 35797eb

Please sign in to comment.