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
042c9aaa
Commit
042c9aaa
authored
Apr 22, 2019
by
Toby Boyd
Committed by
Shining Sun
Apr 22, 2019
Browse files
Ncf metric tweaks (#6633)
* Use tf.image.resize_with_crop_or_pad * exp_per_second and hr_at_10
parent
5c37e69c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
official/recommendation/ncf_keras_benchmark.py
official/recommendation/ncf_keras_benchmark.py
+3
-3
No files found.
official/recommendation/ncf_keras_benchmark.py
View file @
042c9aaa
...
...
@@ -105,8 +105,8 @@ class KerasNCFRealData(KerasNCFBenchmarkBase):
def
_extract_benchmark_report_extras
(
self
,
stats
):
extras
=
{}
extras
[
'train_loss'
]
=
stats
[
'loss'
]
extras
[
'
eval_hit_rate
'
]
=
stats
[
'eval_hit_rate'
]
extras
[
'ex
amples
_per_second'
]
=
stats
[
'avg_exp_per_second'
]
extras
[
'
hr_at_10
'
]
=
stats
[
'eval_hit_rate'
]
extras
[
'ex
p
_per_second'
]
=
stats
[
'avg_exp_per_second'
]
return
extras
def
benchmark_1_gpu
(
self
):
...
...
@@ -148,7 +148,7 @@ class KerasNCFSyntheticData(KerasNCFBenchmarkBase):
def
_extract_benchmark_report_extras
(
self
,
stats
):
extras
=
{}
extras
[
'ex
amples
_per_second'
]
=
stats
[
'avg_exp_per_second'
]
extras
[
'ex
p
_per_second'
]
=
stats
[
'avg_exp_per_second'
]
return
extras
def
benchmark_1_gpu
(
self
):
...
...
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