Skip to content

Instantly share code, notes, and snippets.

@girija2204
Last active July 25, 2020 14:42
Show Gist options
  • Save girija2204/0d64797dc8f7fa2b288f113318a38717 to your computer and use it in GitHub Desktop.
Save girija2204/0d64797dc8f7fa2b288f113318a38717 to your computer and use it in GitHub Desktop.
Creating a model on the tensor slices
logs = "logs/"+datetime.datetime.now().strftime("%Y%m%d-%H%M%S")
# Profiling on batches 200 to 220
tfboard_callback = tf.keras.callbacks.TensorBoard(
log_dir=logs,
histogram_freq=1,
profile_batch='200,220'
)
history_dataset = model.fit(
train_tensor_slices,
validation_data=test_tensor_slices,
epochs=EPOCHS,
callbacks=[tfboard_callback]
)
%load_ext tensorboard
%tensorboard --logdir=logs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment