Skip to content

Commit

Permalink
Update trainer.py - fix DistributedSampler import (#93)
Browse files Browse the repository at this point in the history
DistributedSampler is used but not imported in `trainer.py`
  • Loading branch information
bfineran authored Sep 25, 2023
1 parent 6167de3 commit e25912d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/transformers/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
from packaging import version
from torch import nn
from torch.utils.data import DataLoader, Dataset, RandomSampler, SequentialSampler
from torch.utils.data.distributed import DistributedSampler

from . import __version__
from .configuration_utils import PretrainedConfig
Expand Down

0 comments on commit e25912d

Please sign in to comment.