Created
March 26, 2019 09:46
-
-
Save chricke/b02b7c2de749ada8f565773219d118b9 to your computer and use it in GitHub Desktop.
Build Neural Net
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def build_nn(cell, rnn_size, input_data, vocab_size, embed_dim): | |
embeddings = get_embed(input_data, vocab_size, embed_dim) | |
inputs, final_state = build_rnn(cell, embeddings) | |
logits = tf.contrib.layers.fully_connected(inputs=inputs, num_outputs=vocab_size, activation_fn=None) | |
return logits, final_state |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment