Skip to content

Instantly share code, notes, and snippets.

@gonzaloruizdevilla
Created May 18, 2018 11:48
Show Gist options
  • Save gonzaloruizdevilla/cc3504073d90cb535cbbd7433d12d8a9 to your computer and use it in GitHub Desktop.
Save gonzaloruizdevilla/cc3504073d90cb535cbbd7433d12d8a9 to your computer and use it in GitHub Desktop.
Word2vec output weights
output_weights = tf.Variable(
tf.truncated_normal([vocabulary_size, embedding_size],
stddev=1.0 / math.sqrt(embedding_size)))
output_biases = tf.Variable(tf.zeros([vocabulary_size]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment