Skip to content

Minor cosmetic changes #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiler_opt/rl/local_data_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def __init__(
# We remove this activity from the critical path by running it concurrently
# with the training phase - i.e. whatever happens between successive data
# collection calls. Subsequent runs will wait for these to finish.
self._reset_workers: concurrent.futures.Future = None
self._reset_workers: Optional[concurrent.futures.Future] = None
self._current_work: List[Tuple[corpus.ModuleSpec, worker.WorkerFuture]] = []
self._pool = concurrent.futures.ThreadPoolExecutor()

Expand Down
4 changes: 2 additions & 2 deletions compiler_opt/rl/train_locally.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
flags.DEFINE_string('root_dir', os.getenv('TEST_UNDECLARED_OUTPUTS_DIR'),
'Root directory for writing logs/summaries/checkpoints.')
flags.DEFINE_string('data_path', None,
'Path to CNS folder containing IR files.')
'Path to directory containing the corpus.')
flags.DEFINE_integer(
'num_workers', None,
'Number of parallel data collection workers. `None` for max available')
Expand Down Expand Up @@ -98,7 +98,7 @@ def train_eval(agent_name=constant.AgentName.PPO,
}
saver = policy_saver.PolicySaver(policy_dict=policy_dict)

logging.info('Loading module specs from corpus.')
logging.info('Loading module specs from corpus at %s.', FLAGS.data_path)
module_specs = corpus.build_modulespecs_from_datapath(
FLAGS.data_path, problem_config.flags_to_add(),
problem_config.flags_to_delete())
Expand Down