Skip to content

Commit

Permalink
Fix samplers_test
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 428463103
  • Loading branch information
adria-p authored and copybara-github committed Feb 14, 2022
1 parent d2731dd commit 0840c98
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions clrs/_src/samplers_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@

class SamplersTest(parameterized.TestCase):

@parameterized.parameters(*specs.CLRS_21_ALGS)
@parameterized.parameters(*specs.CLRS_30_ALGS)
def test_sampler_determinism(self, name):
sampler, _ = samplers.clrs21_val(name)
num_samples = 3
num_nodes = 10
sampler, _ = samplers.build_sampler(name, num_samples, num_nodes)

np.random.seed(47) # Set seed
feedback = sampler.next()
Expand Down

0 comments on commit 0840c98

Please sign in to comment.