Skip to content

Commit

Permalink
fix test_distibution_lognormal random failed (#57320) (#57429)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxxly authored Sep 21, 2023
1 parent aea3772 commit a09a2bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/distribution/test_distribution_lognormal.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class TestLogNormalSample(unittest.TestCase):
def setUp(self):
paddle.disable_static()
self.paddle_lognormal = LogNormal(loc=self.loc, scale=self.scale)
n = 100000
n = 1000000
self.sample_shape = (n,)
self.rsample_shape = (n,)
self.samples = self.paddle_lognormal.sample(self.sample_shape)
Expand Down
2 changes: 1 addition & 1 deletion test/distribution/test_distribution_lognormal_static.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def setUp(self):
scale = paddle.static.data(
'scale', self.scale.shape, self.scale.dtype
)
n = 100000
n = 1000000
self.sample_shape = (n,)
self.rsample_shape = (n,)
self.paddle_lognormal = LogNormal(loc=loc, scale=scale)
Expand Down

0 comments on commit a09a2bb

Please sign in to comment.