Skip to content

Instantly share code, notes, and snippets.

@csJd
Created July 16, 2019 06:32
Show Gist options
  • Save csJd/24775b2b2db24a4269735acf2a5b3b20 to your computer and use it in GitHub Desktop.
Save csJd/24775b2b2db24a4269735acf2a5b3b20 to your computer and use it in GitHub Desktop.
import tensorflow as tf
import os
os.environ["CUDA_VISIBLE_DEVICES"]="0,1"
with tf.Session() as sess:
a = tf.placeholder(tf.int16, name='a')
b = tf.identity(a, name='b')
sess.run(b, feed_dict={a: 0})
print(b)
input("Pausing, press <ENTER> to continue...")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment