Skip to content

Instantly share code, notes, and snippets.

@jakosz
Created August 7, 2016 19:30
Show Gist options
  • Save jakosz/4325a70823e51b8e713aae1e3c484f5f to your computer and use it in GitHub Desktop.
Save jakosz/4325a70823e51b8e713aae1e3c484f5f to your computer and use it in GitHub Desktop.
import tensorflow as tf
# model parameters
x = tf.placeholder(tf.float32, [None, 784])
W = tf.Variable(tf.zeros([784, 10]))
b = tf.Variable(tf.zeros([10]))
# model definition
y = tf.nn.softmax(tf.matmul(x, W) + b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment