"vscode:/vscode.git/clone" did not exist on "4b694e7d5ac8e8daaf19b11a221cefae4876949b"
Unverified Commit 333342a0 authored by Shining Sun's avatar Shining Sun Committed by GitHub
Browse files

Merge pull request #5988 from tensorflow/format

Fix lint errors
parents ae86bfd9 2fd16716
......@@ -216,12 +216,13 @@ def get_strategy_scope(strategy):
if strategy:
strategy_scope = strategy.scope()
else:
strategy_scope = keras_common.DummyContextManager()
strategy_scope = DummyContextManager()
return strategy_scope
class DummyContextManager(object):
def __enter__(self):
pass
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment