Skip to content

Commit

Permalink
Fix jit
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertTLange committed Oct 12, 2024
1 parent 04f9ad4 commit cdc622b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evosax/strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def initialize(
state = self.set_mean(state, init_mean)
return state

# @partial(jax.jit, static_argnums=(0,))
@partial(jax.jit, static_argnums=(0,))
def ask(
self,
rng: chex.PRNGKey,
Expand All @@ -109,7 +109,7 @@ def ask(
x_out = x_clipped
return x_out, state

# @partial(jax.jit, static_argnums=(0,))
@partial(jax.jit, static_argnums=(0,))
def tell(
self,
x: Union[chex.Array, chex.ArrayTree],
Expand Down

0 comments on commit cdc622b

Please sign in to comment.