chiphuyen / stanford-tensorflow-tutorials

This repository contains code examples for the Stanford's course: TensorFlow for Deep Learning Research.
http://cs20.stanford.edu
MIT License
10.32k stars 4.32k forks source link

TensorFlow 1.3 Issues #56

Open smist09 opened 7 years ago

smist09 commented 7 years ago

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

jiteshpabla commented 7 years ago

I'm having the same issue.

mrs83 commented 7 years ago

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

jiteshpabla commented 7 years ago

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

smist09 commented 7 years ago

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