__init__.pyi 503 Bytes
Newer Older
Mandeep Singh Baines's avatar
Mandeep Singh Baines committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.

#MODIFIED BY TORCHGPIPE
from typing import Iterable, Optional, Tuple

from torch import Tensor


def scatter(tensor: Tensor,
            devices: Iterable[int],
            chunk_sizes: Optional[Iterable[int]] = None,
            dim: int = 0,
            ) -> Tuple[Tensor, ...]: ...


def gather(tensors: Iterable[Tensor],
           dim: int = 0,
           destination: Optional[int] = None,
           ) -> Tensor: ...

#END