Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Fix flakiness of test_gluon_probability{_v1,_v2}.py::test_cauchy{_v1,}
Browse files Browse the repository at this point in the history
  • Loading branch information
DickJC123 committed Jul 22, 2020
1 parent 460dd21 commit 29286c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/python/unittest/test_gluon_probability_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def hybrid_forward(self, F, loc, scale, *args):
for shape, hybridize in itertools.product(shapes, [True, False]):
loc = np.random.uniform(-1, 1, shape)
scale = np.random.uniform(0.5, 1.5, shape)
samples = np.random.uniform(size=shape)
samples = np.random.uniform(size=shape, high=1.0-1e-4)
net = TestCauchy("icdf")
if hybridize:
net.hybridize()
Expand Down
2 changes: 1 addition & 1 deletion tests/python/unittest/test_gluon_probability_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ def forward(self, loc, scale, *args):
for shape, hybridize in itertools.product(shapes, [True, False]):
loc = np.random.uniform(-1, 1, shape)
scale = np.random.uniform(0.5, 1.5, shape)
samples = np.random.uniform(size=shape)
samples = np.random.uniform(size=shape, low=1e-4, high=1.0-1e-4)
net = TestCauchy("icdf")
if hybridize:
net.hybridize()
Expand Down

0 comments on commit 29286c3

Please sign in to comment.