How to use tensorflow debugging tool tfdbg on tf.estimator in Tensorflow?

前端 未结 1 1194
半阙折子戏
半阙折子戏 2021-02-14 09:32

I am working with Tensorflow version 1.4, and I want to debug my train() function.

In this link https://www.tensorflow.org/programmers_guide/debugger#debugg

相关标签:
1条回答
  • 2021-02-14 09:59

    The default is set for working in command line, if you use IDE such as Pycharm the simplest solution is to change UI type.

    Try:

    hooks = [tf_debug.LocalCLIDebugHook(ui_type="readline")]
    

    instead of:

    hooks = [tf_debug.LocalCLIDebugHook()]      
    

    In case you use Pycharm, add to the configuration parameters --debug

    0 讨论(0)
提交回复
热议问题