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
2fd16716
"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "04ce96360fa73b0d1193ba786be96cecbc1d5333"
Commit
2fd16716
authored
Jan 04, 2019
by
Shining Sun
Browse files
fix lint errors
parent
0ff0717b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
official/resnet/keras/keras_common.py
official/resnet/keras/keras_common.py
+2
-1
No files found.
official/resnet/keras/keras_common.py
View file @
2fd16716
...
@@ -216,12 +216,13 @@ def get_strategy_scope(strategy):
...
@@ -216,12 +216,13 @@ def get_strategy_scope(strategy):
if
strategy
:
if
strategy
:
strategy_scope
=
strategy
.
scope
()
strategy_scope
=
strategy
.
scope
()
else
:
else
:
strategy_scope
=
keras_common
.
DummyContextManager
()
strategy_scope
=
DummyContextManager
()
return
strategy_scope
return
strategy_scope
class
DummyContextManager
(
object
):
class
DummyContextManager
(
object
):
def
__enter__
(
self
):
def
__enter__
(
self
):
pass
pass
...
...
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