Skip to content

Instantly share code, notes, and snippets.

@JoshVarty
Created January 13, 2018 19:38
Embed
What would you like to do?
logits = tf.matmul(input, layer1_weights) + layer1_bias
cost = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits=logits, labels=labels))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment