Skip to content

Commit

Permalink
fix: don't convert python's int
Browse files Browse the repository at this point in the history
  • Loading branch information
BillHuang2001 committed Sep 5, 2023
1 parent d9fb0f1 commit 921d61a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/evox/operators/sampling/uniform.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __call__(self):
jnp.array(list(n_choose_k(range(1, h1 + self.m), self.m - 1)))
- jnp.tile(
jnp.array(range(self.m - 1)),
(comb(h1 + self.m - 1, self.m - 1).astype(int), 1),
(comb(h1 + self.m - 1, self.m - 1), 1),
)
- 1
)
Expand All @@ -46,7 +46,7 @@ def __call__(self):
jnp.array(list(n_choose_k(range(1, h2 + self.m), self.m - 1)))
- jnp.tile(
jnp.array(range(self.m - 1)),
(comb(h2 + self.m - 1, self.m - 1).astype(int), 1),
(comb(h2 + self.m - 1, self.m - 1), 1),
)
- 1
)
Expand Down

0 comments on commit 921d61a

Please sign in to comment.