Skip to content

Instantly share code, notes, and snippets.

@gonzaloruizdevilla
Created May 18, 2018 12:45
Show Gist options
  • Save gonzaloruizdevilla/373ac8873ea7a9e0eb748b481c53303c to your computer and use it in GitHub Desktop.
Save gonzaloruizdevilla/373ac8873ea7a9e0eb748b481c53303c to your computer and use it in GitHub Desktop.
Word2vec training
for inputs, labels in generate_batch(...):
feed_dict = {train_inputs: inputs, train_labels: labels}
_, cur_loss = session.run([optimizer, loss], feed_dict=feed_dict)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment