"git@developer.sourcefind.cn:OpenDAS/autoawq.git" did not exist on "969b290e1d82be1e689a52013b84038773e1a3ac"
Commit 5133522f authored by Aman Gupta's avatar Aman Gupta
Browse files

Bypassing Export model step, if training on TPU's. As this need inference to...

Bypassing Export model step, if training on TPU's. As this need inference to be supported on TPU's. Remove this check once inference is supported.
parent d988d710
...@@ -610,7 +610,7 @@ def run_transformer(flags_obj): ...@@ -610,7 +610,7 @@ def run_transformer(flags_obj):
bleu_threshold=flags_obj.stop_threshold, bleu_threshold=flags_obj.stop_threshold,
vocab_file=flags_obj.vocab_file) vocab_file=flags_obj.vocab_file)
if flags_obj.export_dir: if flags_obj.export_dir and not params["use_tpu"]:
serving_input_fn = export.build_tensor_serving_input_receiver_fn( serving_input_fn = export.build_tensor_serving_input_receiver_fn(
shape=[None], dtype=tf.int64, batch_size=None) shape=[None], dtype=tf.int64, batch_size=None)
# Export saved model, and save the vocab file as an extra asset. The vocab # Export saved model, and save the vocab file as an extra asset. The vocab
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment