"...resnet50_tensorflow.git" did not exist on "7f69eb3bc3c5ffcbbc9a02be52b908a7ec515b05"
Commit b478430d authored by A. Unique TensorFlower's avatar A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 283449673
parent 281d1757
......@@ -45,6 +45,8 @@ class NCFKerasBenchmarkBase(tf.test.Benchmark):
**kwargs):
self.output_dir = output_dir
self.default_flags = default_flags or {}
# Run all benchmarks with ml_perf flag.
self.default_flags['ml_perf'] = True
def _setup(self):
"""Sets up and resets flags before each test."""
......
......@@ -480,8 +480,8 @@ def run_ncf_custom_training(params,
train_loss += train_step(train_input_iterator)
# Write train loss once in every 100 steps.
if train_summary_writer and step % 100 == 0:
# Write train loss once in every 1000 steps.
if train_summary_writer and step % 1000 == 0:
with train_summary_writer.as_default():
tf.summary.scalar("training_loss", train_loss/(step + 1),
step=current_step)
......
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