You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### <aname="save_pretrained_model"></a>Tool to save pre-trained model
180
180
181
181
We provide an [utility](tools/save_pretrained_model.py) to save pre-trained model along with its config.
182
-
Put `save_pretrained_model(sess, outputs, feed_inputs, save_dir, model_name)` in your last testing step and the pre-trained model and config will be saved under `save_dir/to_onnx`.
183
-
Please refer to [tools/save_pretrained_model.py](tools/save_pretrained_model.py) for more information.
182
+
Put `save_pretrained_model(sess, outputs, feed_inputs, save_dir, model_name)` in your last testing epoch and the pre-trained model and config will be saved under `save_dir/to_onnx`.
183
+
Please refer to the example in [tools/save_pretrained_model.py](tools/save_pretrained_model.py) for more information.
184
+
Note the minimum required Tensorflow version is r1.6.
0 commit comments