From a2f59cb2ff5ecb073529aef219f6ce99bd9666cd Mon Sep 17 00:00:00 2001 From: Katherine Lee Date: Wed, 12 May 2021 07:58:06 -0700 Subject: [PATCH] Add `cast` preprocessor and add tasks for inference prompts for deduplication project. PiperOrigin-RevId: 373369846 --- mesh_tensorflow/transformer/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh_tensorflow/transformer/utils.py b/mesh_tensorflow/transformer/utils.py index b888248c..a331f1f0 100644 --- a/mesh_tensorflow/transformer/utils.py +++ b/mesh_tensorflow/transformer/utils.py @@ -1667,7 +1667,7 @@ def score_with_estimator(estimator, input_fn, eval_checkpoint_step, model_dir, Returns: a list of floats """ - checkpoint_path, = get_checkpoint_iterator(eval_checkpoint_step, model_dir) + checkpoint_path = get_checkpoint_iterator(eval_checkpoint_step, model_dir) result_iter = estimator.predict(input_fn, checkpoint_path=checkpoint_path) # TODO(dei): This code is not well-designed for large-scale scoring, where the