"docs_zh_CN/vscode:/vscode.git/clone" did not exist on "be5841e45d42d7ffe9ee5e29d6348a84fe141caa"
Commit 9f34ac99 authored by Priya Gupta's avatar Priya Gupta
Browse files

Fix steps per epoch and tensorboard logging

parent 950e1def
......@@ -264,8 +264,8 @@ def run_imagenet_with_keras(flags_obj):
time_callback = TimeHistory(flags_obj.batch_size)
tesorboard_callback = tf.keras.callbacks.TensorBoard(
log_dir=flags_obj.model_dir,
update_freq="batch") # Remove this if don't want per batch logging.
log_dir=flags_obj.model_dir)
# update_freq="batch") # Add this if want per batch logging.
lr_callback = LearningRateBatchScheduler(
learning_rate_schedule,
......@@ -277,7 +277,7 @@ def run_imagenet_with_keras(flags_obj):
model.fit(train_input_dataset,
epochs=flags_obj.train_epochs,
steps_per_epoch=5, #steps_per_epoch,
steps_per_epoch=steps_per_epoch,
callbacks=[
time_callback,
lr_callback,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment