Skip to content

Commit bffe486

Browse files
committed
fix(pt): Specify type for type_embd_data in DescrptBlockSeAtten
1 parent c42ffe5 commit bffe486

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deepmd/pt/model/descriptor/se_atten.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ def __init__(
285285
[nn.Parameter(torch.zeros(0, dtype=self.prec, device=env.DEVICE))]
286286
)
287287
# For type embedding compression
288-
self.type_embd_data = None
288+
self.type_embd_data: Optional[torch.Tensor] = None
289289

290290
def get_rcut(self) -> float:
291291
"""Returns the cut-off radius."""

0 commit comments

Comments
 (0)