stanford-tensorflow-tutorials icon indicating copy to clipboard operation
stanford-tensorflow-tutorials copied to clipboard

TensorFlow 1.3 Issues

Open smist09 opened this issue 8 years ago • 4 comments

TensorFlow 1.3 appears to have moved the seq2seq module you are using to: tf.contrib.legacy_seq2seq. Then they have new ones with completely different arguments. With TensorFlow 1.3 you still have the problem someone reported with TensorFlow 1.2.1 where you get the error:

File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py", line 1089, in sequence_loss_by_example crossent = softmax_loss_function(labels=target, logits=logit) TypeError: sampled_loss() got an unexpected keyword argument 'logits'

from the sampled loss function

smist09 avatar Aug 23 '17 21:08 smist09

I'm having the same issue.

jiteshpabla avatar Aug 24 '17 10:08 jiteshpabla

Please check https://github.com/chiphuyen/stanford-tensorflow-tutorials/pull/57

mrs83 avatar Aug 24 '17 15:08 mrs83

The solution given in https://github.com/chiphuyen/stanford-tensorflow-tutorials/issues/46 worked for me!

jiteshpabla avatar Aug 24 '17 16:08 jiteshpabla

#46 did the trick (along with the seq2seq rename).

smist09 avatar Aug 24 '17 18:08 smist09