Skip to content

Commit

Permalink
[AutoScheduler] Fix custom build func in PopenWorker
Browse files Browse the repository at this point in the history
  • Loading branch information
vinx13 committed Sep 7, 2021
1 parent 9b034d7 commit 3e1b60b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions python/tvm/auto_scheduler/measure.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,10 +661,6 @@ def local_build_worker(args):
The build result of this Builder thread.
"""
inp, build_func, verbose = args
assert build_func == BuildFunc.name, (
"BuildFunc.name: " + BuildFunc.name + ", but args is: " + build_func
)
build_func = BuildFunc.build_func

return _local_build_worker(inp, build_func, verbose)

Expand Down Expand Up @@ -701,7 +697,7 @@ def local_builder_build(inputs, timeout, n_parallel, build_func="default", verbo
[
(
i.serialize(),
build_func,
BuildFunc.build_func,
verbose,
)
for i in inputs
Expand Down

0 comments on commit 3e1b60b

Please sign in to comment.