Merge pull request #16658 from JiabinYang/fix/transformer_random_failed

test=develop, fix transformer in dygraph
devel
lujun 6 years ago committed by GitHub
commit 38382f8e27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -302,8 +302,11 @@ use_py_reader = False
# if we run sync mode
sync = False
# how many batches we use
batch_num = 50
if not core.is_compiled_with_cuda():
# how many batches we use
batch_num = 50
else:
batch_num = 5
np.random.seed = 1
src_word_np = np.random.randint(

Loading…
Cancel
Save