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