View tf_keras.py
import tensorflow as tf
from keras.metrics import categorical_accuracy as accuracy
sess = tf.Session()
from keras import backend as K
K.set_session(sess)
img = tf.placeholder(tf.float32, shape=(None, 784))
from keras.layers import Dense