Created
December 17, 2019 10:39
-
-
Save Mehanik/acd2507f3fae778331bc3701d139e298 to your computer and use it in GitHub Desktop.
Save keras model for viewing in Tensorboard
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
# tested on Tf 1.15 | |
import tensorflow as tf | |
m = create_model(...) | |
m.compile(Adam(lr=1e-3), loss=["binary_crossentropy"]) | |
writer = tf.summary.FileWriter(logdir='logdir', graph=tf.get_default_graph()) | |
writer.flush() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment