Skip to content

Commit 21cf2ab

Browse files
liangyaning33t5-copybara
authored andcommitted
fix eval
PiperOrigin-RevId: 612503759
1 parent 707995a commit 21cf2ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

t5x/eval.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
os.environ['FLAX_LAZY_RNG'] = 'no'
3131
from absl import logging
3232
from clu import metric_writers
33+
import gin
3334
import jax
3435
import seqio
3536
from t5x import checkpoints
@@ -61,6 +62,7 @@ def __call__(
6162
...
6263

6364

65+
# @gin.configurable
6466
class InferenceEvaluator:
6567
"""Runs evaluation of the model against a given SeqIo task."""
6668

@@ -402,7 +404,6 @@ def _maybe_run_train_eval(train_state: train_state_lib.TrainState):
402404
from absl import app
403405
from absl import flags
404406
import fiddle as fdl
405-
import gin
406407
from t5x import config_utils
407408

408409
FLAGS = flags.FLAGS

0 commit comments

Comments
 (0)