From aabf91d621a85933d34064373dc4b4165bf2549b Mon Sep 17 00:00:00 2001 From: Svilen Todorov Date: Tue, 18 Feb 2020 21:50:53 +0100 Subject: [PATCH] Fix validation function --- reformer.py | 2 +- requirements-colab.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/reformer.py b/reformer.py index a9d088b..cdbcd03 100644 --- a/reformer.py +++ b/reformer.py @@ -83,7 +83,7 @@ def gen_validation_inputs(n_devices): # different validation each time but consistent across the run ids = next(gen_inputs(n_devices)) while True: - return ids + yield ids def create_fixed_training_schedule(lr): diff --git a/requirements-colab.txt b/requirements-colab.txt index 63a2536..188b626 100644 --- a/requirements-colab.txt +++ b/requirements-colab.txt @@ -1,4 +1,5 @@ jax jaxlib git+https://github.com/google/trax.git@v1.2.2 -tokenizers \ No newline at end of file +tokenizers +gin \ No newline at end of file