Created
July 16, 2019 06:32
-
-
Save csJd/24775b2b2db24a4269735acf2a5b3b20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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