Created
June 29, 2018 09:57
-
-
Save p-geon/ea86e783cc0a41a41e753163bc3254bb 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
GPUconfig = tf.ConfigProto( | |
gpu_options=tf.GPUOptions( | |
allow_growth=True | |
, visible_device_list="0" | |
) | |
, device_count={"GPU":1} | |
) | |
with tf.Session(graph=graph, config=GPUconfig) as sess: | |
print(sess.run()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment