Skip to content

Commit

Permalink
fix random seed to avoid UT random failed (PaddlePaddle#35699)
Browse files Browse the repository at this point in the history
  • Loading branch information
zoooo0820 authored and AnnaTrainingG committed Sep 29, 2021
1 parent 39e160f commit 81ac88f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ def test_numerical_accuracy(self):
paddle.disable_static()
shapes = [(2, 6), (2, 6, 4), (2, 6, 4, 4), (2, 6, 6, 6, 2), (2, 6, 6, 6,
2, 3)]
np.random.seed(10)
places = [fluid.CPUPlace()]
if core.is_compiled_with_cuda() and core.op_support_gpu("group_norm"):
places.append(fluid.CUDAPlace(0))
Expand Down

0 comments on commit 81ac88f

Please sign in to comment.