this topicの指示に従ってgpuの制限を設定します。テンソルフローのセッション構成を実装する方法
しかし、私のコードは次のようになります:
この場合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
は、どのように私は私のコードで設定を設定するのですか? ここには直接sess = tf.Session(config=tf.ConfigProto(gpu_options=gpu_options))
行がありません。ありがとう!