Advertisement
Guest User

Untitled

a guest
Apr 20th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #After trainning your model
  2. K.set_learning_phase(0)
  3. with K.get_session() as sess:
  4. tf.saved_model.simple_save(sess,
  5. export_path, inputs = {'input_seq': model.input},
  6. outputs = {'output_word_probab': model.output})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement