【问题标题】:AttributeError: 'module' object has no attribute 'contrib'AttributeError:“模块”对象没有属性“贡献”
【发布时间】:2017-05-21 02:01:53
【问题描述】:

我第一次在 Python 2.7 中使用 tenserflow。我正在关注 tenserflow 教程,当我运行以下行功能时

[tf.contrib.layers.real_valued_column("x", dimension=1)]

它抛出错误

"AttributeError: 'module' 对象没有属性 'contrib'"。请帮忙。

【问题讨论】:

  • 您是否将文件命名为tf.py
  • 不。名称不同。

标签: python


【解决方案1】:

不过,重装protofub后就解决了。

【讨论】:

    猜你喜欢
    • 2010-11-18
    • 2018-08-28
    相关资源
    最近更新 更多