  
      return logits, predictions
  
-@@ -325,14 +328,15 @@ def compute_metrics(logits, labels):
+@@ -325,14 +328,16 @@ def compute_metrics(logits, labels):
  
  
  @jax.jit

   return predictions
 
 
@@ -374,15 +378,22 @@ def decode_batch(model, batch_size):
 
 def train_model():
   """Train for a fixed number of steps and decode during training."""

         decode_batch(optimizer.target, 5)
   return optimizer.target
 
diff --git a/examples/seq2seq/train_test.py b/examples/seq2seq/train_test.py
index 7efc1b1..122659e 100644
--- a/examples/seq2seq/train_test.py
+++ b/examples/seq2seq/train_test.py
@@ -103,7 +103,7 @@ class TrainTest(absltest.TestCase):
       model = train.create_model()
       optimizer = train.create_optimizer(model, 0.003)
       optimizer, train_metrics = train.train_step(
-          optimizer, batch, nn.make_rng())
+          optimizer, batch, 0.5, nn.make_rng())
 
     self.assertLessEqual(train_metrics['loss'], 5)
     self.assertGreaterEqual(train_metrics['accuracy'], 0)
