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
283de38b
"conda/git@developer.sourcefind.cn:OpenDAS/torch-sparce.git" did not exist on "c5e4fa6cef5cabba3529086b7e759afe28e0dc6b"
Commit
283de38b
authored
Jul 18, 2019
by
guptapriya
Browse files
Fix lint error
parent
8c8779a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/recommendation/ncf_keras_main.py
official/recommendation/ncf_keras_main.py
+1
-1
No files found.
official/recommendation/ncf_keras_main.py
View file @
283de38b
...
@@ -278,7 +278,7 @@ def run_ncf(_):
...
@@ -278,7 +278,7 @@ def run_ncf(_):
if
keras_utils
.
is_v2_0
()
and
strategy
is
not
None
:
if
keras_utils
.
is_v2_0
()
and
strategy
is
not
None
:
logging
.
error
(
"NCF Keras only works with distribution strategy in TF 2.0"
)
logging
.
error
(
"NCF Keras only works with distribution strategy in TF 2.0"
)
return
return
if
(
params
[
"keras_use_ctl"
]
and
(
if
(
params
[
"keras_use_ctl"
]
and
(
not
keras_utils
.
is_v2_0
()
or
strategy
is
None
)):
not
keras_utils
.
is_v2_0
()
or
strategy
is
None
)):
logging
.
error
(
logging
.
error
(
...
...
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