-
-
Notifications
You must be signed in to change notification settings - Fork 692
Typo in engine.__init__._prepare_batch docstring #2661
Copy link
Copy link
Closed
Description
_prepare_batch is being used for both training and evaluation:
ignite/ignite/engine/__init__.py
Lines 33 to 41 in e119a15
| def _prepare_batch( | |
| batch: Sequence[torch.Tensor], device: Optional[Union[str, torch.device]] = None, non_blocking: bool = False | |
| ) -> Tuple[Union[torch.Tensor, Sequence, Mapping, str, bytes], ...]: | |
| """Prepare batch for training: pass to a device with options.""" | |
| x, y = batch | |
| return ( | |
| convert_tensor(x, device=device, non_blocking=non_blocking), | |
| convert_tensor(y, device=device, non_blocking=non_blocking), | |
| ) |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels