Rishabh Jain [Mon, 10 Aug 2020 12:21:20 +0000 (17:51 +0530)]
[TFLite] Implemented ONE_HOT Operator for TFLite (#6223)
Tianqi Chen [Mon, 10 Aug 2020 09:09:32 +0000 (02:09 -0700)]
[COMMUNITY] jcf94 -> Reviewer (#6241)
shiwenloong [Mon, 10 Aug 2020 06:07:43 +0000 (14:07 +0800)]
[Relay][Op] Add unbiased variance op and corresponding support in pytorch frontend (#6232)
windclarion [Sun, 9 Aug 2020 14:00:53 +0000 (22:00 +0800)]
[uTVM] fix crt building and running error (#6231)
Signed-off-by: windclarion <windclarion@gmail.com>
lhutton1 [Sun, 9 Aug 2020 01:27:03 +0000 (02:27 +0100)]
[BYOC][JSON] json_node.h should include data_type.h (#6224)
Fixes compilation issue after #6214.
Change-Id: I07e25356bbfe4a7bd0950f2672441ce1c338dc3f
Tristan Konolige [Sun, 9 Aug 2020 01:26:36 +0000 (18:26 -0700)]
[FIX] Verify that tensor reshape is valid. (#6215)
Matthew Brookhart [Sat, 8 Aug 2020 00:08:52 +0000 (17:08 -0700)]
[Relay][Dynamic] Add Dynamic Resize Op (#6198)
* WIP
* optionally remove output shape inference from topi
* fix resize
* add resize to dynamic_to_static pass
add resize to dynamic_to_static pass
* fix clang-format
* fix bad rebase
* add argument to dynamic resize doc string
* fix i386 test
* fix lint
cloud-mxd [Fri, 7 Aug 2020 11:38:11 +0000 (19:38 +0800)]
[runtime][cublas] fix typo (#6230)
wrongtest [Fri, 7 Aug 2020 07:29:37 +0000 (15:29 +0800)]
[Relay][Pass] Support combine multiple dense op just into dense (#6062)
* feat: Support combine multiple matmuls to flat matmul
* fix: Change to_batch -> to_batch_matmul and enrich docstring
* feat: Add wrapped batching ops pass for python
windclarion [Fri, 7 Aug 2020 04:23:39 +0000 (12:23 +0800)]
[C++ RPC] fix typo to keep same with source code (#6220)
Signed-off-by: windclarion <windclarion@gmail.com>
Dmitriy Smirnov [Fri, 7 Aug 2020 03:08:35 +0000 (04:08 +0100)]
Reshape with dynamic shape arg (#6208)
Reshape operation updated to take shape from second operand.
In case if shape is provided using second operand it
can be a tensor now.
Siju Samuel [Fri, 7 Aug 2020 00:57:20 +0000 (06:27 +0530)]
[ONNX]Mod operator, bug fix (#6160)
* Onnx mod, bug fix
* Added comment for the mod/floor_mod behaviour difference between numpy & relay
shiwenloong [Fri, 7 Aug 2020 00:55:46 +0000 (08:55 +0800)]
[PYTORCH]Std op without specified dimensions support (#6226)
Andrew Reusch [Thu, 6 Aug 2020 23:08:19 +0000 (16:08 -0700)]
[µTVM] Add --runtime=c, remove micro_dev target, enable LLVM backend (#6145)
* need to fill address of globals in tvmfuncregistry
* llvm func registry generator works!
* lint fixes
* rm hexdump include
* bring bundle_deploy back to life and add to CI
* revert gcda additions
* git-clang-format
* fix check for --system-lib and test_runtime_micro target
* fixup compile flags for bundle_deploy CRT and improve robustness
* git-clang-format
* add debugging info
* git-clang-format
* initialize ret_values in PackedFunc_Call.
* retrigger CI
* fix log messages
* git-clang-format
* remove default for --runtime target opt
* put backtrace behind a flag and enable it
* simpify ReadString(), fixing bad instruction exception on os x.
* git-clang-format
* uncomment tests
* reorder backtrace ldflags for linux gcc
Matthew Brookhart [Thu, 6 Aug 2020 15:46:58 +0000 (08:46 -0700)]
[Relay][Dynamic] OneHot operation (#6209)
* Dynamic OneHot Op
* refactor dynamic_to_static
* add onehot to dynamic_to_static pass
Lianmin Zheng [Thu, 6 Aug 2020 10:46:12 +0000 (03:46 -0700)]
[Ansor][AutoTVM v2.0] Phase 1: The base class for cost models (#6187)
* add the base class for cost models
* address comments
* Update tests/python/unittest/test_auto_scheduler_cost_model.py
Disable test if user doesn't have llvm
Co-authored-by: Zhao Wu <zhaowu@apache.org>
Zhi [Thu, 6 Aug 2020 03:36:01 +0000 (20:36 -0700)]
[DOCS] Update pass infra tutorial (#6193)
* [DOCS] Update pass infra tutorial
* update tutorial
Tianqi Chen [Thu, 6 Aug 2020 01:57:25 +0000 (18:57 -0700)]
[RUNTIME] Enable auto conversion String->DLDataType (#6214)
wjliu [Wed, 5 Aug 2020 20:02:36 +0000 (04:02 +0800)]
match pytorch 1.6 googlenet pretrained model (#6201) (#6212)
Tianming Xu [Wed, 5 Aug 2020 20:01:27 +0000 (04:01 +0800)]
[Relay] pytorch frontend support conv1d (#6203)
* [Relay] pytorch frontend support conv1d
* add tests for conv1d
Co-authored-by: xutianming.xtm <xutianming.xtm@bytedance.com>
Jamie Zhuang [Wed, 5 Aug 2020 17:04:24 +0000 (01:04 +0800)]
fix compilation error with cuda 11 (#6213)
Trevor Morris [Wed, 5 Aug 2020 17:04:08 +0000 (10:04 -0700)]
Pass mfloat-abi to LLVMModule::Init (#6150)
Fix lint
Thierry Moreau [Wed, 5 Aug 2020 15:15:31 +0000 (08:15 -0700)]
[Target] 64-bit RPi4b target (#6211)
Balint Cristian [Wed, 5 Aug 2020 15:13:15 +0000 (18:13 +0300)]
Fix compile warnings. (#6204)
abergeron [Wed, 5 Aug 2020 05:15:21 +0000 (01:15 -0400)]
Change the meaning of conv3d_transpose output_padding to match conv{1,2}d_transpose (#6065)
* Change the meaning of output_padding to correspond to conv{1,2}d_transpose
* Fix long lines
* Fix the relay test
* Add missing doc.
* fix size ordering problem
韩朴宇 [Wed, 5 Aug 2020 02:32:26 +0000 (10:32 +0800)]
[Rust] fix #6205 (#6207)
Siju Samuel [Tue, 4 Aug 2020 13:48:05 +0000 (19:18 +0530)]
[COREML]Unary ops support added in frontend (#6196)
* [COREML]Unary ops support added in frontend
* Used coreml enums
Haibin Lin [Tue, 4 Aug 2020 04:38:51 +0000 (21:38 -0700)]
[RELAY] Basic block normal form (#6152)
* initial commit
* refactor utils
* add util
* revert anf test
* update test
* fix logging
* fix scope bug
* complete tests
* remove logging
* revert refactoring
* add one more test case
* fix missing var binding
* fix test
* fix lint
* fix lint
* fix clang-format
* fix lint
* fix lint
* commit missing code
* add analysis api
* fix lint
* fix lint
* lint
* add test for func
* address CR
* fix typo
* fix return type
* fix lint
* refactor classes
* fix lint
* remove prints
* address comments
Co-authored-by: Ubuntu <ubuntu@ip-172-31-42-138.ec2.internal>
Rishabh Jain [Tue, 4 Aug 2020 02:08:13 +0000 (07:38 +0530)]
[TFLite] Implemented PADV2 Operator for TFLite and added support for constant values in PAD. (#6167)
mbaret [Tue, 4 Aug 2020 02:04:16 +0000 (03:04 +0100)]
[CI][ETHOSN] Enable CI for Ethos-N (#6171)
This introduces the necessary changes to docker to
support building the Ethos-N driver stack. This is
required for subsequent patches which introduce
the Ethos-N integration into TVM.
Co-authored-by: Leo Blonk <Leo.Blonk@arm.com>
Co-authored-by: Leandro Nunes <leandro.nunes@arm.com>
# Please enter the commit message for your changes. Lines starting
# with '#' will be kept; you may remove them yourself if you want to.
# An empty message aborts the commit.
#
# Date: Mon Jul 27 15:43:41 2020 +0100
#
# On branch ethosn-ci
# Changes to be committed:
# modified: docker/Dockerfile.ci_cpu
# new file: docker/install/ubuntu_install_ethosn_driver_stack.sh
#
# Untracked files:
# CombinedMemoryMap.hex
# OutputModel.hex
# config.txt
# docker/install/ethosn_cap/
# docker/install/ethosn_driver_dev-20.05-dbg-
20200612-141030.tar.gz
# ssd.npy
# tests/python/integration/test_tir_gemm.py
# tests/python/relay/test_pattern_annotate.py
# tests/python/unittest/failure.py
#
Lily Orth-Smith [Tue, 4 Aug 2020 01:51:25 +0000 (18:51 -0700)]
[DOCS] Added casting to hybrid script doc and fixed pass infra doc (#6174)
* updated hybridscript docs and pass infra docs
* forgot uint16
LiangLiu [Tue, 4 Aug 2020 01:51:03 +0000 (09:51 +0800)]
[AutoScheduler] Fix alignment of note (#6181)
* Fix alignment of note
* trigger CI
Co-authored-by: Lianmin Zheng <lianminzheng@gmail.com>
Junru Shao [Tue, 4 Aug 2020 01:50:32 +0000 (18:50 -0700)]
[Target] Rename target_id => target_kind (#6199)
ANSHUMAN TRIPATHY [Mon, 3 Aug 2020 20:50:11 +0000 (02:20 +0530)]
[TIR][Transform] HoistIfThenElse added (#6066)
* [TIR][Transform] HoistIfThenElse added
* lint error resolved
* Pass position changed
* pylint error resolved
* CI issues resolved
* Frontend tflite test case failure resolved
* [1] Review comment handled
* [2] Review comment handled
* [3] Review comment handled
* Lint error resolved
Lianmin Zheng [Mon, 3 Aug 2020 20:23:07 +0000 (13:23 -0700)]
[TIR] Enhance VerifyGPUCode (#6194)
qiuhan [Mon, 3 Aug 2020 19:29:55 +0000 (03:29 +0800)]
[Fix] avoid unexpected throw in AttrInitEntry (#6128)
Animesh Jain [Mon, 3 Aug 2020 16:36:41 +0000 (09:36 -0700)]
[FoldConstant] Create Interpreter for each constant subgraph (#6195)
Tianqi Chen [Sun, 2 Aug 2020 23:51:22 +0000 (16:51 -0700)]
[BUILD] Remove libtopi from the build (#6189)
Tianqi Chen [Sun, 2 Aug 2020 20:39:50 +0000 (13:39 -0700)]
[CI] Remove topi from the CI cache (#6188)
Tianqi Chen [Sun, 2 Aug 2020 16:29:29 +0000 (09:29 -0700)]
[REFACTOR] topi -> tvm/topi (#6186)
This PR migrates the topi library as a sub namespace of tvm.
Tianqi Chen [Sat, 1 Aug 2020 03:24:29 +0000 (20:24 -0700)]
[TEST] Temporary disable conv2d grad strided flaky test (#6183)
Tristan Konolige [Fri, 31 Jul 2020 19:50:16 +0000 (12:50 -0700)]
[FIX] Fixes #6096 (#6131)
Clear the compile cache between module builds so that schedule changes
will have an effect. Also, clear the warning cache so that schedule
changes properly list untuned ops.
Tianqi Chen [Fri, 31 Jul 2020 19:49:27 +0000 (12:49 -0700)]
[DOCS] Improve the docs build instructions (#6173)
lixiaoquan [Fri, 31 Jul 2020 15:06:37 +0000 (23:06 +0800)]
[Relay] Fix bug in transpose_shape_func (#6180)
Wuwei Lin [Thu, 30 Jul 2020 23:21:19 +0000 (19:21 -0400)]
Fix incorrect function signature in header (#6172)
Zhi [Thu, 30 Jul 2020 20:16:36 +0000 (13:16 -0700)]
[BYOC] Retire the example json runtime (#6177)
ANSHUMAN TRIPATHY [Thu, 30 Jul 2020 16:58:23 +0000 (22:28 +0530)]
Buffer logger assert removed (#6147)
Lianmin Zheng [Thu, 30 Jul 2020 16:35:29 +0000 (09:35 -0700)]
[AutoScheduler] Improve doc string (#6176)
lixiaoquan [Wed, 29 Jul 2020 17:34:32 +0000 (01:34 +0800)]
[TF] Fix some shape mismatches between TF and Relay (#6166)
Make ndarray_size output scalar
Make gather_nd output scalar if needed
sleepwalker2017 [Wed, 29 Jul 2020 17:30:03 +0000 (01:30 +0800)]
fix bug when converting constant nodes with types of int64 or float64 (#6159)
Co-authored-by: yuweilong <yuweilong03@meituan.com>
lhutton1 [Wed, 29 Jul 2020 16:18:57 +0000 (17:18 +0100)]
[BYOC][ACL] Support asymmetric per-layer quantized operators (#6109)
* [BYOC][ACL] Support asymmetric per-layer quantization
Adds support for asymmetric per-layer quantization in the ACL runtime. This includes support for qnn.conv2d, nn.maxpool2d and reshape. Reflected these changes in codegen and runtime tests.
Change-Id: I8f610bd37af1e3740fd48c2d502bcc4727d9d712
* Address comments
Change-Id: I4f9e3e7dbf6053066927cf07c4c19ecc88572e9d
* Fix tutorial
Change-Id: I4371e9d97a120fb7776db40ffcde60f46927af4d
* Improve test infrastructure
* Doc-string for generate trials
* Output params on error
Change-Id: Ib2e2b1fcdf05cdc77f7f4fb4b46395f28c129957
Animesh Jain [Wed, 29 Jul 2020 15:56:23 +0000 (08:56 -0700)]
[Parser] Typo in mod creation (#6165)
Tianqi Chen [Wed, 29 Jul 2020 15:34:38 +0000 (08:34 -0700)]
[CI] Update ci-cpu to the latest (#6164)
Chenfan [Wed, 29 Jul 2020 06:39:21 +0000 (14:39 +0800)]
[Ansor][AutoTVM v2.0] Phase 1: Add pragma/storage_align/rfactor steps (#6141)
* Add pragma/storage_align/rfactor step
* Update
* Update
* Update UT
* Update
Tristan Konolige [Wed, 29 Jul 2020 03:04:19 +0000 (20:04 -0700)]
Improve error messages in graph tuner, graph runtime, and module loader. (#6148)
* Raise error if no operators are found in GraphTuner
* Raise error if key cannot be found in graph runtime inputs
* Detailed error message when module loader is not found
lixiaoquan [Tue, 28 Jul 2020 22:49:21 +0000 (06:49 +0800)]
[Relay] Handle ndarray_size in FoldConstant (#6156)
* [Relay] Handle ndarray_size in FoldConstant
* Use Optional
Animesh Jain [Tue, 28 Jul 2020 20:32:00 +0000 (13:32 -0700)]
[Topi, x86] Using MKL blas for quantized dense (#6115)
* [Topi, x86] Using MKL blas for quantized dense
* Typo
* CBLAS_OFFSET only available for MKL
* Skipping tests as GPU CI uses Openblas
* Retrigger
Co-authored-by: Ubuntu <ubuntu@ip-172-31-0-202.us-west-2.compute.internal>
Tianqi Chen [Tue, 28 Jul 2020 20:18:14 +0000 (13:18 -0700)]
Correct runtime.load_module (#6161)
dprankratz [Tue, 28 Jul 2020 16:06:06 +0000 (10:06 -0600)]
[TIR][Bugfix] Improved massive build times caused by tir.floormod and tir.floordiv. Fixed Topi testcase. (#5666)
* Improved uncommon case of floormod and floordiv. Removed dependence on np floor_div and fmod.
* Fixed clang-format complaints
* Streamlined floormod and floordiv lowering logic
* Improved build times by expressing int64 case of tir FloorMod and FloorDiv using let nodes
* Updated use-def analysis and llvm codegen to support duplicated letnodes.
* Corrected misuse of var_map_ in llvm codegen
* Updated backends that support LetNode
* Changed floormod and div lowering logic to avoid using FP on systems that don't support it.
* Fixed formatting
Co-authored-by: pankratz <pankratz@ualberta.ca>
FernChen [Tue, 28 Jul 2020 15:58:26 +0000 (23:58 +0800)]
[CI][Caffe Frontend] add caffe environment (#6023)
* [CI][Caffe Frontend] add caffe environment
* [CI][Caffe Frontend] change the caffe deps into BVLC distribution.
* [CI][Caffe Fronted] simplify configuration while installing tzdata for precompiled caffe.
* [CI][Caffe Frontend] add more information about tzdata.
* [CI][CaffeFrontend]remove the ci for gpu env and change to pip3 env
Co-authored-by: fernchen <zifeng.cf@alibaba-inc.com>
jiuqi-yang [Tue, 28 Jul 2020 14:49:05 +0000 (22:49 +0800)]
[Ansor][AutoTVM v2.0] Phase 1: Add follow_split and follow_fused_split steps (#6142)
* Add cache_read/cache_write step
* Update
* Add follow split and follow fused split
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
Conflicts:
src/auto_scheduler/compute_dag.cc
src/auto_scheduler/transform_step.cc
src/auto_scheduler/transform_step.h
tests/python/unittest/test_auto_scheduler_loop_state.py
* add loop_state.py
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Update
* Update
* Update state->current_compute_dag to Optional
* Add some doc strings for Follow_Split and Follow_fused_split
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Check code using c-lint
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Add more doc strings and change the order for follow split.
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Add record test for follow_split and follow_fused_split
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Add record test for follow_split
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Add record test for follow_fused_split.
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Add test record for follow_fused_split
1. delete a comment
2. add "fuse" between follow_split and follow_fused_split
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Add doc strings for some functions and variables
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Fix the code format in src/auto_scheduler/transform_step.h
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Update
* Update doc
* Update
* Update
* Fix follow_split and follow_fused_split record test.
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Doc update
* Update some doc strings
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Fix code style and some function definitions.
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Update
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Add comments on parameters.
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Add more doc strings and fix some.
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Update
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Update
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Update
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
* Update.
Signed-off-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
Co-authored-by: chengfan.jcf <chengfan.jcf@alibaba-inc.com>
Co-authored-by: jingbang.yjb <jingbang.yjb@alibaba-inc.com>
Thierry Moreau [Tue, 28 Jul 2020 14:36:34 +0000 (07:36 -0700)]
Adding t-vi as a reviewer (#6149)
Tianqi Chen [Tue, 28 Jul 2020 14:27:01 +0000 (07:27 -0700)]
[DOCS][REFACTOR] Clarify Docs Categorization (#6155)
This PR categorizes the docs into a few categories:
- How To
- Tutorials
- References
- Deep Dive
- MISC
Co-authored-by: Chris Hoge <chris@hogepodge.com>
Co-authored-by: Chris Hoge <chris@hogepodge.com>
Chris Sullivan [Tue, 28 Jul 2020 03:35:06 +0000 (20:35 -0700)]
[Android][RPC] Add missing RPC sources after refactor (#6113)
Leon Wang [Tue, 28 Jul 2020 03:34:19 +0000 (11:34 +0800)]
Add TVM application extension with WASM runtime (#5892)
* Refactor wasm runtime module and resovle conflict errors
Signed-off-by: leonwanghui <wanghui71leon@gmail.com>
* Fix some cargo clippy warnings
Signed-off-by: leonwanghui <wanghui71leon@gmail.com>
Tianqi Chen [Tue, 28 Jul 2020 02:51:47 +0000 (19:51 -0700)]
[CI][TEST] Temporary disable nmsv4 test (#6151)
Tianqi Chen [Mon, 27 Jul 2020 20:41:28 +0000 (13:41 -0700)]
[DOCS][REFACTOR] Reorganize the docs. (#6146)
- Move most toctree to `:hiden:` so there can be top-level categorizations in the navigation bar.
- Move frontend guide into design and developer guides
- Move get started tutorials into its separate folder.
Co-authored-by: Chris Hoge <chris@hogepodge.com>
Co-authored-by: Chris Hoge <chris@hogepodge.com>
Chris Sullivan [Mon, 27 Jul 2020 17:38:52 +0000 (10:38 -0700)]
[Relay][OP] Support NMSv4 ingestion from TF. (#6085)
Chenfan [Mon, 27 Jul 2020 04:35:52 +0000 (12:35 +0800)]
[Ansor][AutoTVM v2.0] Phase 1: Add cache_read/cache_write steps (#6107)
* Add cache_read/cache_write step
* Update
* Update
* Update
* Update state->current_compute_dag to Optional
* Update
* Update doc
* Update
* Update
* Doc update
* Update
lixiaoquan [Sat, 25 Jul 2020 15:16:06 +0000 (23:16 +0800)]
[Relay] Fix interpreter for dyanmic shape input of ndarray_size (#6086)
Haichen Shen [Sat, 25 Jul 2020 15:14:10 +0000 (08:14 -0700)]
[Fix] Remove the tvm web from version update (#6122)
qunluo [Sat, 25 Jul 2020 15:13:55 +0000 (23:13 +0800)]
add attr option mfloat-abi for arm32 (#6123)
* add attr option mfloat-abi for arm32
* retrigger
Lianmin Zheng [Sat, 25 Jul 2020 12:07:17 +0000 (05:07 -0700)]
[Ansor][AutoTVM v2.0] Phase 1: Access Analyzer (#6103)
* add access analyzer
* add test cases
* move header files and polish comments
* fix lint
* update
* fix lint
* address comments
* fix lint
Cody Yu [Sat, 25 Jul 2020 04:09:06 +0000 (21:09 -0700)]
\b[TOPI] Fix CUDA Library Tuning (#6132)
Yanming Wang [Fri, 24 Jul 2020 23:00:09 +0000 (16:00 -0700)]
[AutoTVM][BugFix] Fix autotvm on the conv2d_nchw_winograd.mali operator (#6130)
* [AutoTVM] Fix conv2d_nchw_winograd.mali
* Fix pylint error
Co-authored-by: Yanming Wang <yanmwang@amazon.com>
Haichen Shen [Fri, 24 Jul 2020 22:49:45 +0000 (15:49 -0700)]
[Relay][VM] Allow to config allocator type and refactor vm code structure (#6105)
* [Relay][VM] Allow to config allocator type and refactor vm code structure
* fix doc
* fix
* update
* trigger ci
* trigger ci
* trigger ci
* trigger ci
* fix doc warning
Animesh Jain [Fri, 24 Jul 2020 16:40:25 +0000 (09:40 -0700)]
[Flaky] TFLite quantized conv test (#6084)
Zheng Jiang [Fri, 24 Jul 2020 16:09:50 +0000 (00:09 +0800)]
[Relay]Port eliminate_common_subexpr to non-recursive form (#6134)
Co-authored-by: Zheng Jiang <zhejiang@amazon.com>
lixiaoquan [Fri, 24 Jul 2020 14:42:13 +0000 (22:42 +0800)]
[Relay] Keep fixed dim when unifying dynamic shape (#5795)
Alexander Booth [Fri, 24 Jul 2020 14:22:39 +0000 (07:22 -0700)]
Add 'get_num_inputs' to GraphRuntime (#6118)
Jason Knight [Thu, 23 Jul 2020 21:04:30 +0000 (14:04 -0700)]
[Rust] Some rust cleanups (#6116)
* Some rust cleanups
* Turn off default features for bindgen
* Upgrade some deps for smaller total dep tree
* Switch (/complete switch) to thiserror
* Remove unnecessary transmutes
* Fix null pointer assert
* Update wasm32 test
Haozheng Fan [Thu, 23 Jul 2020 21:04:10 +0000 (05:04 +0800)]
[RELAY][Fix] i64 indices (#5235)
* fix
* resolve comments
Siyuan Li [Thu, 23 Jul 2020 20:23:49 +0000 (04:23 +0800)]
Register Shape Func for Some Operators to Handle Dynamic Shapes (#5955)
* Register Shape Func for Floor Operator
Register the shape function for `floor` operator. Otherwise, a bug will happen when input of floor is any.
* Register shape func for log
* add shape function for crop_and_size
* change import location
* add mirror_pad shape function
* add test cases for crop_and_resize and mirror_pad shape funcs
* support different layout
* fix pylint error
* fix pylint error
* add test for nchw layout
* block nchw test
* test for nchw
* use tvm.testing.assert_allclose instead
Co-authored-by: lisiyuan <lisiyuan@nucflow>
Giuseppe Rossini [Thu, 23 Jul 2020 15:38:56 +0000 (16:38 +0100)]
Improve reduction schedule on arm CPUs (#6110)
* Improve reduction schedule on arm CPUs
Change-Id: I9cd85deac6a57666b82ff7250d827652a4000d82
* Retrigger CI
Change-Id: I5efd99e34268e6bb990904a4b98e1edf2174b26b
Max Willsey [Thu, 23 Jul 2020 08:14:17 +0000 (01:14 -0700)]
[Rust] Clean up conversions between TVM and Rust functions (#6114)
* Replace ToBoxedFn with From
* Compact and improve Typed and ToFunction impls
- Clone one less time
- Don't panic if number of args is wrong, return an error
- Actually drop functions/closures on the rust side
* Retry
Tianqi Chen [Wed, 22 Jul 2020 05:32:18 +0000 (22:32 -0700)]
[DOCS][REFACTOR] Organize Design and Architectures (#6097)
* [DOCS][REFACTOR] Design and Architectures
This PR refactors the design and architecture docs.
Previously this part of documentation was quite unstructured, and lacks a global
view of the overall architecture.
This PR takes a stab in resolving the problem
- Provide a guided overview of the current TVM's overall design
- Categorize the specific docs into architecture components or How tos.
* Apply suggestions from code review
Co-authored-by: Jared Roesch <roeschinc@gmail.com>
* Apply suggestions from code review
Co-authored-by: Jared Roesch <roeschinc@gmail.com>
* Update per comment
* More updates per feedbacks
* clarify external codegen
* Update per comments
Co-authored-by: Jared Roesch <roeschinc@gmail.com>
Jared Roesch [Wed, 22 Jul 2020 02:53:45 +0000 (19:53 -0700)]
[Rust][CI] Move CI over to new Rust crates and try to fix flaky test. (#6011)
Chris Hoge [Tue, 21 Jul 2020 23:41:29 +0000 (16:41 -0700)]
Update installation doc with minor improvements (#6104)
Make some minor improvements to the install from source doc
about flags to enable, package managers, and virtual environments.
Chenfan [Tue, 21 Jul 2020 19:58:48 +0000 (03:58 +0800)]
[Ansor][AutoTVM v2.0] Phase 1: Add annotation/compute_at/compute_root/compute_inline steps (#6073)
* Add annotation step
* Add compute_at/compute_root/compute_inline
* Doc update
* Update
* Update
* Update measure record UT
* Update
* Update
* Update
* Move state implementation to step
* Move measure_record implementation to step
* Order update & API update
* Update the order of state api
* Update
Haichen Shen [Tue, 21 Jul 2020 17:10:16 +0000 (10:10 -0700)]
[Relay][VM] Add ReshapeTensor instruction in the VM to replace the reshape op (#6089)
* [VM] Add reshape tensor instruction
* update
* lint
* fix
* fix
lhutton1 [Tue, 21 Jul 2020 15:30:26 +0000 (16:30 +0100)]
[BYOC][Contrib] Arm Compute Library integration (#5915)
* [BYOC][Contrib] Arm Compute Library integration
Arm Compute Library (ACL) integration using the BYOC infrastructure. This will enable offloading select operators from a relay
graph to ACL so we can achieve faster inference times on Arm CPU's due to hand crafted optimized routines. The PR adds initial
support for offloading FP32 conv2d, maxpool2d and reshape to ACL. ACL codegen is used to generate a JSON representation of an
operator or 'ACL layer', the ACL runtime then uses this representation to construct a layer, cache it and create a packed
function to for the graph runtime to call into.
RFC here: https://discuss.tvm.ai/t/rfc-byoc-arm-compute-library-integration/7082
Change-Id: If756dcea787ea346b1508e9a191b7eed7bd02b7f
* Refactor ACL integration to support JSON runtime
* Now uses JSON runtime
* Addresses tutorial comments
* Rename acl to arm_compute_lib in user facing api
Change-Id: I3b5ef80607f713e898363e82ab4398fbc2cf267a
* Address comments
Change-Id: I041fda14f3bf9975f3518ba8a4e3ab43ba98403d
* Address comments
* correct mistakes in tutorial
* reshuffle runtime to use fewer macro blocks
* preprocess module using "optimize" functionality
* use new module api
Change-Id: I219488e617e5767edd7489b43b8bfce876cd24b8
* Enable ACL codegen tests in CI
* Skips runtime tests as these are not supported on x86.
Change-Id: I6843c003a2604afe95cfdccf2323d2a336b56fe5
* Fix check for runtime
Change-Id: I3f9eec15c599f01b1105d624fb053b73bfb6ed41
* Address comments
* Add warning to ACL engine creation
* Correct runtime check so it doesn't fail when codegen not present
* Improve testing to check acl partitions is what is expected
* Check results of multiple runs test
Change-Id: I9522950930805b9b601dad03269adcf8ed3138cc
* Address comments
* Multiple style improvements
* Use base class for creating json node for single op
* Move GetSource to base class
* Improve annotation checks
Change-Id: I8219659c4b99e86df887cd914720157cb94c61a0
* Improve tutorial
Change-Id: I8f610bd37af1e3740fd48c2d502bcc4727d9d712
* Initialize conv with nullptr
Change-Id: I6c37f0d75a064001c74e171ff83b9f7a7c3f1918
Nick Hynes [Tue, 21 Jul 2020 14:52:48 +0000 (07:52 -0700)]
Update SGX example Cargo.toml (#6067)
Cody Yu [Tue, 21 Jul 2020 14:52:17 +0000 (07:52 -0700)]
load empty config (#6100)
QingFu Wei [Tue, 21 Jul 2020 14:51:33 +0000 (22:51 +0800)]
delete declaration of unused op_node (#6102)
Haichen Shen [Tue, 21 Jul 2020 04:09:55 +0000 (21:09 -0700)]
[Cmake] Add default value for option USE_DNNL_CODEGEN in the cmake (#6099)
Haibin Lin [Tue, 21 Jul 2020 00:49:59 +0000 (17:49 -0700)]
[DSL/TE] Scalar support for `te.extern` (#6079)
* fix make shape with scalar shapes
* add test
* add test
* remove scalar shape assertion
* fix the data type for overflow problems
* add extra tests
Co-authored-by: Ubuntu <ubuntu@ip-172-31-42-138.ec2.internal>
Animesh Jain [Mon, 20 Jul 2020 22:59:55 +0000 (15:59 -0700)]
MXNet pre-quantized BERT (#6039)
* MXNet pre-quantized BERT
* Comments.
* Trigger.
* Retrigger CI
* Retrigger CI
* Retrigger CI
* Retrigger
Tianqi Chen [Mon, 20 Jul 2020 20:54:06 +0000 (13:54 -0700)]
[DOCS] Cleanup docs build instructions. (#6094)
Chenfan [Mon, 20 Jul 2020 18:13:48 +0000 (02:13 +0800)]
[Ansor][AutoTVM v2.0] Phase 1: Add RPC Runner (#6077)
* Add rpc runner
* Update
* Update
* Add clflush & non-empty ndarray TODO hints
* Update
* UT Update
* Update timeout in UT
ZHANG Hao [Mon, 20 Jul 2020 15:49:42 +0000 (23:49 +0800)]
lint: add opencl .cl file type (#6092)