Skip to content

Commit

Permalink
set seed for uts (#44372)
Browse files Browse the repository at this point in the history
  • Loading branch information
haohongxiang authored Jul 18, 2022
1 parent b7db845 commit 0fd974b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def setUp(self):
self.devices.append("gpu:0")
self.generate_input()
self.generate_output()
np.random.seed(2022)

def init_config(self):
self.dtype = 'float64'
Expand Down

0 comments on commit 0fd974b

Please sign in to comment.