Skip to content

Commit 18b1f2e

Browse files
baek-jinootensorflower-gardener
authored andcommitted
No public description
PiperOrigin-RevId: 569394081
1 parent 0d690e8 commit 18b1f2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

official/nlp/tasks/question_answering_test.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,16 @@ def _run_task(self, config):
101101
logs = task.aggregate_logs(step_outputs=logs)
102102
metrics = task.reduce_aggregated_logs(logs)
103103
self.assertIn("final_f1", metrics)
104-
model.save(os.path.join(self.get_temp_dir(), "saved_model"))
104+
model.save(os.path.join(self.get_temp_dir(), "saved_model.keras"),
105+
save_format="keras")
105106

106107
@parameterized.parameters(
107108
itertools.product(
108109
(False, True),
109110
("WordPiece", "SentencePiece"),
110111
))
111112
def test_task(self, version_2_with_negative, tokenization):
113+
del tokenization
112114
# Saves a checkpoint.
113115
pretrain_cfg = bert.PretrainerConfig(
114116
encoder=self._encoder_config,

0 commit comments

Comments
 (0)