Skip to content

Commit 8fb33c8

Browse files
committed
merge develop
2 parents 0092ad3 + a56b663 commit 8fb33c8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

python/paddle/fluid/tests/unittests/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ list(REMOVE_ITEM TEST_OPS test_cond_op) # FIXME(qijun): https://github.com/Paddl
2828

2929
list(REMOVE_ITEM TEST_OPS op_test) # op_test is a helper python file, not a test
3030
list(REMOVE_ITEM TEST_OPS decorators) # decorators is a helper python file, not a test
31+
if(APPLE)
32+
# this op is not support on mac
33+
list(REMOVE_ITEM TEST_OPS test_fusion_seqexpand_concat_fc_op)
34+
endif()
3135

3236
function(py_test_modules TARGET_NAME)
3337
if(WITH_TESTING)

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# limitations under the License.
1414

1515
from __future__ import print_function
16-
16+
import os
1717
import paddle.fluid as fluid
1818
import paddle
1919
import numpy as np
@@ -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)