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

Commit

Permalink
fix spawn tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
zhreshold committed Sep 17, 2019
1 parent 76ca2cc commit fe975d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/python/unittest/test_gluon_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ def test_multi_worker_forked_data_loader():
@with_seed()
def test_multi_worker_dataloader_release_pool():
# will trigger too many open file if pool is not released properly
for _ in range(100):
if os.name == 'nt':
print('Skip for windows since spawn on windows is too expensive.')
return
for _ in range(10):
A = np.random.rand(999, 2000)
D = mx.gluon.data.DataLoader(A, batch_size=8, num_workers=8)
the_iter = iter(D)
Expand Down

0 comments on commit fe975d4

Please sign in to comment.