【问题标题】:AttributeError: module 'tensorflow' has no attribute 'python' --> following tensorflow debugger tutorialAttributeError: 模块 'tensorflow' 没有属性 'python' --> 遵循 tensorflow 调试器教程
【发布时间】:2018-05-07 16:41:01
【问题描述】:

我正在关注: https://www.tensorflow.org/programmers_guide/debugger

我的导入看起来像:

import tensorflow as tf
import tensorflow.python.debug as tf_debug

我有最新的张量流:

tensorflow==1.8.0

但我收到以下错误:

  File "/home/lpp/Desktop/minion-basecaller/mincall/train/_train.py", line 16, in <module>
    import tensorflow.python.debug as tf_debug
AttributeError: module 'tensorflow' has no attribute 'python'

【问题讨论】:

    标签: python tensorflow


    【解决方案1】:

    你为什么要写 tensorflow.python.debug?试试这个:

    import tensorflow.debug as tf_debug
    

    【讨论】:

    • ModuleNotFoundError: No module named 'tensorflow.debug' 我正在遵循官方说明
    • 所以,他们的一些包裹有错误
    猜你喜欢
    • 2018-04-28
    • 1970-01-01
    • 2019-10-05
    • 2019-08-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-06
    相关资源
    最近更新 更多