try without limit
ci/woodpecker/push/woodpecker Pipeline was successful
Details
ci/woodpecker/push/woodpecker Pipeline was successful
Details
This commit is contained in:
parent
b3fdc6dcf6
commit
67f6ecbbb9
12
run.py
12
run.py
|
@ -9,12 +9,12 @@ from keras import backend as K
|
||||||
K.clear_session()
|
K.clear_session()
|
||||||
|
|
||||||
gpus = tf.config.experimental.list_physical_devices('GPU')
|
gpus = tf.config.experimental.list_physical_devices('GPU')
|
||||||
if gpus:
|
# if gpus:
|
||||||
try:
|
# try:
|
||||||
tf.config.experimental.set_virtual_device_configuration(gpus[0], [tf.config.experimental.VirtualDeviceConfiguration(memory_limit=6024)])
|
# tf.config.experimental.set_virtual_device_configuration(gpus[0], [tf.config.experimental.VirtualDeviceConfiguration(memory_limit=6024)])
|
||||||
except RuntimeError as e:
|
# except RuntimeError as e:
|
||||||
print(e)
|
# print(e)
|
||||||
os.exit(1)
|
# os.exit(1)
|
||||||
|
|
||||||
print(tf.config.experimental.list_physical_devices())
|
print(tf.config.experimental.list_physical_devices())
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue