Fix test_ind_worker_queue by setting max_num_worker based on system resource (#63779)
authorErjia Guan <erjia@fb.com>
Thu, 2 Sep 2021 19:25:15 +0000 (12:25 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 2 Sep 2021 19:36:56 +0000 (12:36 -0700)
commit3cd0a4ac153ea8404f0e960ddacf00098689e600
tree3970b0b5db64bf08ed7399973ac4ffa4641de9dd
parent7d010539c9b6356cbaae8f7accc5b5cf8cc0d0cc
Fix test_ind_worker_queue by setting max_num_worker based on system resource (#63779)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/63779

Fixes #63657

Test Plan: Imported from OSS

Reviewed By: gchanan

Differential Revision: D30494185

Pulled By: ejguan

fbshipit-source-id: d1bd24299b25d589889604aaf18ad347bdff4df4
test/test_dataloader.py