fix legacy comment after variable tensor merge (#7771)

This commit is contained in:
Tongzhou Wang 2018-05-22 19:08:42 -04:00 committed by Soumith Chintala
parent 60745b3380
commit ee628d64b9

View File

@ -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):