Skip to content

Instantly share code, notes, and snippets.

@JoshVarty
Created January 13, 2018 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JoshVarty/10d7e58500c44f545442a0a7c6b738e1 to your computer and use it in GitHub Desktop.
Save JoshVarty/10d7e58500c44f545442a0a7c6b738e1 to your computer and use it in GitHub Desktop.
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