"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "04ce96360fa73b0d1193ba786be96cecbc1d5333"
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): ...@@ -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
......
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