diff --git a/deepmd/descriptor/se_a.py b/deepmd/descriptor/se_a.py index 1349f61464..82df8cc1a3 100644 --- a/deepmd/descriptor/se_a.py +++ b/deepmd/descriptor/se_a.py @@ -1054,8 +1054,8 @@ def _filter( # add zero is meaningless; skip rets.append(ret) start_index += self.sel_a[type_i] - # faster to use accumulate_n than multiple add - xyz_scatter_1 = tf.accumulate_n(rets) + # faster to use add_n than multiple add + xyz_scatter_1 = tf.add_n(rets) else: xyz_scatter_1 = self._filter_lower( type_i,