提交 f0ef4ad5 编写于 作者: P Patrick Nguyen 提交者: TensorFlower Gardener

Automated rollback of change 136540437

Change: 136547976
上级 16c2e820
......@@ -18,30 +18,15 @@ from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import sys as _sys
import sys
# Import 'flags' into this module, for backwards compatibility. Users are
# encouraged to use tf.flags, not tf.app.flags.
# pylint: disable=unused-import
from tensorflow.python.platform import flags
# pylint: enable=unused-import
from tensorflow.python.platform import flags as _flags
from tensorflow.python.util.all_util import remove_undocumented
def run(main=None):
f = _flags.FLAGS
flags_passthrough = f._parse_flags() # pylint: disable=protected-access
main = main or _sys.modules['__main__'].main
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
_allowed_symbols = [
'run',
]
# Add submodules.
_allowed_symbols.extend([
'flags',
])
remove_undocumented(__name__, _allowed_symbols)
f = flags.FLAGS
# pylint: disable=protected-access
flags_passthrough = f._parse_flags()
# pylint: enable=protected-access
main = main or sys.modules['__main__'].main
sys.exit(main(sys.argv[:1] + flags_passthrough))
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册