-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
17 lines (15 loc) · 792 Bytes
/
Copy pathmain.py
File metadata and controls
17 lines (15 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import tensorflow as tf
import platform
from implementations.experiments2 import experiment_runer
from implementations.experiments_linux import experiment_runer_linux
if __name__=="__main__":
physical_devices = tf.config.experimental.list_physical_devices(device_type='GPU')
tf.config.experimental.set_memory_growth(physical_devices[0], True)
if platform.system() == 'Linux':
arg_path = './implementations/args_linux.txt'
experiment_runer_linux(arg_path=arg_path,logging_config_path='logging_config.yaml')
elif platform.system() == 'Windows':
arg_path = 'implementations\\args.txt'
experiment_runer(arg_path=arg_path,logging_config_path='logging_config.yaml')
else:
raise ValueError(f"Unsupported platform :{platform.system()}.")