sotetsuk / pgx

♟️ Vectorized RL game environments in JAX
http://sotets.uk/pgx/
Apache License 2.0
372 stars 23 forks source link

[Go] Fix `size` attribute jittable #1158

Closed sotetsuk closed 6 months ago

sotetsuk commented 6 months ago

Currently, this raises error:

@jax.jit
def f():
    return Game(size=9).init().size

print(f())
codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (8575a3f) 88.10% compared to head (4ea7189) 88.36%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1158 +/- ## ========================================== + Coverage 88.10% 88.36% +0.25% ========================================== Files 64 64 Lines 5996 5997 +1 ========================================== + Hits 5283 5299 +16 + Misses 713 698 -15 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.