with文で複数のウィンドウを並べる方法はないでしょうか?
gpuをwith文でいくつにも分割しようとしましたが、
python
1num_gpus=8 2for i in range(num_gpus): 3with tf.device('/gpu:%d' % i) 4 5AttributeError: 'DeviceSpec' object has no attribute 'split'
そこで以下のように訂正しましたが、
python
1gpus =[tf.device('/gpu:%d' % i) for i in range(NUMN_GPUS)] 2 for gpu in gpus: 3 with gpu: 4 5AttributeError: __enter__
with文で
python
1with tf.device('/gpu:0'), tf.device('/gpu:1')~ tf.device('/gpu:8') 2
と複数並べる方法はないでしょうか?
ご教授お願いします
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/08/27 06:01
2018/08/27 06:50