fixed utils docstring and add example to readme (#200)

This commit is contained in:
Frank Lee
2022-02-03 11:37:17 +08:00
committed by GitHub
parent b9a761b9b8
commit 812357d63c
2 changed files with 6 additions and 6 deletions

View File

@@ -123,7 +123,7 @@ def get_dataloader(dataset,
.. note:: When pipeline parallel is enabled, shuffle cannot be True as it will result in mismatch between input data
on the 1st stage and label on the last stage
:param dataset: A :class:`utils.data.dataset dataset`
:param dataset: A :class:`torch.utils.data.Dataset` object
:param shuffle: Whether to shuffle the dataset
:param seed: Random worker seed, defaults to 1024
:param add_sampler: Add DistributedDataParallelSampelr to the dataset