Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix changed tensorflow API #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

bzantium
Copy link

@bzantium bzantium commented Jul 2, 2018

In word2vec_basic, word2vec_simple

from tf.nn.nce_loss(nce_weights, nce_biases, embed, train_labels, num_sampled, vocabulary_size))
to tf.nn.nce_loss(nce_weights, nce_biases, train_labels, embed, num_sampled, vocabulary_size))

from summary_writer = tf.train.SummaryWriter('/tmp/tf_logs/word2vec', graph=sess.graph)
to summary_writer = tf.summary.FileWriter('/tmp/tf_logs/word2vec', graph=sess.graph)

from tf.initialize_all_variables().run()
to sess.run(tf.initialize_all_variables())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant