Skip to content

Commit

Permalink
fix(pt): fix get_dim for DescrptDPA1Compat
Browse files Browse the repository at this point in the history
  • Loading branch information
iProzd committed Jul 23, 2024
1 parent a6ea2c1 commit 05842da
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions deepmd/tf/descriptor/se_atten.py
Original file line number Diff line number Diff line change
Expand Up @@ -2194,6 +2194,14 @@ def __init__(
else:
self.embd_input_dim = 1

def get_dim_out(self) -> int:
"""Returns the output dimension of this descriptor."""
return (

Check warning on line 2199 in deepmd/tf/descriptor/se_atten.py

View check run for this annotation

Codecov / codecov/patch

deepmd/tf/descriptor/se_atten.py#L2199

Added line #L2199 was not covered by tests
super().get_dim_out() + self.tebd_dim
if self.concat_output_tebd
else super().get_dim_out()
)

def build(
self,
coord_: tf.Tensor,
Expand Down

0 comments on commit 05842da

Please sign in to comment.