Skip to content

Commit 2cf38ea

Browse files
committed
update jax and numpy backend
1 parent 44cf67f commit 2cf38ea

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

deepmd/dpmodel/infer/deep_eval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def model_type(self) -> type["DeepEvalWrapper"]:
137137
return DeepDOS
138138
elif "dipole" in model_output_type:
139139
return DeepDipole
140-
elif "polar" in model_output_type:
140+
elif "polar" in model_output_type or "polarizability" in model_output_type:
141141
return DeepPolar
142142
elif "wfc" in model_output_type:
143143
return DeepWFC

deepmd/jax/infer/deep_eval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def model_type(self) -> type["DeepEvalWrapper"]:
158158
return DeepDOS
159159
elif "dipole" in model_output_type:
160160
return DeepDipole
161-
elif "polar" in model_output_type:
161+
elif "polar" in model_output_type or "polarizability" in model_output_type:
162162
return DeepPolar
163163
elif "wfc" in model_output_type:
164164
return DeepWFC

0 commit comments

Comments
 (0)