diff --git a/deepmd/pt/infer/deep_eval.py b/deepmd/pt/infer/deep_eval.py index b8031993c0..f46d5fce49 100644 --- a/deepmd/pt/infer/deep_eval.py +++ b/deepmd/pt/infer/deep_eval.py @@ -388,7 +388,7 @@ def _eval_model( else: aparam_input = None do_atomic_virial = any( - x.category == OutputVariableCategory.DERV_C_REDU for x in request_defs + x.category == OutputVariableCategory.DERV_C for x in request_defs ) batch_output = model( coord_input,