blob: 1de5c2de63bfe969b989c0edb013bec45c896b46 [file] [log] [blame]
from typing import TypeVar, Optional, Iterator
from . import Sampler, Dataset
T_co = TypeVar('T_co', covariant=True)
class DistributedSampler(Sampler[T_co]):
def __init__(self, dataset: Dataset, num_replicas: Optional[int]=..., rank: Optional[int]=...): ...
def __iter__(self) -> Iterator[int]: ...
def __len__(self) -> int: ...
def set_epoch(self, epoch: int) -> None: ...