Skip to content

Instantly share code, notes, and snippets.

@satishgunjal
Created October 17, 2020 07:44
Show Gist options
  • Save satishgunjal/9683f91b23382757540d20087f28e881 to your computer and use it in GitHub Desktop.
Save satishgunjal/9683f91b23382757540d20087f28e881 to your computer and use it in GitHub Desktop.
To view in TensorBoard
%%timeit -n1 -r1 # time required toexecute this cell once
# To view in TensorBoard
logdir = os.path.join("logs/adam", datetime.datetime.now().strftime("%Y%m%d-%H%M%S"))
tensorboard_callback = tf.keras.callbacks.TensorBoard(logdir, histogram_freq=1)
model.fit(train_images, train_labels, epochs= 10, callbacks = [tensorboard_callback])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment