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
333342a0
"...resnet50_tensorflow.git" did not exist on "7f596d8729cca9daefbb4e3322141def08d9b23d"
Unverified
Commit
333342a0
authored
Jan 07, 2019
by
Shining Sun
Committed by
GitHub
Jan 07, 2019
Browse files
Merge pull request #5988 from tensorflow/format
Fix lint errors
parents
ae86bfd9
2fd16716
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 @
333342a0
...
@@ -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