diff --git a/python/paddle/fluid/tests/unittests/test_softmax_op.py b/python/paddle/fluid/tests/unittests/test_softmax_op.py index c393b55d7bd2cecbb89e271555c901e81ff7eadd..c00ad536656d947ef5172eb8aeb70664fa3725f2 100644 --- a/python/paddle/fluid/tests/unittests/test_softmax_op.py +++ b/python/paddle/fluid/tests/unittests/test_softmax_op.py @@ -47,6 +47,7 @@ class TestSoftmaxOp(OpTest): self.shape = self.get_x_shape() self.axis = self.get_axis() + np.random.seed(0) x = np.random.uniform(0.1, 1, self.shape).astype(self.dtype) out = np.apply_along_axis(stable_softmax, self.axis, x)