Created
May 31, 2019 19:44
-
-
Save iamsurya/a0312e816162f861342b6a3ada8d7acb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras import backend as K | |
import tensorflow as tf | |
frozen_graph = freeze_session(K.get_session(), | |
output_names=[out.op.name for out in model.outputs]) | |
tf.train.write_graph(frozen_graph, "slopemodel", "slopemodel.pb", as_text=False) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment