fix(no_pp_scheduler): drop out and label if not used

pull/39/head
Sun Peng 2023-07-08 17:08:19 +08:00
parent dfb2751f00
commit 0bfb937710
1 changed files with 3 additions and 3 deletions

View File

@ -269,7 +269,7 @@ class NonPipelineScheduler(BaseScheduler):
if return_loss:
loss += _loss
if return_output_label:
outputs.append(_output)
labels.append(_label)