mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
fix legacy comment after variable tensor merge (#7771)
This commit is contained in:
parent
60745b3380
commit
ee628d64b9
|
|
@ -6,8 +6,7 @@ def scatter(inputs, target_gpus, dim=0):
|
|||
r"""
|
||||
Slices tensors into approximately equal chunks and
|
||||
distributes them across given GPUs. Duplicates
|
||||
references to objects that are not tensors. Does not
|
||||
support Tensors.
|
||||
references to objects that are not tensors.
|
||||
"""
|
||||
def scatter_map(obj):
|
||||
if isinstance(obj, torch.Tensor):
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user