我已经取代了
with tf.Session() as sess:
与
sess = tf.Session()
sess = tf_debug.LocalCLIDebugWrapperSession(sess)
sess.add_tensor_filter("has_inf_or_nan", tf_debug.has_inf_or_nan)
with sess:
并在执行期间遇到以下错误:
...
sess.run(tf.global_variables_initializer())
File "/home/dims/.local/lib/python3.5/site-packages/tensorflow/python/debug/wrappers/framework.py", line 446, in run
is_callable_runner=bool(callable_runner)))
File "/home/dims/.local/lib/python3.5/site-packages/tensorflow/python/debug/wrappers/local_cli_wrapper.py", line 255, in on_run_start
self._run_start_response = self._launch_cli()
File "/home/dims/.local/lib/python3.5/site-packages/tensorflow/python/debug/wrappers/local_cli_wrapper.py", line 429, in _launch_cli
title_color=self._title_color)
File "/home/dims/.local/lib/python3.5/site-packages/tensorflow/python/debug/cli/curses_ui.py", line 492, in run_ui
self._screen_launch(enable_mouse_on_start=enable_mouse_on_start)
File "/home/dims/.local/lib/python3.5/site-packages/tensorflow/python/debug/cli/curses_ui.py", line 445, in _screen_launch
我在PyCharm下执行。
这意味着什么以及如何克服?