mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-08-22 06:23:20 -07:00
test hard placement
This commit is contained in:
parent
5a8d9f66f2
commit
5dbbf4767c
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ class nn():
|
|||
config = tf.ConfigProto(device_count={'GPU': 0})
|
||||
else:
|
||||
nn.tf_default_device = "/GPU:0"
|
||||
config = tf.ConfigProto(allow_soft_placement=True)
|
||||
config = tf.ConfigProto()
|
||||
config.gpu_options.visible_device_list = ','.join([str(device.index) for device in device_config.devices])
|
||||
|
||||
config.gpu_options.force_gpu_compatible = True
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue