Skip to content

Commit

Permalink
Revert a change that is not compatible with JAX 0.3.25.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 578486539
Change-Id: Id0e535ebf75916b5179791d093ca714e343ccb69
  • Loading branch information
Augustin-Zidek authored and copybara-github committed Nov 1, 2023
1 parent f78c589 commit f715f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alphafold/model/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def inner(key, shape, **kwargs):
keys = grid_keys(key, shape)
signature = (
'()->()'
if jax.dtypes.issubdtype(keys.dtype, jax.dtypes.prng_key)
if isinstance(keys, jax.random.PRNGKeyArray)
else '(2)->()'
)
return jnp.vectorize(
Expand Down

0 comments on commit f715f01

Please sign in to comment.