Skip to content

Commit 7e4b19f

Browse files
authored
Minor cosmetic changes (#99)
Part of #96
1 parent 99671e4 commit 7e4b19f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler_opt/rl/local_data_collector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def __init__(
5555
# We remove this activity from the critical path by running it concurrently
5656
# with the training phase - i.e. whatever happens between successive data
5757
# collection calls. Subsequent runs will wait for these to finish.
58-
self._reset_workers: concurrent.futures.Future = None
58+
self._reset_workers: Optional[concurrent.futures.Future] = None
5959
self._current_work: List[Tuple[corpus.ModuleSpec, worker.WorkerFuture]] = []
6060
self._pool = concurrent.futures.ThreadPoolExecutor()
6161

compiler_opt/rl/train_locally.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
flags.DEFINE_string('root_dir', os.getenv('TEST_UNDECLARED_OUTPUTS_DIR'),
4646
'Root directory for writing logs/summaries/checkpoints.')
4747
flags.DEFINE_string('data_path', None,
48-
'Path to CNS folder containing IR files.')
48+
'Path to directory containing the corpus.')
4949
flags.DEFINE_integer(
5050
'num_workers', None,
5151
'Number of parallel data collection workers. `None` for max available')
@@ -98,7 +98,7 @@ def train_eval(agent_name=constant.AgentName.PPO,
9898
}
9999
saver = policy_saver.PolicySaver(policy_dict=policy_dict)
100100

101-
logging.info('Loading module specs from corpus.')
101+
logging.info('Loading module specs from corpus at %s.', FLAGS.data_path)
102102
module_specs = corpus.build_modulespecs_from_datapath(
103103
FLAGS.data_path, problem_config.flags_to_add(),
104104
problem_config.flags_to_delete())

0 commit comments

Comments
 (0)