我正在尝试按照音频识别网络教程.
我用python 3.6创建了一个Anaconda环境,然后按照安装说明安装GPU.
我可以运行"hello world"TF示例.
当我在音频识别网络教程/示例中运行'train.py'时,我得到:
Traceback (most recent call last):
File "train.py", line 79, in <module>
import input_data
File "/home/philglau/speech_commands/input_data.py", line 35, in <module>
from tensorflow.contrib.framework.python.ops import audio_ops as contrib_audio
ImportError: cannot import name 'audio_ops'
Run Code Online (Sandbox Code Playgroud)
失败的教程中的代码是:
from tensorflow.contrib.framework.python.ops import audio_ops as contrib_audio
Run Code Online (Sandbox Code Playgroud)
然后我备份了那个链,直到我可以导入它的一部分:
import tensorflow.contrib.framework as test ==> works
import tensorflow.contrib.framework.python as test --> fail:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: module 'tensorflow.contrib.framework' has no attribute 'python'
Run Code Online (Sandbox Code Playgroud)
不确定我的安装在哪里出错了.
细节: …
tensorflow ×1