Skip to content

Instantly share code, notes, and snippets.

@llhe
Created February 21, 2017 02:19
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 llhe/6d95d2e31ad3c5a886dc8c3bd6ace95b to your computer and use it in GitHub Desktop.
Save llhe/6d95d2e31ad3c5a886dc8c3bd6ace95b to your computer and use it in GitHub Desktop.
import argparse
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
def train():
mnist = input_data.read_data_sets("/tmp/data",
one_hot=True,
fake_data=False)
sess = tf.InteractiveSession()
with tf.name_scope('input'):
x = tf.placeholder(tf.float32, [None, 784], name='x-input')
tf.image_summary('input', x, 10)
train()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment