未验证 提交 38cd4737 编写于 作者: Z zhaoying9105 提交者: GitHub

[MLU]: set numpy random seed for test_hard_sigmoid_op_mlu.py and test_hard_swish_op_mlu.py (#44219)

上级 a05e7ef6
......@@ -25,7 +25,8 @@ import paddle.fluid as fluid
import paddle.nn.functional as F
paddle.enable_static()
SEED = 2021
SEED = 2022
np.random.seed(SEED)
def ref_hardsigmoid(x, slope=0.166666666666667, offset=0.5):
......
......@@ -25,7 +25,8 @@ import sys
sys.path.append("..")
paddle.enable_static()
SEED = 2020
SEED = 2021
np.random.seed(SEED)
def scalarToType(val, data_type):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册