Skip to content

Commit 97c9fdb

Browse files
authored
Apply suggestions from code review
1 parent eaccee7 commit 97c9fdb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pytorch_lightning/trainer/distrib_parts.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def transfer_batch_to_tpu(self, batch: Any, tpu_id: Optional[int] = None):
441441
batch: A tensor or collection of tensors.
442442
tpu_id: The id of the TPU core. If omitted, the first available core is chosen.
443443
444-
Returns:
444+
Return:
445445
the tensor on the TPU device.
446446
447447
See Also:
@@ -463,7 +463,7 @@ def transfer_batch_to_gpu(self, batch: Any, gpu_id: Optional[int] = None):
463463
batch: A tensor or collection of tensors.
464464
gpu_id: The id of the GPU device. If omitted, the first available GPU is chosen.
465465
466-
Returns:
466+
Return:
467467
the tensor on the GPU device.
468468
469469
See Also:

pytorch_lightning/utilities/apply_func.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def transfer_batch_to_device(batch: Any, device: torch.device):
4747
for a list of supported collection types.
4848
device: The device to which tensors should be moved
4949
50-
Returns:
50+
Return:
5151
the same collection but with all contained tensors residing on the new device.
5252
5353
See Also:

0 commit comments

Comments
 (0)