Skip to content

Commit de0064d

Browse files
committed
docs
1 parent 3c9fc3c commit de0064d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/core/hooks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ def transfer_batch_to_device(self, batch: Any, device: Optional[torch.device] =
525525
526526
Example::
527527
528-
def transfer_batch_to_device(self, batch, device)
528+
def transfer_batch_to_device(self, batch, device):
529529
if isinstance(batch, CustomBatch):
530530
# move all tensors in your custom data structure to the device
531531
batch.samples = batch.samples.to(device)

0 commit comments

Comments
 (0)