Skip to content

Commit 1851281

Browse files
Lint fixes for #421
Similar to 8cb41b8. A couple new fixes now that more code has been landed before the CI check went up. Separating this out from #421 to try and keep the commit history somewhat clean.
1 parent 59a5478 commit 1851281

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

compiler_opt/es/blackbox_evaluator.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,12 @@ def __init__(self, train_corpus: corpus.Corpus,
124124
def get_results(
125125
self, pool: FixedWorkerPool, perturbations: List[policy_saver.Policy]
126126
) -> List[concurrent.futures.Future]:
127-
job_args = []
128-
for perturbation in perturbations:
129-
job_args.append({
130-
'modules': self._train_corpus.module_specs,
131-
'function_index_path': self._function_index_path,
132-
'bb_trace_path': self._bb_trace_path,
133-
'tflite_policy': perturbation
134-
})
127+
job_args = [{
128+
'modules': self._train_corpus.module_specs,
129+
'function_index_path': self._function_index_path,
130+
'bb_trace_path': self._bb_trace_path,
131+
'tflite_policy': perturbation
132+
} for perturbation in perturbations]
135133

136134
_, futures = buffered_scheduler.schedule_on_worker_pool(
137135
action=lambda w, args: w.compile_corpus_and_evaluate(**args),

compiler_opt/es/blackbox_test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def compile(self, policy: policy_saver.Policy,
4545

4646
class ESTraceWorker(worker.Worker):
4747
"""Temporary placeholder worker.
48-
48+
4949
This is a test worker for TraceBlackboxEvaluator that expects a slightly
5050
different interface than other workers.
5151
"""

0 commit comments

Comments
 (0)