From d54e13bbec975e1f73ce465ec1704f6d924335da Mon Sep 17 00:00:00 2001 From: chengduo Date: Sun, 23 Jun 2019 22:52:36 +0800 Subject: [PATCH] add random seed for recurrent op test (#18274) test=develop --- python/paddle/fluid/tests/unittests/test_recurrent_op.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/paddle/fluid/tests/unittests/test_recurrent_op.py b/python/paddle/fluid/tests/unittests/test_recurrent_op.py index 6c355579062..e2a65a99837 100644 --- a/python/paddle/fluid/tests/unittests/test_recurrent_op.py +++ b/python/paddle/fluid/tests/unittests/test_recurrent_op.py @@ -23,6 +23,8 @@ from paddle.fluid.backward import append_backward import numpy as np import paddle.fluid.core as core +np.random.seed(123) + class PyRNNBase(object): def __init__(self, input_shape, output_shape): -- GitLab