Tensorflow 兼容模块问题? [英] Tensorflow compat modules issues?

查看:21
本文介绍了Tensorflow 兼容模块问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Google 的 tensorflow udacity 课程中使用 ipython notebooks 时出现以下错误:

Getting the following error when working through the ipython notebooks on Google's tensorflow udacity course:

AttributeError: 'module' 对象没有属性 'compat'

AttributeError: 'module' object has no attribute 'compat'

尝试拨打电话:

tf.compat.as_str(f.read(name)).split()

tf.compat.as_str(f.read(name)).split()

在 Ubuntu 14.04 上运行,想知道这是 tensorflow 早期的错误问题还是只是我愚蠢.:P

Running on Ubuntu 14.04 and wondering if this a tensorflow early bug issue or just me being stupid. :P

推荐答案

您很可能在使用旧版本的 TensorFlow.我只是注意到我们的一些安装文档仍然链接到 0.5 - 尝试升级到 0.6 或升级.

You're most likely using an older version of TensorFlow. I just noticed that some of our install docs still link to 0.5 -- try upgrading to 0.6 or to head.

我会尽快修复文档,但与此同时,如果您通过 pip 安装,则只需将路径中的 0.5 更改为 0.6.如果您是从源代码构建,只需查看相应的发布标签(或头部).

I'll fix the docs soon, but in the meantime, if you installed via pip, you can just change the 0.5 to 0.6 in the path. If you're building from source, just check out the appropriate release tag (or head).

这篇关于Tensorflow 兼容模块问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆