未验证 提交 38382f8e 编写于 作者: L lujun 提交者: GitHub

Merge pull request #16658 from JiabinYang/fix/transformer_random_failed

test=develop, fix transformer in dygraph
......@@ -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(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册