I want to set the gpu limitation as instructed in this topic.
But my code goes like this:
deep_grap = tf.Graph()
with deep_grap.as_default():
### graph definition here
### graph definition here
with tf.Session(graph=deep_grap) as sess:
tf.initialize_all_variables().run()
### more computations here
In this case, how do I set the configuration in my code?
I don't have a direct sess = tf.Session(config=tf.ConfigProto(gpu_options=gpu_options))
line here. Thanks!