Skip to content

Commit

Permalink
tile + reshape
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz authored Apr 1, 2024
1 parent 56e6cac commit 3563de7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepmd/tf/descriptor/se_atten.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,7 @@ def _pass_filter(
)
if self.smooth:
inputs_i = tf.where(
tf.cast(mask, tf.bool), inputs_i, self.avg_looked_up
tf.cast(mask, tf.bool), inputs_i, tf.reshape(tf.tile(self.avg_looked_up, [1, 1, 4]), tf.shape(inputs_i))
)
else:
inputs_i *= mask
Expand Down

0 comments on commit 3563de7

Please sign in to comment.