Skip to content

Instantly share code, notes, and snippets.

@bfarzin
bfarzin / Bayesian CR.ipynb
Created November 9, 2018 20:55
Bayesian CR
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import os
os.environ["CUDA_VISIBLE_DEVICES"]="1"
import tensorflow as tf
sess = tf.Session()
from keras import backend as K
K.set_session(sess)
img = tf.placeholder(tf.float32,shape=(None,784))