File tree Expand file tree Collapse file tree 2 files changed +2
-9
lines changed
Expand file tree Collapse file tree 2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -750,13 +750,6 @@ def parse_arguments():
750750 default = 1 ,
751751 help = "Number of iterations for tuning." ,
752752 )
753- tune_parser .add_argument (
754- "--resources_per_trial" ,
755- type = float ,
756- metavar = "<float>" ,
757- default = 1 ,
758- help = "Number of CPUs to request for each tunning job." ,
759- )
760753 tune_parser .add_argument (
761754 "--reference" ,
762755 type = str ,
@@ -1018,7 +1011,7 @@ def sweep():
10181011 local_dir = LOCAL_DIR ,
10191012 resume = args .resume ,
10201013 stop = {"training_iteration" : args .iterations },
1021- resources_per_trial = {"cpu" : args .resources_per_trial },
1014+ resources_per_trial = {"cpu" : os . cpu_count () / args .jobs },
10221015 log_to_file = ["trail-out.log" , "trail-err.log" ],
10231016 trial_name_creator = lambda x : f"variant-{ x .trainable_name } -{ x .trial_id } -ray" ,
10241017 trial_dirname_creator = lambda x : f"variant-{ x .trainable_name } -{ x .trial_id } -ray" ,
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ def setUp(self):
5757 f" { c } "
5858 for c in options
5959 ]
60- self . failCommands = [] # TODO
60+
6161
6262 def test_tune_resume (self ):
6363 # Goal is to first run the first config (without resume) and then run the second config (with resume)
You can’t perform that action at this time.
0 commit comments