Skip to content

Commit 415e0ea

Browse files
committed
fix mac test_reader_reset
1 parent f6cbe10 commit 415e0ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python/paddle/fluid/tests/unittests/test_reader_reset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ def fake_data_generator():
4141
self.data_file_name, reader, feeder)
4242

4343
def setUp(self):
44+
# set parallel threads to fit 20 batches in line 49
45+
os.environ['CPU_NUM'] = str(20)
4446
self.use_cuda = fluid.core.is_compiled_with_cuda()
4547
self.data_file_name = './reader_reset_test.recordio'
4648
self.ins_shape = [3]

0 commit comments

Comments
 (0)