"docs/zh_cn/vscode:/vscode.git/clone" did not exist on "35fd83949c72fa1f272221e0e4ec75bbb5b82ca2"
Commit 45848c44 authored by Renjie Liu's avatar Renjie Liu Committed by A. Unique TensorFlower
Browse files

Fix passing sequence length and batch size to build the model.

PiperOrigin-RevId: 423714416
parent ab8b8012
......@@ -135,7 +135,8 @@ def main(argv: Sequence[str]) -> None:
checkpoint = tf.train.Checkpoint(**checkpoint_dict)
checkpoint.restore(FLAGS.model_checkpoint).assert_existing_objects_matched()
model_for_serving = build_model_for_serving(model)
model_for_serving = build_model_for_serving(model, FLAGS.sequence_length,
FLAGS.batch_size)
model_for_serving.summary()
# TODO(b/194449109): Need to save the model to file and then convert tflite
......
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