Skip to content

Commit

Permalink
fix eval
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 612503759
  • Loading branch information
liangyaning33 authored and t5-copybara committed Mar 19, 2024
1 parent 707995a commit 21cf2ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion t5x/eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
os.environ['FLAX_LAZY_RNG'] = 'no'
from absl import logging
from clu import metric_writers
import gin
import jax
import seqio
from t5x import checkpoints
Expand Down Expand Up @@ -61,6 +62,7 @@ def __call__(
...


# @gin.configurable
class InferenceEvaluator:
"""Runs evaluation of the model against a given SeqIo task."""

Expand Down Expand Up @@ -402,7 +404,6 @@ def _maybe_run_train_eval(train_state: train_state_lib.TrainState):
from absl import app
from absl import flags
import fiddle as fdl
import gin
from t5x import config_utils

FLAGS = flags.FLAGS
Expand Down

0 comments on commit 21cf2ab

Please sign in to comment.