-
Notifications
You must be signed in to change notification settings - Fork 274
第四步训练时报错 #6
Comments
同 #5 这个还没改 |
tf.nn.rnn_cell 可以改为 tf.contrib.rnn |
这个项目我也是想更新的,不过还没想好怎么玩好~~~ |
感谢作者,我按照另一个issue的都修改了一下,虽然不报错但是死活不生成model,我也是醉了…… |
官方都把translate模型下线了,官网文档那个seq2seq的介绍就是个渣渣~~~我一直在想能不能把模型写的更简单点~~~ |
我也包这个错,最终有解决方案吗? |
我第4步报这个错,是啥原因呢: Caused by op 'save/RestoreV2_15', defined at: |
一般用全路径比较靠谱,s2s.py及train_model.sh里的几个相对路径都改为全路径可以解决上面的问题。 |
错误内容:
/opt/chatbot/Seq2Seq_Chatbot_QA> ./train_model.sh
dim: 6865
准备数据
bucket 0 中有数据 506206 条
bucket 1 中有数据 1091400 条
bucket 2 中有数据 726867 条
bucket 3 中有数据 217104 条
共有数据 2541577 条
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE3 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.1 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use SSE4.2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use AVX2 instructions, but these are available on your machine and could speed up CPU computations.
W tensorflow/core/platform/cpu_feature_guard.cc:45] The TensorFlow library wasn't compiled to use FMA instructions, but these are available on your machine and could speed up CPU computations.
Traceback (most recent call last):
File "s2s.py", line 324, in
tf.app.run()
File "/usr/lib/python3.4/site-packages/tensorflow/python/platform/app.py", line 44, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "s2s.py", line 319, in main
train()
File "s2s.py", line 129, in train
model = create_model(sess, False)
File "s2s.py", line 110, in create_model
dtype
File "/opt/chatbot/Seq2Seq_Chatbot_QA/s2s_model.py", line 31, in init
cell = tf.nn.rnn_cell.BasicLSTMCell(size)
AttributeError: 'module' object has no attribute 'rnn_cell'
谢谢
tensorflow版本为1.0.0
The text was updated successfully, but these errors were encountered: