Skip to content

Commit

Permalink
update rng dtype in predict_batch
Browse files Browse the repository at this point in the history
  • Loading branch information
ashors1 authored and terrykong committed Feb 21, 2024
1 parent 8727197 commit 3ca8e34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t5x/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ def _compute_kv_cache(
def predict_batch(self,
params: PyTreeDef,
batch: Mapping[str, jnp.ndarray],
rng: Optional[jax.random.KeyArray] = None,
rng: Optional[jax.Array] = None,
flax_mutables: Optional[PyTreeDef] = None) -> jnp.ndarray:
"""Predicts a batch of outputs from the model.
Expand Down

0 comments on commit 3ca8e34

Please sign in to comment.