You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2018-05-28 11:16:27.772360: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
Creating 3 layers of 256 units.
Traceback (most recent call last):
File "/Users/jiangwei/PycharmProjects/chatbot/chatbot_master/execute.py", line 259, in
train()
File "/Users/jiangwei/PycharmProjects/chatbot/chatbot_master/execute.py", line 124, in train
model = create_model(sess, False)
File "/Users/jiangwei/PycharmProjects/chatbot/chatbot_master/execute.py", line 94, in create_model
model = seq2seq_model.Seq2SeqModel( gConfig['enc_vocab_size'], gConfig['dec_vocab_size'], _buckets, gConfig['layer_size'], gConfig['num_layers'], gConfig['max_gradient_norm'], gConfig['batch_size'], gConfig['learning_rate'], gConfig['learning_rate_decay_factor'], forward_only=forward_only)
File "/Users/jiangwei/PycharmProjects/chatbot/chatbot_master/seq2seq_model.py", line 149, in init
softmax_loss_function=softmax_loss_function)
File "/Users/jiangwei/anaconda/envs/tensorflow-1.6-py3.5/lib/python3.5/site-packages/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py", line 1224, in model_with_buckets
softmax_loss_function=softmax_loss_function))
File "/Users/jiangwei/anaconda/envs/tensorflow-1.6-py3.5/lib/python3.5/site-packages/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py", line 1137, in sequence_loss
softmax_loss_function=softmax_loss_function))
File "/Users/jiangwei/anaconda/envs/tensorflow-1.6-py3.5/lib/python3.5/site-packages/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py", line 1092, in sequence_loss_by_example
crossent = softmax_loss_function(labels=target, logits=logit)
TypeError: sampled_loss() got an unexpected keyword argument 'logits'
The text was updated successfully, but these errors were encountered:
我的tensorflow版本是1.6,发生如下问题,请大牛解答,谢谢
2018-05-28 11:16:27.772360: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA
Creating 3 layers of 256 units.
Traceback (most recent call last):
File "/Users/jiangwei/PycharmProjects/chatbot/chatbot_master/execute.py", line 259, in
train()
File "/Users/jiangwei/PycharmProjects/chatbot/chatbot_master/execute.py", line 124, in train
model = create_model(sess, False)
File "/Users/jiangwei/PycharmProjects/chatbot/chatbot_master/execute.py", line 94, in create_model
model = seq2seq_model.Seq2SeqModel( gConfig['enc_vocab_size'], gConfig['dec_vocab_size'], _buckets, gConfig['layer_size'], gConfig['num_layers'], gConfig['max_gradient_norm'], gConfig['batch_size'], gConfig['learning_rate'], gConfig['learning_rate_decay_factor'], forward_only=forward_only)
File "/Users/jiangwei/PycharmProjects/chatbot/chatbot_master/seq2seq_model.py", line 149, in init
softmax_loss_function=softmax_loss_function)
File "/Users/jiangwei/anaconda/envs/tensorflow-1.6-py3.5/lib/python3.5/site-packages/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py", line 1224, in model_with_buckets
softmax_loss_function=softmax_loss_function))
File "/Users/jiangwei/anaconda/envs/tensorflow-1.6-py3.5/lib/python3.5/site-packages/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py", line 1137, in sequence_loss
softmax_loss_function=softmax_loss_function))
File "/Users/jiangwei/anaconda/envs/tensorflow-1.6-py3.5/lib/python3.5/site-packages/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py", line 1092, in sequence_loss_by_example
crossent = softmax_loss_function(labels=target, logits=logit)
TypeError: sampled_loss() got an unexpected keyword argument 'logits'
The text was updated successfully, but these errors were encountered: