Skip to content

Commit

Permalink
Fix invalid function name in comment
Browse files Browse the repository at this point in the history
This patch replaces load_corpus_element with the (presumably) correct
function name, load_module_spec, which is defined directly below. This
seems to have been an oversight during a refactoring at some point.
  • Loading branch information
boomanaiden154 committed Sep 16, 2024
1 parent 6693196 commit ff7448c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler_opt/rl/corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def reset(self):
def sample(self, k: int, sort: bool = False) -> List[ModuleSpec]:
"""Samples `k` module_specs, optionally sorting by size descending.
Use load_corpus_element to get LoadedModuleSpecs - this allows the user
Use load_module_spec to get LoadedModuleSpecs - this allows the user to
decide how the loading should happen (e.g. may want to use a threadpool)
"""
# Note: sampler is intentionally defaulted to a mutable object, as the
Expand Down

0 comments on commit ff7448c

Please sign in to comment.