STT-tensorflow/tensorflow/python/debug/cli/__init__.py
Shanqing Cai 01eab69de0 tfdbg: Infrastructure for debugger CLI
This is the first CL in implementing a commmand-line interface (CLI) for the TensorFlow Debugger (tfdbg). This CL adds essential building blocks for the CLI, including
1) A ScreenOutput class and associated utility functions: wrapping and regex-finding+highlighting.
2) A CommandHandlerRegistry class, to which handlers for commands can be registered and from which commands can be dispatched.

These classes and functions are agnostics with regard to the details of the CLI front-end. So they are general enough to be used in simple console-style, curses, and colab implementations of the tfdbg CLI.

Unit tests are added.
Change: 133269545
2016-09-15 09:30:59 -07:00

0 lines
Python