Merge pull request #13367 from JiabinYang/mac/unittest412

fix mac test_reader_reset
fix-develop-build.sh
Jiabin Yang 7 years ago committed by GitHub
commit ae0d806cc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -13,7 +13,7 @@
# limitations under the License.
from __future__ import print_function
import os
import paddle.fluid as fluid
import paddle
import numpy as np
@ -41,6 +41,8 @@ class TestReaderReset(unittest.TestCase):
self.data_file_name, reader, feeder)
def setUp(self):
# set parallel threads to fit 20 batches in line 49
os.environ['CPU_NUM'] = str(20)
self.use_cuda = fluid.core.is_compiled_with_cuda()
self.data_file_name = './reader_reset_test.recordio'
self.ins_shape = [3]

Loading…
Cancel
Save