106106)
107107# Global variable for args
108108args = None
109- design = None
110- platform = None
111- config = None
112109
113110
114111class AutoTunerBase (tune .Trainable ):
@@ -127,7 +124,7 @@ def setup(self, config):
127124 self .parameters = parse_config (
128125 config = config ,
129126 base_dir = self .repo_dir ,
130- platform = platform ,
127+ platform = args . platform ,
131128 sdc_original = SDC_ORIGINAL ,
132129 constraints_sdc = CONSTRAINTS_SDC ,
133130 fr_original = FR_ORIGINAL ,
@@ -582,13 +579,13 @@ def main():
582579 # Read config and original files before handling where to run in case we
583580 # need to upload the files.
584581 config_dict , SDC_ORIGINAL , FR_ORIGINAL = read_config (
585- os .path .abspath (config ), args .mode , getattr (args , "algorithm" , None )
582+ os .path .abspath (args . config ), args .mode , getattr (args , "algorithm" , None )
586583 )
587584
588585 LOCAL_DIR , ORFS_FLOW_DIR , INSTALL_PATH = prepare_ray_server (args )
589586
590587 if args .mode == "tune" :
591- best_params = set_best_params (platform , design )
588+ best_params = set_best_params (args . platform , args . design )
592589 search_algo = set_algorithm (
593590 args .algorithm ,
594591 args .experiment ,
0 commit comments