Skip to content

Commit 1dc262e

Browse files
committed
fix type hint
1 parent 3a4f390 commit 1dc262e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/loops/epoch/evaluation_epoch_loop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ def _build_kwargs(self, batch: Any, batch_idx: int, dataloader_idx: int) -> Dict
241241

242242
def _track_output_for_epoch_end(
243243
self, outputs: List[STEP_OUTPUT], output: Optional[STEP_OUTPUT]
244-
) -> List[Union[ResultCollection, Dict, Tensor]]:
244+
) -> List[STEP_OUTPUT]:
245245
if output is not None:
246246
if isinstance(output, dict):
247247
output = recursive_detach(output, to_cpu=self.trainer.move_metrics_to_cpu)

0 commit comments

Comments
 (0)