Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zhreshold committed Sep 16, 2019
1 parent bb2187e commit 76ca2cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/mxnet/gluon/data/dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ def __init__(self, dataset, batch_size=None, shuffle=False, sampler=None,
self._pin_device_id = pin_device_id
self._thread_pool = thread_pool
self._timeout = timeout
assert timeout > 0, "timeout must be positive, given {}".format(timeout)

if batch_sampler is None:
if batch_size is None:
Expand Down

0 comments on commit 76ca2cc

Please sign in to comment.