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
bb328876
Commit
bb328876
authored
Sep 09, 2019
by
Adrian Kuegel
Committed by
A. Unique TensorFlower
Sep 09, 2019
Browse files
Adjust ncf_keras_benchmark to force TF 2.0 when running internally.
PiperOrigin-RevId: 267946336
parent
64f87cd2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
official/recommendation/ncf_keras_benchmark.py
official/recommendation/ncf_keras_benchmark.py
+1
-0
No files found.
official/recommendation/ncf_keras_benchmark.py
View file @
bb328876
...
@@ -47,6 +47,7 @@ class NCFKerasBenchmarkBase(tf.test.Benchmark):
...
@@ -47,6 +47,7 @@ class NCFKerasBenchmarkBase(tf.test.Benchmark):
def
_setup
(
self
):
def
_setup
(
self
):
"""Sets up and resets flags before each test."""
"""Sets up and resets flags before each test."""
assert
tf
.
version
.
VERSION
.
startswith
(
'2.'
)
tf
.
compat
.
v1
.
logging
.
set_verbosity
(
tf
.
compat
.
v1
.
logging
.
DEBUG
)
tf
.
compat
.
v1
.
logging
.
set_verbosity
(
tf
.
compat
.
v1
.
logging
.
DEBUG
)
if
NCFKerasBenchmarkBase
.
local_flags
is
None
:
if
NCFKerasBenchmarkBase
.
local_flags
is
None
:
ncf_common
.
define_ncf_flags
()
ncf_common
.
define_ncf_flags
()
...
...
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