File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ include 'compiler_opt/rl/inlining/gin_configs/common.gin'
12
12
train_eval.agent_name=%constant.AgentName.PPO
13
13
train_eval.warmstart_policy_dir=''
14
14
train_eval.num_policy_iterations=3000
15
+ train_eval.num_modules=100
15
16
train_eval.num_iterations=300
16
17
train_eval.batch_size=256
17
18
train_eval.train_sequence_length=16
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ include 'compiler_opt/rl/regalloc/gin_configs/network.gin'
13
13
train_eval.agent_name=%constant.AgentName.PPO
14
14
train_eval.warmstart_policy_dir=''
15
15
train_eval.num_policy_iterations=3000
16
+ train_eval.num_modules=512
16
17
train_eval.num_iterations=200
17
18
train_eval.batch_size=256
18
19
train_eval.train_sequence_length=16
Original file line number Diff line number Diff line change 48
48
flags .DEFINE_integer (
49
49
'num_workers' , None ,
50
50
'Number of parallel data collection workers. `None` for max available' )
51
- flags .DEFINE_integer ('num_modules' , 100 ,
52
- 'Number of modules to collect data for each iteration.' )
53
51
flags .DEFINE_multi_string ('gin_files' , [],
54
52
'List of paths to gin configuration files.' )
55
53
flags .DEFINE_multi_string (
63
61
def train_eval (agent_name = constant .AgentName .PPO ,
64
62
warmstart_policy_dir = None ,
65
63
num_policy_iterations = 0 ,
64
+ num_modules = 100 ,
66
65
num_iterations = 100 ,
67
66
batch_size = 64 ,
68
67
train_sequence_length = 1 ,
@@ -149,7 +148,7 @@ def sequence_example_iterator_fn(seq_ex: List[str]):
149
148
delete_flags = delete_compilation_flags ) as worker_pool :
150
149
data_collector = local_data_collector .LocalDataCollector (
151
150
file_paths = tuple (file_paths ),
152
- num_modules = FLAGS . num_modules ,
151
+ num_modules = num_modules ,
153
152
worker_pool = worker_pool ,
154
153
parser = sequence_example_iterator_fn ,
155
154
reward_stat_map = reward_stat_map )
You can’t perform that action at this time.
0 commit comments