This is an automated email from the ASF dual-hosted git repository. jroesch pushed a change to branch cargo-build in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git.
discard f10ab21 Debug segfault from loading Python discard b8dcc35 WIP discard a9ee3cb WIP discard 49246bf WIP discard 8e295b7 Fix some CR discard 1874350 More cleanup discard 6828374 Fix the extension code discard 04a9779 Format and cleanup discard 0cabfdc Remove type checker discard 6e13467 Rust Diagnostics work discard 4261461 Fix discard eeb86c6 Fix calling discard 4cd1bbc Improve Rust bindings discard 20c6a28 Clean up exporting to show off new diagnostics discard e0f9801 Fix Linux build discard db24553 Update CMake and delete old API discard b2b59c2 Borrow code from Egg discard 131e40a Hacking on Rust inside of TVM discard cb37856 WIP discard 77ba309 Codespan example almost working discard 1097cbf Add initial boilerplate for Rust diagnostic interface. add 0ce55cb [CI] Keras version upgraded from 2.3.1 to 2.4.3 (#6793) add 9a32e70 [TVMSCRIPT] Add synr dependency in preparation for tvmscript diagnostics overhaul. (#6795) add 7196eb8 [BYOC] Allow custom codegens to register their own constant updater (#6697) add a261454 [AutoScheduler] Relay integration : Task extraction (#6710) add 2625866 Fix mutate auto unroll (#6807) add 50fc938 [CI] Pin h5py version to < 3.0 to workaround issues with TF/Keras (#6808) add ceef616 Extract channels from weight shape for conv2d. (#6805) add f956c38 [µTVM] Add serial transport, parameterize µTVM Zephyr test, run on physical HW (#6789) add 616bad2 [CI] Add m6g instance (ARM64) to mainline CI (#6804) add 0dc7de5 [CI] Move back Keras to 2.4.3 (#6810) add b07ddea [CI] Update to latest (#6812) add 9d506ad [OBJECT] Update types slots for baseexpr and primexpr (#6814) add 883954e [Rust][Diagnostics] Add initial boilerplate for Rust diagnostic interface. (#6656) add 73f425d TF frontend: add softsign op (#6799) add 9f9d475 [TENSORFLOW]Sparse2Dense support (#5767) add 9c2d68d [AutoScheduler] New layout rewrite option: Weight pre-transpose (#6750) add 3222cad Update stale link to new location (#6819) add 6dc8e22 [rust][tvm-graph-rt]: maintain error sources when propagating errors, swap Mutex for RwLock (#6815) add 01b98c1 Improve AArch64 depthwise convolution through smlal/smlal2 intrinsic (#6711) add 174e21a [CI] Torch 1.7 update to mainline (#6828) add 26b2e16 [TF] Fix a bug in _stridedSlice() (#6829) add 896cb10 [CI] remove unused environment var (#6824) add 8877ed5 [TVMC] 'tvmc tune' --rpc-tracker and --rpc-tracker fail due to argparse misconfiguration (#6822) add b4db112 Fix Annotate Target to support freevars(relay.zeros, relay.ones etc) of any size (including zero) (#6826) add 4122def [DOCS] Enable theme with header and footer. (#6834) add 9b97b56 Update link (#6838) add 6e36fc4 [BYOC] FTVMAnnotateTarget method signature update (#6786) add db28544 [CI] Disable flaky tests (#6841) add 0c02780 [Relay][Frontend] SparseTensorDenseMatMul support for Tensorflow (#6685) add 237744d Register shape functions for some image related ops (#6373) add 8370396 [TopHub] Bump the versions (#6837) add 6019db2 [Graph memory plan] Support nested tuples (#6809) add 5471cd2 [CI] Add python setup script (#6844) add 47d9415 Syntax error String::fromwe() should be String::from() (#6846) add b8761ed [AutoScheduler] Bug fix for layout rewrite CI error in i386 (#6830) add 3ff0100 [CI] Add more guidelines about local setup (#6848) add 8013a23 [FIX] Add task_ci_python_setup.sh to the arm CI (#6850) add c475dff Update SimplifyInference documentation (#6853) add 7291a92 [µTVM] Add virtual machine, test zephyr runtime on real hardware (#6703) add a4bd5f8 [Rust][IRModule] Flesh out IRModule methods (#6741) add 7ee91da [TOPI] Enable scatter_add on GPU (#6856) add 9ea4bf5 [Relay][Frontend][Onnx] If Operator Support (#6730) add b31f4ae [QNN] Dynamic scale, zero point in qnn.op.dequantize (#6849) add d164aac [TVMSCRIPT] Using diagnostics for TVM Script (#6797) add 0469a77 [BYOC] [ACL] ACL Runtime padding workaround (#6724) new 35d49bf Debug segfault from loading Python new 1604de7 SciPy causes crashes This update added new revisions after undoing existing revisions. That is to say, some revisions that were in the old version of the branch are not in the new version. This situation occurs when a user --force pushes a change and generates a repository containing something like this: * -- * -- B -- O -- O -- O (f10ab21) \ N -- N -- N refs/heads/cargo-build (1604de7) You should already have received notification emails for all of the O revisions, and so the following emails describe only the N revisions from the common base, B. Any revisions marked "omit" are not gone; other references still refer to them. Any revisions marked "discard" are gone forever. The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "add" were already present in the repository and have only been added to this reference. Summary of changes: CMakeLists.txt | 2 +- Jenkinsfile | 42 +- apps/{howto_deploy => microtvm}/README.md | 17 +- apps/microtvm/reference-vm/.gitignore | 1 + apps/microtvm/reference-vm/README.md | 67 ++ apps/microtvm/reference-vm/base-box-tool.py | 407 +++++++++ apps/microtvm/reference-vm/zephyr/.gitignore | 1 + apps/microtvm/reference-vm/zephyr/Vagrantfile | 56 ++ .../reference-vm/zephyr/base-box/.gitignore | 4 + .../zephyr/base-box/Vagrantfile.packer-template} | 37 +- .../microtvm/reference-vm/zephyr/base-box/setup.sh | 102 +++ apps/microtvm/reference-vm/zephyr/pyproject.toml | 140 +++ .../microtvm/reference-vm/zephyr/rebuild-tvm.sh | 18 +- apps/microtvm/reference-vm/zephyr/setup.sh | 41 + cmake/config.cmake | 4 - cmake/modules/LLVM.cmake | 2 + cmake/modules/RustExt.cmake | 21 +- docker/{Dockerfile.ci_i386 => Dockerfile.ci_arm} | 16 +- docker/README.md | 2 +- docker/bash.sh | 7 +- docker/build.sh | 1 + docker/install/ubuntu_install_onnx.sh | 2 +- docker/install/ubuntu_install_python_package.sh | 2 +- docker/install/ubuntu_install_tensorflow.sh | 5 +- docker/with_the_same_user | 1 + docs/README.txt | 2 +- docs/conf.py | 58 +- docs/vta/dev/hardware.rst | 12 +- docs/vta/dev/index.rst | 2 +- docs/vta/install.rst | 2 +- include/tvm/auto_scheduler/compute_dag.h | 32 +- include/tvm/auto_scheduler/transform_step.h | 46 +- include/tvm/ir/expr.h | 4 +- include/tvm/relay/op_attr_types.h | 8 +- include/tvm/relay/transform.h | 5 +- python/setup.py | 2 +- python/tvm/auto_scheduler/__init__.py | 6 + python/tvm/auto_scheduler/compute_dag.py | 16 +- python/tvm/auto_scheduler/cost_model/xgb_model.py | 22 +- python/tvm/auto_scheduler/dispatcher.py | 275 ++++++ .../generic/sort.py => auto_scheduler/env.py} | 48 +- python/tvm/auto_scheduler/measure.py | 124 +-- python/tvm/auto_scheduler/relay_integration.py | 232 +++++ python/tvm/auto_scheduler/search_policy.py | 11 +- python/tvm/auto_scheduler/utils.py | 5 +- python/tvm/auto_scheduler/workload_registry.py | 119 +-- python/tvm/autotvm/tophub.py | 6 +- python/tvm/driver/tvmc/autotuner.py | 2 - python/tvm/exec/microtvm_debug_shell.py | 152 ++++ python/tvm/micro/contrib/zephyr.py | 37 +- python/tvm/micro/debugger.py | 173 +++- python/tvm/micro/session.py | 36 +- python/tvm/micro/transport/base.py | 20 +- python/tvm/micro/transport/debug.py | 4 +- python/tvm/micro/transport/file_descriptor.py | 2 +- python/tvm/micro/transport/serial.py | 128 +++ python/tvm/relay/backend/compile_engine.py | 27 +- python/tvm/relay/frontend/__init__.py | 3 - python/tvm/relay/frontend/onnx.py | 44 +- python/tvm/relay/frontend/pytorch.py | 72 +- python/tvm/relay/frontend/tensorflow.py | 80 +- python/tvm/relay/op/_transform.py | 2 +- python/tvm/relay/op/contrib/arm_compute_lib.py | 89 +- python/tvm/relay/op/contrib/coreml.py | 3 +- python/tvm/relay/op/contrib/dnnl.py | 2 +- python/tvm/relay/op/contrib/ethosn.py | 21 +- python/tvm/relay/op/contrib/tensorrt.py | 102 ++- python/tvm/relay/op/image/_image.py | 76 ++ python/tvm/relay/op/nn/nn.py | 6 +- python/tvm/relay/op/op.py | 25 + python/tvm/relay/op/strategy/cuda.py | 28 +- python/tvm/relay/op/strategy/generic.py | 17 +- python/tvm/relay/qnn/op/qnn.py | 7 + python/tvm/relay/transform/transform.py | 4 + python/tvm/rpc/server.py | 12 +- python/tvm/script/context_maintainer.py | 4 +- python/tvm/script/diagnostics.py | 54 ++ python/tvm/script/meta_unparser.py | 31 +- python/tvm/script/parser.py | 979 +++++++++++---------- python/tvm/script/scope_handler.py | 20 +- python/tvm/script/special_stmt.py | 18 +- python/tvm/target/target.py | 17 +- python/tvm/topi/arm_cpu/depthwise_conv2d.py | 65 +- python/tvm/topi/arm_cpu/tensor_intrin.py | 90 ++ python/tvm/topi/cuda/scatter.py | 133 ++- python/tvm/topi/cuda/sparse.py | 13 +- .../topi/testing/conv1d_transpose_ncw_python.py | 3 +- python/tvm/topi/testing/conv2d_hwcn_python.py | 2 +- rust/Cargo.toml | 1 - rust/compiler-ext/Cargo.toml | 20 +- rust/compiler-ext/src/lib.rs | 5 +- rust/tvm-graph-rt/src/errors.rs | 14 +- rust/tvm-graph-rt/src/graph.rs | 49 +- rust/tvm-graph-rt/src/module/syslib.rs | 10 +- rust/tvm-graph-rt/tests/test_wasm32/Cargo.toml | 2 +- rust/tvm-macros/Cargo.toml | 2 +- rust/tvm-macros/src/external.rs | 17 +- rust/tvm-macros/src/object.rs | 13 +- rust/tvm-rt/src/array.rs | 19 +- rust/tvm-rt/src/function.rs | 8 - rust/tvm-rt/src/map.rs | 2 - rust/tvm-rt/src/ndarray.rs | 2 +- rust/tvm-rt/src/object/mod.rs | 1 + rust/tvm-rt/src/object/object_ptr.rs | 40 +- rust/tvm-rt/src/string.rs | 6 +- rust/tvm/src/bin/tyck.rs | 22 +- rust/tvm/src/ir/arith.rs | 4 +- rust/tvm/src/ir/attrs.rs | 2 +- rust/tvm/src/ir/diagnostics/codespan.rs | 32 +- rust/tvm/src/ir/diagnostics/mod.rs | 89 +- rust/tvm/src/ir/expr.rs | 16 +- rust/tvm/src/ir/function.rs | 2 +- rust/tvm/src/ir/module.rs | 235 +++-- rust/tvm/src/ir/op.rs | 2 +- rust/tvm/src/ir/relay/attrs/nn.rs | 14 +- rust/tvm/src/ir/relay/attrs/transform.rs | 2 +- rust/tvm/src/ir/relay/mod.rs | 83 +- rust/tvm/src/ir/source_map.rs | 20 +- rust/tvm/src/ir/span.rs | 42 +- rust/tvm/src/ir/tir.rs | 2 +- rust/tvm/src/ir/ty.rs | 127 ++- rust/tvm/src/lib.rs | 2 +- rust/tvm/src/transform.rs | 4 +- rust/tvm/test.rly | 3 - src/auto_scheduler/compute_dag.cc | 182 ++-- src/auto_scheduler/loop_state.cc | 6 + src/auto_scheduler/search_policy/sketch_policy.cc | 30 +- src/auto_scheduler/search_policy/sketch_policy.h | 7 +- .../search_policy/sketch_policy_rules.cc | 10 +- src/auto_scheduler/transform_step.cc | 52 ++ src/contrib/rust_extension.cc | 4 +- src/ir/diagnostic.cc | 4 + src/ir/module.cc | 3 + src/relay/backend/compile_engine.cc | 24 +- src/relay/backend/contrib/ethosn/codegen_ethosn.h | 3 + src/relay/backend/graph_plan_memory.cc | 5 +- src/relay/backend/graph_runtime_codegen.cc | 9 +- src/relay/backend/utils.h | 31 + src/relay/backend/vm/compiler.cc | 4 +- src/relay/qnn/op/dequantize.cc | 23 +- src/relay/transforms/annotate_target.cc | 17 +- src/runtime/contrib/arm_compute_lib/acl_utils.cc | 1 + src/runtime/contrib/tensorrt/tensorrt_ops.cc | 2 +- src/runtime/micro/micro_session.cc | 13 +- src/runtime/rpc/rpc_endpoint.cc | 8 + src/target/source/codegen_c_host.cc | 5 +- src/target/source/codegen_c_host.h | 2 +- tests/lint/check_file_type.py | 3 + tests/micro/qemu/.gitignore | 2 +- .../micro/qemu/conftest.py | 21 +- tests/micro/qemu/test_zephyr.py | 46 +- .../contrib/test_arm_compute_lib/infrastructure.py | 3 +- .../contrib/test_arm_compute_lib/test_dense.py | 62 +- .../contrib/test_arm_compute_lib/test_maximum.py | 1 + .../contrib/test_arm_compute_lib/test_network.py | 7 +- .../contrib/test_arm_compute_lib/test_pooling.py | 11 +- .../contrib/test_arm_compute_lib/test_reshape.py | 5 +- .../test_ethosn/test_constant_duplication.py | 82 ++ tests/python/contrib/test_tensorrt.py | 1 - tests/python/frontend/onnx/test_forward.py | 49 +- tests/python/frontend/pytorch/qnn_test.py | 3 +- tests/python/frontend/pytorch/test_forward.py | 16 +- tests/python/frontend/tensorflow/test_forward.py | 159 ++++ tests/python/relay/test_any.py | 88 ++ .../relay/test_auto_scheduler_task_extraction.py | 90 ++ tests/python/relay/test_auto_scheduler_tuning.py | 62 ++ tests/python/relay/test_backend_graph_runtime.py | 26 + tests/python/relay/test_external_codegen.py | 34 + tests/python/relay/test_op_level3.py | 4 +- tests/python/relay/test_op_qnn_dequantize.py | 28 + tests/python/relay/test_op_qnn_quantize.py | 28 + tests/python/relay/test_pass_annotate_target.py | 115 ++- tests/python/relay/test_pass_partition_graph.py | 12 +- .../topi/python/test_topi_depthwise_conv2d.py | 54 ++ tests/python/topi/python/test_topi_sparse.py | 2 +- .../unittest/test_auto_scheduler_cost_model.py | 2 +- .../test_auto_scheduler_evolutionary_search.py | 4 +- .../unittest/test_auto_scheduler_layout_rewrite.py | 82 +- .../unittest/test_auto_scheduler_task_scheduler.py | 12 + tests/python/unittest/test_target_codegen_x86.py | 7 + .../python/unittest/test_tvmscript_error_report.py | 219 +++-- .../scripts/task_ci_python_setup.sh | 16 +- ...nfig_build_i386.sh => task_config_build_arm.sh} | 3 +- tests/scripts/task_config_build_cpu.sh | 1 - tests/scripts/task_config_build_gpu.sh | 1 - tests/scripts/task_config_build_gpu_vulkan.sh | 1 - tests/scripts/task_config_build_i386.sh | 1 - tests/scripts/task_config_build_qemu.sh | 1 - tests/scripts/task_config_build_wasm.sh | 1 - tests/scripts/task_rust.sh | 2 +- .../frontend/deploy_object_detection_pytorch.py | 6 +- tutorials/frontend/from_keras.py | 26 +- tutorials/frontend/from_pytorch.py | 6 +- tutorials/micro/micro_reference_vm.py | 139 +++ vta/python/vta/bitstream.py | 2 +- vta/tutorials/matrix_multiply.py | 6 +- vta/tutorials/optimize/convolution_opt.py | 6 +- vta/tutorials/optimize/matrix_multiply_opt.py | 4 +- vta/tutorials/vta_get_started.py | 2 +- 199 files changed, 5909 insertions(+), 1652 deletions(-) copy apps/{howto_deploy => microtvm}/README.md (63%) create mode 100644 apps/microtvm/reference-vm/.gitignore create mode 100644 apps/microtvm/reference-vm/README.md create mode 100755 apps/microtvm/reference-vm/base-box-tool.py create mode 100644 apps/microtvm/reference-vm/zephyr/.gitignore create mode 100644 apps/microtvm/reference-vm/zephyr/Vagrantfile create mode 100644 apps/microtvm/reference-vm/zephyr/base-box/.gitignore copy apps/{rocm_rpc/Makefile => microtvm/reference-vm/zephyr/base-box/Vagrantfile.packer-template} (52%) create mode 100644 apps/microtvm/reference-vm/zephyr/base-box/setup.sh create mode 100644 apps/microtvm/reference-vm/zephyr/pyproject.toml copy tests/lint/clang_format.sh => apps/microtvm/reference-vm/zephyr/rebuild-tvm.sh (71%) create mode 100644 apps/microtvm/reference-vm/zephyr/setup.sh copy docker/{Dockerfile.ci_i386 => Dockerfile.ci_arm} (80%) create mode 100644 python/tvm/auto_scheduler/dispatcher.py copy python/tvm/{topi/generic/sort.py => auto_scheduler/env.py} (51%) create mode 100644 python/tvm/auto_scheduler/relay_integration.py create mode 100644 python/tvm/exec/microtvm_debug_shell.py create mode 100644 python/tvm/micro/transport/serial.py create mode 100644 python/tvm/script/diagnostics.py delete mode 100644 rust/tvm/test.rly copy python/tvm/relay/frontend/pytorch_utils.py => tests/micro/qemu/conftest.py (63%) create mode 100644 tests/python/contrib/test_ethosn/test_constant_duplication.py create mode 100644 tests/python/relay/test_auto_scheduler_task_extraction.py create mode 100644 tests/python/relay/test_auto_scheduler_tuning.py copy docker/install/ubuntu1804_install_clang_format.sh => tests/scripts/task_ci_python_setup.sh (68%) copy tests/scripts/{task_config_build_i386.sh => task_config_build_arm.sh} (92%) create mode 100644 tutorials/micro/micro_reference_vm.py