未验证 提交 f1b6a76b 编写于 作者: R Ruibiao Chen 提交者: GitHub

Set random seed for test_tensordot (#53004)

上级 188efd11
...@@ -19,6 +19,8 @@ import numpy as np ...@@ -19,6 +19,8 @@ import numpy as np
import paddle import paddle
from paddle.fluid import core from paddle.fluid import core
np.random.seed(2021)
def tensordot_np(x, y, axes): def tensordot_np(x, y, axes):
if isinstance(axes, paddle.fluid.framework.Variable): if isinstance(axes, paddle.fluid.framework.Variable):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册