Skip to content

Commit 45848c4

Browse files
renjie-liutensorflower-gardener
authored andcommitted
Fix passing sequence length and batch size to build the model.
PiperOrigin-RevId: 423714416
1 parent ab8b801 commit 45848c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

official/projects/edgetpu/nlp/serving/export_tflite_squad.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ def main(argv: Sequence[str]) -> None:
135135
checkpoint = tf.train.Checkpoint(**checkpoint_dict)
136136
checkpoint.restore(FLAGS.model_checkpoint).assert_existing_objects_matched()
137137

138-
model_for_serving = build_model_for_serving(model)
138+
model_for_serving = build_model_for_serving(model, FLAGS.sequence_length,
139+
FLAGS.batch_size)
139140
model_for_serving.summary()
140141

141142
# TODO(b/194449109): Need to save the model to file and then convert tflite

0 commit comments

Comments
 (0)