Commit Graph

2793 Commits

Author SHA1 Message Date
Matthew Brookhart cf439ec7e7 support slicing with out of order axes (#8959) 2021-09-08 09:33:01 -06:00
Matthew Brookhart 4ffbdcd0aa [Relay][Quantization] Per-Channel FQ2I (#8883)
* WIP support per-channel quantization

* more WIP

* More WIP

* fix issue with per-channel bias_add

* Fix fake quantize tests (#4)

* Fixed fake quantize issues.

* Formatting.

* Cleanup unused imports

* Fix real int8 tests.

* Add Relu

* One more little one (#5)

* Fixed fake quantize issues.

* Formatting.

* Cleanup unused imports

* Fix real int8 tests.

* Fix requantize shape bug.

* Non-working Per-channel Dense

* Fix legalization for non spatial operators. (#6)

* Fix legalization for non spatial operators.

* Fix axis checks for end2end functionality.

* fix axis normalization

fix lint

fix lint again

* Per channel fq2i (#8)

* WIP support per-channel quantization

* more WIP

* More WIP

* fix issue with per-channel bias_add

* Fix fake quantize tests (#4)

* Fixed fake quantize issues.

* Formatting.

* Cleanup unused imports

* Fix real int8 tests.

* Add Relu

* One more little one (#5)

* Fixed fake quantize issues.

* Formatting.

* Cleanup unused imports

* Fix real int8 tests.

* Fix requantize shape bug.

* Non-working Per-channel Dense

* Fix legalization for non spatial operators. (#6)

* Fix legalization for non spatial operators.

* Fix axis checks for end2end functionality.

* fix axis normalization

fix lint

fix lint again

* Fix bug in requantize dimension expansion.

* Format.

Co-authored-by: Josh Fromm <jwfromm@octoml.ai>

* respond to review comments

respond to review comments

Co-authored-by: Josh Fromm <jwfromm@octoml.ai>
2021-09-08 17:24:18 +09:00
Krzysztof Parzyszek e0aac9402b [Hexagon] Fix VTCM allocation (#8954)
Check if a buffer is in the `vtcm_buffers` list, before it's removed
from it.
2021-09-08 16:50:58 +09:00
AndrewZhaoLuo 9a47fc0a2f [Onnx] Pow support for other types (#8933)
* update pow

* update pow

* remove duplicate

Co-authored-by: Andrew Zhao Luo <andrewzhaoluo@system76-pc.localdomain>
2021-09-08 15:50:43 +09:00
anwang2009 475e9e0296 [ONNX] Add support for QLinearConcat contrib op (#8907)
* add qlinearconcat op

* fix tests

* Fix

* lint

* lint

* review

* boop ci

* fix regression

* noop

* jostle ci
2021-09-08 15:25:21 +09:00
Gustavo Romero af9d100361 [microTVM] Add method to query template info without creating a project (#8950)
Add info() method to TemplateProject class so it's possible to query all
available options for a given template project without creating a new
one. This is necessary because TVMC will query the available options for
a given template project to show them to the user so the user can use
them to finally create a new project dir.

That is also useful in general to query the available options for any
project type. For example, one can query all boards available on the
Zephyr platform with:

import tvm.micro.project as project_api

template = project_api.TemplateProject.from_directory(ZEPHYR_TEMPLATE_DIR)
boards = template.info()["project_options"][8]["choices"]

where 8 element refers to the "zephyr_board" option.

Signed-off-by: Gustavo Romero <gustavo.romero@linaro.org>
2021-09-08 09:50:32 +09:00
Valery Chernov 8027a7a692 [ONNX] [Test] fix GRU modification and reduce tolerance for RNN tests (#8923)
* fix high tolerance for RNN tests

* random seed was added to GRU test reproduction

Co-authored-by: Valery Chernov <valery.chernov@deelvin.com>
2021-09-08 09:48:33 +09:00
Wuwei Lin 332afaecdd [AutoScheduler] Fix custom build func in PopenWorker (#8939)
* [AutoScheduler] Fix custom build func in PopenWorker

* Add assertion
2021-09-07 20:04:58 -04:00
Ashutosh Parkhi 1dc1707f8c [CMSIS-NN] code generator for softmax (#8833) 2021-09-07 16:53:18 -07:00
Lunderberg 6dea994e43 [UnitTest][Vulkan] Runnable relay unit tests on Vulkan (#8947)
* [UnitTest] Added ids argument to tvm.testing.parameters

This matches the usage in `tvm.testing.parameter`, and allows for
parameter sets to be referred to by a single name.

* [Pytest] Fixed ordering issue of tvm.testing.parametrize_targets and known_failing_targets

If an explicit list of targets is given, then the
`known_failing_targets` decorator would fail to apply.  This commit
resolves the issue, and cleans up all target-specific marks to apply
in `tvm.testing.plugin._add_target_specific_marks`.

* [UnitTest][Vulkan] Runnable relay unit tests on Vulkan

This commit allows the relay test suite to be run targeting Vulkan with
`TVM_TEST_TARGETS="vulkan -from_device=0" pytest tests/python/relay`.  All
tests that require a specific environment are skipped if that environment
isn't present.  All tests that are known to fail when running on Vulkan
are marked as expected failure, and will be tracked in
https://github.com/apache/tvm/issues/8903.

- Failures during code generation
  - Type mismatches, boolean vs int8
    - tests/python/relay/test_any.py::test_any_reduce
    - tests/python/relay/test_op_level3.py::test_sparse_reshape
    - tests/python/relay/test_op_level4.py::test_reduce_functions
    - tests/python/relay/test_vm.py::test_cond
    - tests/python/relay/test_vm.py::test_simple_if

  - Incorrect strategy selection, picks NCHWc implemenation for NHWC layout
    - tests/python/relay/test_op_level2.py::test_conv2d_run

  - Unresolved CallNode operation
    - tests/python/relay/test_op_level1.py::test_unary_op[erf/tan/atan]
    - tests/python/relay/test_op_level3.py::test_scatter_add
    - tests/python/relay/test_op_level3.py::test_segment_sum

  - Generates 64-bit calls to GLSL that have only 16-/32-bit support
    - tests/python/relay/test_op_grad_level1.py::test_log_softmax_grad
    - tests/python/relay/test_op_grad_level1.py::test_softmax_grad
    - tests/python/relay/test_op_grad_level1.py::test_unary_op
    - tests/python/relay/test_op_grad_level10.py::test_cross_entropy_grad

  - Codegen raises error for variable size
    - tests/python/relay/test_any.py::test_any_batch_matmul
    - tests/python/relay/test_any.py::test_any_conv2d_NCHWc
    - tests/python/relay/test_any.py::test_any_dense

- Failures when running
  - Numeric differences (observed on GTX 1650 with NVIDIA driver)
    - tests/python/relay/test_op_level3.py::test_take
    - tests/python/relay/test_op_level5.py::TestCropAndResize
    - tests/python/relay/test_op_level5.py::TestResize1D
    - tests/python/relay/test_op_level5.py::TestResize2D
2021-09-08 07:44:35 +09:00
masahi dd25fad6cb [CUDA] Improve local_response_norm schedule (#8946)
* Improve cuda lrn schedule

* fuse reduction and the next elemwise kernel

* remove cpp schedule

* fix

* fixed unintended revert

Co-authored-by: masa <masa@pop-os.localdomain>
2021-09-07 15:37:50 -04:00
masahi 0fb840eb5d [Layout] Unify dense op input layout (#8921) 2021-09-07 10:12:58 -07:00
Krzysztof Parzyszek 9b034d729f [Hexagon] Add support for linked-in model parameters (#8865)
* [Hexagon] Add support for linked-in model parameters

* Remove entry_func, since it's not used anywhere

* Simplify linked-param codegen preparation a bit

* Detect multiple linked-params functions

* Add testcase to check for linked-param codegen

* Empty commit to restart build
2021-09-06 18:54:15 -05:00
masahi ab0f0553b2 [TIR] Fixed LowerThreadallreduce not remapping Store buffer var (#8931)
* Fixed LowerThreadallreduce not remapping Store buffer var

* reenable warp reduction schedule for softmax with fused ops

Co-authored-by: masa <masa@pop-os.localdomain>
2021-09-06 14:18:39 -07:00
Siyuan Feng 22dbc3a932 [TVMScript] Enhance printer (#8934) 2021-09-06 14:18:24 -07:00
masahi 054e2bbef9 [CUDA] Improve adaptive and global pool schedule (#8936) 2021-09-06 09:08:41 -07:00
masahi 7eda4a5342 [Relay, TOPI] Make Softmax op fusible with elemwise ops (#8909)
* Change softmax op pattern to OUT_ELEMWISE_FUSABLE

* Softmax is fused but x86 schedule is suboptimal

* fusion properly done

* Updating GPU schedule for fusion

* update softmax warp shuffle schedule

* fix compute_at

* Bug fix in lower_thread_all_reduce when reduction storage is reused by storage_rewrite

* Temp disable softmax warp reduction schedule when softmax is fused

* Revert "Bug fix in lower_thread_all_reduce when reduction storage is reused by storage_rewrite"

This reverts commit 8aa340e23438a922905b1e247afa8f223f284a9c.

* lint fix

* try make diff smaller

* fix tests

* fixed another broken test

* Fix flaky uTVM templating test

* fix equality check on output op

Co-authored-by: masa <masa@pop-os.localdomain>
Co-authored-by: Gavin Uberti <gavin.uberti@gmail.com>
2021-09-06 15:30:36 +09:00
Michal Piszczek b34d6b9c3d [ONNX] Add OpSet 13 implementation for Hardmax (#8924)
* Add opset 13 impl for hardmax

* Format
2021-09-04 14:15:59 +09:00
Lunderberg 3a72d2fe34 [UnitTests][Ethos-N] Mark unit tests as requiring Ethos-N (#8873)
- Adds the decorator `tvm.testing.requires_ethosn`

- Marks all tests in `tests/python/contrib/test_ethosn` as requiring
  ethosn instead of directly checking `ethosn_available()`.  This way,
  they show up as skipped rather than passing.

- Marks test_compile_tflite_module_with_external_codegen as requiring
  ethosn.
2021-09-04 14:15:38 +09:00
Krzysztof Parzyszek 318e3fe774 [Hexagon] Add trivial conv2d operator to Hexagon relay strategy (#8915)
This is just to enable relay codegen for conv2d on Hexagon, not for
performance.
2021-09-03 16:10:34 -07:00
Grant Watson 06a0d63c43 Sanitize names of input tensors in interface header (#8720)
* Sanitize names of input tensors in interface header

Change-Id: I7f02a993887bf84316262cd2586a734a9079c338

* Update tensor name sanitizer tests to parameterize them.

Change-Id: I157d8d8d607de2904285e403893f146e97b510d5

* Only test unpacked, C interface API, AOT case

Change-Id: I9082ae32079a1a3924c06c7f26c757aafa46dec2
2021-09-03 17:18:10 +01:00
Junru Shao a890bb9943 [TensorIR][Minor] Allow Tuple/Array in TE lowering (#8916) 2021-09-03 19:51:48 +09:00
wangxiang2713 ac9bfd99ed [BUG] Shape Func of Split Op Error (#8887)
* [BUG] Shape Func of Split Op Error

* Convert Tab to Space

* Add Test Case
2021-09-03 18:41:15 +09:00
Liao Jianjin 19b233a905 [ONNX] Add index_put operator (#8894)
* onnx:add index_put

* reformat code

* add parametrize_targets

* change slice to onnx_index instance

* modify test_forward
2021-09-03 17:35:26 +09:00
Wuwei Lin 8326edd61d [AutoScheduler] Propogate global autotvm state to PopenPool workers (#8913)
* [AutoScheduler] Propogate global autotvm state to PopenPool workers

* Fix

* lint
2021-09-03 15:07:30 +09:00
Lunderberg aac0754ed6 [UnitTests][Contrib] Enable contrib tensorrt/coreml unit tests (#8902)
* [UnitTests][CoreML] Marked test_annotate as a known failure.

The unit tests in `test_coreml_codegen.py` haven't run in the CI
lately, so this test wasn't caught before.  (See tracking issue

- Added `pytest.mark.xfail` mark to `test_annotate`.

- Added `tvm.testing.requires_package` decorator, which can mark tests
  as requiring a specific python package to be available.  Switched
  from `pytest.importorskip('coremltools')` to
  `requires_package('coremltools')` in `test_coreml_codegen.py` so
  that all tests would explicitly show up as skipped in the report.

- Added `uses_gpu` tag to all tests in `test_coreml_codegen.py`, since
  only ci_gpu has coremltools installed.  In the future, if the ci_cpu
  image has coremltools installed, this mark can be removed.

* [Pytest][TensorRT] Mark the TensorRT tests with tvm.testing.requires_cuda

Previously, the tests had an early bailout if tensorrt was disabled,
or if there was no cuda device present.  However, the tests were not
marked with `pytest.mark.gpu` and so they didn't run during
`task_python_integration_gpuonly.sh`.  This commit adds the
`requires_cuda` mark, and maintains the same behavior of testing the
tensorrt compilation steps if compilation is enabled, and running the
results if tensorrt is enabled.

In addition, some of the tests result in failures when run.  These
have been marked with `pytest.mark.xfail`, and are being tracked in
issue #8901.
2021-09-02 20:10:28 +01:00
Luyao Ren 7c9811c23f Set default value of p in LpPool as 2 (#8866)
* Set default value of p in LpPool as 2

* Update test_forward.py

Fix bug in test.

* Update test_forward.py

update with correct shape.

* Update onnx.py

* Update python/tvm/relay/frontend/onnx.py

Co-authored-by: Wuwei Lin <vincentl13x@gmail.com>

Co-authored-by: luyaor <luyaor@luyaordeMacBook-Pro.local>
Co-authored-by: Wuwei Lin <vincentl13x@gmail.com>
2021-09-02 09:28:48 -06:00
AndrewZhaoLuo 910b73e1f7 [Onnx] Support Negative Log Loss (#8872)
* nll loss v1

* add converter

* decode strings in byte form

* decode variable length inputs

* make shapes correct

* unsqueeze

* proper weight handling

* simplify if statement

* fix tests

* add comment about tests

* delete extra file

* lint

* so cool

* jostle ci

Co-authored-by: Andrew Zhao Luo <andrewzhaoluo@system76-pc.localdomain>
2021-09-02 16:18:37 +09:00
mvermeulen eaf888c568 [ROCm][TVMC] Add ROCm to the TVMC driver (#8896)
* Add ROCm to list of RPC clients.

* Add ROCm to list of TVMC devices.

* Enable ROCm by adding session call.
2021-09-02 15:21:21 +09:00
Siyuan Feng 8e27d6c18f fix error report on Store (#8895) 2021-09-01 17:49:12 -04:00
Ashutosh Parkhi 3f3c067fec [1/10] CMSIS-NN graph partitioner for softmax (#8653)
* cmsis graph partitioner for softmax

Change-Id: I80ecd7bc5351f241b4674ef53b36e4398c8adb83

* Updated docstring in the partioning function

Change-Id: Ieb4b623e5929cfdb6aa0235db64c825fac8d7055
2021-09-01 11:49:49 +01:00
Siyuan Feng b01ab9e81e [TensorIR][M2a] CacheRead/Write (#8863)
Co-authored-by: Junru Shao <junrushao1994@gmail.com>
Co-authored-by: Wuwei Lin <wuwei@apache.org>
Co-authored-by: Ruihang Lai <lairuihangdongdong@qq.com>
Co-authored-by: Hongyi Jin <3231950289@qq.com>
Co-authored-by: Siyuan Feng <Hzfengsy@sjtu.edu.cn>
Co-authored-by: Bohan Hou <32121147+spectrometerHBH@users.noreply.github.com>
2021-08-31 12:59:53 -07:00
AndrewZhaoLuo 6df070aac6 [ONNX][TOPI] Support select_last_index for argmin/max (#8816)
* support select_last_index for argmin/max

* reverse conditions which made on accident

* forward args in reduce.py

* make proper nodes for reduction ops

* remove complicated nested lambdas

* fix lambda capture for conversion

* forward more arguments

* forward more args

* enable onnx tests

* wrapping casts to remove ambiguity

* revert changes extraneous

* correct incorrect attrs being used for ops

* change attributes

* remove old impl

* register new attribute node

* clean up test

* reformat

* reformat

* coolio

* stable comparison

* casts to avoid ambiguity

* casting more

* correct arg passing

* support select_last_index for argmin/max

* reverse conditions which made on accident

* forward args in reduce.py

* make proper nodes for reduction ops

* remove complicated nested lambdas

* fix lambda capture for conversion

* forward more arguments

* forward more args

* enable onnx tests

* wrapping casts to remove ambiguity

* revert changes extraneous

* correct incorrect attrs being used for ops

* change attributes

* remove old impl

* register new attribute node

* clean up test

* reformat

* reformat

* coolio

* stable comparison

* casts to avoid ambiguity

* casting more

* correct arg passing

* fix broken input

* OneElementReduceAttrs-->ArgReduceAttrs"

* reduce boilerplate

* change names

* remove log statement

* jostle ci

Co-authored-by: Andrew Zhao Luo <andrewzhaoluo@system76-pc.localdomain>
2021-08-31 18:45:47 +09:00
Alexander Pivovarov 06fc788fc1 [RISCV] Add support for llvm parameter -mabi (-target-abi) (#8860) 2021-08-29 18:02:54 -07:00
Ruihang Lai 27d3d605f3 [TIR] GetBlockReadWriteRegion (#8875)
* [TIR] GetBlockReadWriteRegion

* Fix black issue

* Use constant reference for the interface

* Fix lint issue
2021-08-29 09:30:16 -07:00
Josh Fromm 2545e9caec [Frontend][Onnx] Simplify onnx input since name accesses are not reliable. (#8867)
* Simplify onnx input since name accesses are no longer supported.

* move Celu importer.
2021-08-28 12:59:20 -07:00
AndrewZhaoLuo 5ab527a71f [Autoscheduler] Configurable workload keys (#8862)
* change workload keys

* remove binary string comparison

* append the tuple not every integer

* clean up

* lint

* dump workload keys to dags

* fix things

* change some strings

* misc fixes, add tests

* jostle ci
2021-08-28 02:24:16 -07:00
Lunderberg 3c86eec10f [UnitTests] Expose TVM pytest helpers as plugin (#8532)
* [UnitTests] Expose TVM pytest helpers as plugin

Previously, pytest helper utilities such as automatic parametrization
of `target`/`dev`, or `tvm.testing.parameter` were only available for
tests within the `${TVM_HOME}/tests` directory.  This PR extracts the
helper utilities into an importable plugin, which can be used in
external tests (e.g. one-off debugging).

* [UnitTests] Refactor the plugin-specific logic out into plugin.py.

* [UnitTests] Moved marker definition out to global variable.
2021-08-27 14:43:49 -07:00
Tristan Konolige 55bb8b60b7 [Graph Executor, VM] Add end to end benchmarking of models (#8858)
Add benchmarking that includes ovearhead of transfering inputs and
outputs to and from the device. This should give an accurate measurement
of the runtime a user would see when using the model. This is
accomplished by adding functions that run from inputs to return values
into the graph executor and the VM.
2021-08-27 14:39:03 -07:00
Jason e774fed67c Add a PaddlePaddle Frontend (#8645)
* fix some problems for matmul

* fix some problems for matmul

* add alpha parameter for matmul

* remove unnecessary condition

* add TranslatedLayer which support model loaded by jit.load

* add mul operator support

* Add padding mode support for conv/pool2d

* support 4 two-tuples

* add paddle test case

* add paddle conv2d  case

* update test_forward.py

* fix paddle convert_matmul

* add paddle multiply and matmul op test case

* add test case and fix bug

* delete import pandas

* add paddlepaddle tests

* modify the variable name of convert_reshape

* formatting

* formatting

* use black to format python code

* pylint check

* Remove fluid api

* black format

Co-authored-by: root <root@bjyz-sys-gpu-kongming3.bjyz.baidu.com>
Co-authored-by: wjj19950828 <wjjisloser@163.com>
Co-authored-by: heliqi <1101791222@qq.com>
Co-authored-by: Junru Shao <junrushao1994@gmail.com>
2021-08-27 08:34:05 +01:00
Valery Chernov b4b194dbb0 extend repeat_interleave op for relay.Expr (#8839)
Co-authored-by: Valery Chernov <valery.chernov@deelvin.com>
2021-08-27 11:48:25 +09:00
Tantalus13A98B5F 227bf7ffaf [TOPI] [Relay] Sparse Conv2d Implementation for 3x3 kernels (#8605)
* [topi] add spconv2d_3x3 nhwc

* [relay] sparse_conv2d: add kernel_size attr

* [relay] add strategy for spconv2d_3x3 nhwc

* [relay] pass to convert spconv2d with const args

* [relay] convert sparse conv2d pass fixes

* use array for sparse conv2d attr

* fixup 1x1 tests; new 3x3 tests
2021-08-27 09:18:34 +08:00
masahi f4f525dab8 [AMP] Disallow fp16 conversion for summation-like ops (#8810)
* [AMP] Disallow fp16 conversion for summation-like ops

* test only structural equality
2021-08-27 07:16:54 +09:00
Elen Kalda d263c6d430 [Pattern matching] Add an option to rewrite the graph only once (#8843)
* [Pattern matching] Add an option to rewrite the graph only once

If the graph returned from the callback consists of the original
pattern, the rewriter will run in the loop, which is not always desired.
So this patch proposes an option to run the rewriter only once.

Change-Id: I85cf0a055b8961d52394f21c1e4d7aad0a7e1d06

* Make rewrite_once default to false

Change-Id: Idf6f01f254c403158883681e75c2a5978efbd2d0
2021-08-26 10:06:23 -07:00
Krzysztof Parzyszek 3f777d555f [Hexagon] Rework tvm.target.hexagon() interface (#8823)
* [Hexagon] Rework tvm.target.hexagon() interface

Make the tvm.target.hexagon() function take most options as keyword
parameters. This will allow adding additional parameters without changing
the interface.

No changes are required to existing code, except for changing positional
parameters following the CPU version to keyword parameters, and updating
the names of the keyword parameters:
  sim_args  -> sim_options,
  llvm_args -> llvm_options,
although the old names will be accepted for the time being.

* formatting

* change ' to "

* Rename 'args' to 'config' for clarity

* Use 'strip' instad of 'replace'

* Restart build
2021-08-26 09:08:17 -05:00
Anastasia Stulova 46f8b61bd3 [Relay][TOPI] Support of depthwise conv2d NHWC for Mali/Bifrost. (#8584)
* [Relay][TOPI] Support of depthwise conv2d NHWC for Mali/Bifrost.

Added initial tunable autotvm templates for depthwise conv2d with
NHWC layout for Mali and Bifrost.

* [Relay][TOPI] Misc fixes for depthwise conv2d Mali/Bifrost.

- Fix assert for Bifrost.
- Set reasonable default axis splits to avoid using tophub for NHWC.
- Fixed typo: arm cpu -> Mali.

* [Relay][TOPI] Fixed formatting in depthwise conv2d Mali/Bifrost.
2021-08-26 10:03:06 +01:00
Tristan Konolige f1ca91d4e4 [GRAPH EXECUTOR,VM] Add benchmarking function to graph executor and vm (#8807)
* [GRAPH EXECUTOR,VM] Add benchmarking function to graph executor and vm

This new benchmarking function is just a convenience function for
calling time_evaluator on the underlying module. Hopefully this should
make it easier for users to get good benchmarks of their code.

* formatting

* import order

* more test, more comments, more precision

* fix tests

* add seconds descriptions to doc
2021-08-25 20:25:29 -05:00
Valery Chernov b8193646fa [Frontend] [Torch] [ONNX] GRU layer (#8781)
* GRU cell was implemented in common.py. GRU was supported on pytorch frontend side

* update GRU in common.py and onnx frontend

* fix issue related to GRU accuracy in pytorch and ONNX frontend

* small fixes and remove excess

* common GRU was additionaly updated. tuned pytorch GRU was strongly accelerated

* GRU cell in ONNX frontend was used from common.py. previous implementation was removed

* small fixes in comments

* fixes after review. GRU test was implemented for pytorch frontend

* tests for RNN layers was unified for pytorch frontend

Co-authored-by: Valery Chernov <valery.chernov@deelvin.com>
2021-08-25 16:48:14 +09:00
Xiyou Zhou 2859c20391 [M3a][Meta Schedule] Add Sampling Primitive SampleCategorical. (#8817)
Co-authored-by: Junru Shao <junrushao1994@gmail.com>
Co-authored-by: Wuwei Lin <wuwei@apache.org>
Co-authored-by: Ruihang Lai <lairuihangdongdong@qq.com>
Co-authored-by: Hongyi Jin <3231950289@qq.com>
Co-authored-by: Siyuan Feng <Hzfengsy@sjtu.edu.cn>
Co-authored-by: Bohan Hou <32121147+spectrometerHBH@users.noreply.github.com>
2021-08-24 15:52:03 -07:00
Yuanjing Shi 596ff5cff5 [AutoTVM] Use PopenPool in XGBoostCostModel (#8820)
* replacd multiprocessing.Pool with PopenPoolExecutor

* add initializer func

* static init func

* address comments

* linting

* fix tests

* address comments
2021-08-24 09:40:30 -07:00