Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
b478430d
"...resnet50_tensorflow.git" did not exist on "7f69eb3bc3c5ffcbbc9a02be52b908a7ec515b05"
Commit
b478430d
authored
Dec 02, 2019
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 283449673
parent
281d1757
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
official/recommendation/ncf_keras_benchmark.py
official/recommendation/ncf_keras_benchmark.py
+2
-0
official/recommendation/ncf_keras_main.py
official/recommendation/ncf_keras_main.py
+2
-2
No files found.
official/recommendation/ncf_keras_benchmark.py
View file @
b478430d
...
...
@@ -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."""
...
...
official/recommendation/ncf_keras_main.py
View file @
b478430d
...
...
@@ -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 100
0
steps.
if
train_summary_writer
and
step
%
100
0
==
0
:
with
train_summary_writer
.
as_default
():
tf
.
summary
.
scalar
(
"training_loss"
,
train_loss
/
(
step
+
1
),
step
=
current_step
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment