Skip to content

Commit

Permalink
Add cast preprocessor and add tasks for inference prompts for dedup…
Browse files Browse the repository at this point in the history
…lication project.

PiperOrigin-RevId: 373369846
  • Loading branch information
katelee168 authored and Mesh TensorFlow Team committed May 12, 2021
1 parent da90793 commit a2f59cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mesh_tensorflow/transformer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a2f59cb

Please sign in to comment.