diff options
author | Shanqing Cai <cais@google.com> | 2017-08-03 19:36:51 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-08-03 19:41:46 -0700 |
commit | 44113ce5bb820087ff877c0507521e6b982fd079 (patch) | |
tree | 56388406359f36e6389ad05c627718b65bf0b8aa /tensorflow/python/debug/BUILD | |
parent | 57970f8ff5cdc0a77d93c517b71358046c6da25a (diff) |
tfdbg CLI: add eval of arbitrary Python / np expressions
RELNOTES: TensorFlow Debugger (tfdbg) command-line interface: Support evaluation of arbitrary Python and numpy (np) expressions with debug tensor names enclosed in pairs of backtics. E.g., tfdbg> eval 'np.sum(`Softmax:0`, axis=1)'.
PiperOrigin-RevId: 164217384
Diffstat (limited to 'tensorflow/python/debug/BUILD')
-rw-r--r-- | tensorflow/python/debug/BUILD | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tensorflow/python/debug/BUILD b/tensorflow/python/debug/BUILD index ea2ab578b3..2d3eaa2b82 100644 --- a/tensorflow/python/debug/BUILD +++ b/tensorflow/python/debug/BUILD @@ -160,6 +160,16 @@ py_library( ) py_library( + name = "evaluator", + srcs = ["cli/evaluator.py"], + srcs_version = "PY2AND3", + deps = [ + ":debug_data", + "//third_party/py/numpy", + ], +) + +py_library( name = "analyzer_cli", srcs = ["cli/analyzer_cli.py"], srcs_version = "PY2AND3", @@ -168,6 +178,7 @@ py_library( ":command_parser", ":debug_data", ":debugger_cli_common", + ":evaluator", ":source_utils", ":ui_factory", "@six_archive//:six", @@ -708,6 +719,22 @@ py_test( ], ) +py_test( + name = "evaluator_test", + size = "small", + srcs = [ + "cli/evaluator_test.py", + ], + srcs_version = "PY2AND3", + deps = [ + ":debug_data", + ":evaluator", + "//tensorflow/python:client_testlib", + "//tensorflow/python:framework_test_lib", + "//third_party/py/numpy", + ], +) + cuda_py_test( name = "analyzer_cli_test", size = "small", |