Skip to content

Commit

Permalink
Remove deprecated PRNGKeyArray.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 623494831
Change-Id: Ie15c1d517fd7b34662d69d05205151d9c7021da4
  • Loading branch information
Htomlinson14 authored and copybara-github committed Apr 10, 2024
1 parent 5208f1b commit 7e7de59
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 isinstance(keys, jax.random.PRNGKeyArray)
if jax.dtypes.issubdtype(keys.dtype, jax.dtypes.prng_key)
else '(2)->()'
)
return jnp.vectorize(
Expand Down

1 comment on commit 7e7de59

@Wangchunyu123
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1
MENFQKVEKIGEGTYGVVYKARNKLTGEVVALKKIRLDTETEGVPSTAIREIS

Please sign in to comment.