Skip to content

Commit

Permalink
Fix unique_id initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
kngwyu committed Jan 25, 2024
1 parent 67b8d8d commit 3b9a373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/emevo/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def init_uniqueid(n: int, max_n: int) -> UniqueID:
zeros = jnp.zeros(max_n - n, dtype=jnp.int32)
return UniqueID(
unique_id=jnp.concatenate((jnp.arange(1, n + 1, dtype=jnp.int32), zeros)),
max_uid=jnp.array(max_n),
max_uid=jnp.array(n + 1),
)


Expand Down

0 comments on commit 3b9a373

Please sign in to comment.