Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.

Commit a2f59cb

Browse files
katelee168Mesh TensorFlow Team
authored and
Mesh TensorFlow Team
committed
Add cast preprocessor and add tasks for inference prompts for deduplication project.
PiperOrigin-RevId: 373369846
1 parent da90793 commit a2f59cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mesh_tensorflow/transformer/utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1667,7 +1667,7 @@ def score_with_estimator(estimator, input_fn, eval_checkpoint_step, model_dir,
16671667
Returns:
16681668
a list of floats
16691669
"""
1670-
checkpoint_path, = get_checkpoint_iterator(eval_checkpoint_step, model_dir)
1670+
checkpoint_path = get_checkpoint_iterator(eval_checkpoint_step, model_dir)
16711671

16721672
result_iter = estimator.predict(input_fn, checkpoint_path=checkpoint_path)
16731673
# TODO(dei): This code is not well-designed for large-scale scoring, where the

0 commit comments

Comments
 (0)