Skip to content

Commit f87c3d3

Browse files
iProzdnjzjz
andauthored
Update deepmd/pt/model/model/ener_model.py
Co-authored-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu> Signed-off-by: Duo <50307526+iProzd@users.noreply.github.com>
1 parent 6077e1d commit f87c3d3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deepmd/pt/model/model/ener_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def get_observed_type_list(self) -> list[str]:
6262
)
6363
bias_mask = torch.gt(torch.abs(out_bias), 1e-6).any(
6464
dim=-1
65-
) # 1e-6 for stability
65+
).detach().cpu() # 1e-6 for stability
6666

6767
observed_type_list: list[str] = []
6868
for i in range(len(type_map)):

0 commit comments

Comments
 (0)