Commit 2fd16716 authored by Shining Sun's avatar Shining Sun
Browse files

fix lint errors

parent 0ff0717b
......@@ -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