Fix LocalBuilder on macos with python 3.8. (#6083)
authorTristan Konolige <tristan.konolige@gmail.com>
Fri, 17 Jul 2020 14:51:12 +0000 (07:51 -0700)
committerGitHub <noreply@github.com>
Fri, 17 Jul 2020 14:51:12 +0000 (07:51 -0700)
commit378a85a896ca3393b9e86cdc87fcc0ed76c1ec82
tree9490b039c6c8d439753e682d69982c9f22a487f7
parent3ddce1385d053bf59599954c5edf416faab952a3
Fix LocalBuilder on macos with python 3.8. (#6083)

Python 3.8 changes the default way multiprocessing creates new processes
on macOS from forking to spawing. Spawning requires all objects to be
picklable. Nested functions and lambdas are not picklable, so this
commit fixes the one instance of nested functions in the codebase that
was causing issues.
python/tvm/autotvm/measure/measure_methods.py