You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2020/02/14 04:24:10 UTC

[incubator-tvm] branch master updated (a6c42b3 -> b787ffa)

This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git.


    from a6c42b3  Update docs/dev/virtual_machine.rst
     add b787ffa  [REFACTOR][PY] Establish tvm.tir

No new revisions were added by this update.

Summary of changes:
 python/tvm/__init__.py                             |  24 +-
 python/tvm/api.py                                  | 367 +----------
 python/tvm/autotvm/task/task.py                    |   2 +-
 python/tvm/build_module.py                         |  14 +-
 python/tvm/contrib/cblas.py                        |   9 +-
 python/tvm/contrib/cublas.py                       |   8 +-
 python/tvm/contrib/cublaslt.py                     |   7 +-
 python/tvm/contrib/cudnn.py                        |   6 +-
 python/tvm/contrib/miopen.py                       |   4 +-
 python/tvm/contrib/mps.py                          |   7 +-
 python/tvm/contrib/nnpack.py                       |  11 +-
 python/tvm/contrib/random.py                       |   9 +-
 python/tvm/contrib/rocblas.py                      |   6 +-
 python/tvm/generic.py                              | 117 +---
 python/tvm/hybrid/calls.py                         |  23 +-
 python/tvm/hybrid/parser.py                        |  45 +-
 python/tvm/hybrid/util.py                          |  15 +-
 python/tvm/intrin.py                               | 678 +--------------------
 python/tvm/ir/__init__.py                          |   2 +-
 python/tvm/ir/attrs.py                             |  38 ++
 python/tvm/ir/base.py                              |   2 +-
 python/tvm/ir/expr.py                              |  20 +
 python/tvm/make.py                                 |  51 +-
 python/tvm/relay/_parser.py                        |   2 +-
 python/tvm/relay/backend/vm.py                     |   4 +-
 python/tvm/relay/frontend/tensorflow.py            |   2 +-
 python/tvm/relay/op/_transform.py                  |   2 +-
 python/tvm/schedule.py                             | 115 +---
 python/tvm/target/__init__.py                      |   1 +
 python/tvm/target/datatype.py                      |   2 +-
 python/tvm/target/intrin.py                        | 120 ++++
 python/tvm/tensor.py                               | 138 +----
 python/tvm/tensor_intrin.py                        |  11 +-
 python/tvm/tir/__init__.py                         |  38 ++
 python/tvm/{ir => tir}/_ffi_api.py                 |   4 +-
 python/tvm/tir/buffer.py                           | 247 ++++++++
 python/tvm/tir/data_layout.py                      | 203 ++++++
 python/tvm/{ => tir}/expr.py                       | 280 +++++----
 python/tvm/{ => tir}/generic.py                    |  16 +-
 python/tvm/{ => tir}/ir_builder.py                 |  47 +-
 python/tvm/{ => tir}/ir_pass.py                    |   2 +-
 python/tvm/{intrin.py => tir/op.py}                | 439 +++++++------
 python/tvm/{ => tir}/stmt.py                       |  71 ++-
 src/api/api_ir.cc                                  |  50 +-
 src/api/api_lang.cc                                |  64 +-
 src/ir/expr.cc                                     |   4 +-
 src/node/reflection.cc                             |   2 +-
 src/printer/relay_text_printer.cc                  |   8 +-
 src/tir/ir/buffer.cc                               |  21 +
 src/tir/ir/data_layout.cc                          |  40 ++
 tests/python/integration/test_reduce.py            |  10 +-
 tests/python/relay/test_backend_compile_engine.py  |   8 +-
 tests/python/relay/test_cpp_build_module.py        |   2 +-
 tests/python/relay/test_external_codegen.py        |   6 +-
 tests/python/relay/test_external_runtime.py        |   4 +-
 tests/python/relay/test_ir_nodes.py                |   4 +-
 tests/python/relay/test_ir_parser.py               |   4 +-
 tests/python/relay/test_op_level2.py               |  10 +-
 tests/python/relay/test_op_level3.py               |   2 +-
 tests/python/relay/test_op_level4.py               |   2 +-
 tests/python/relay/test_pass_alpha_equal.py        |  16 +-
 tests/python/relay/test_pass_partition_graph.py    |   8 +-
 tests/python/relay/test_type_functor.py            |   2 +-
 .../unittest/test_arith_canonical_simplify.py      |  22 +-
 .../python/unittest/test_arith_const_int_bound.py  |   2 +-
 tests/python/unittest/test_arith_deduce_bound.py   |   2 +-
 tests/python/unittest/test_arith_domain_touched.py |  12 +-
 tests/python/unittest/test_arith_intset.py         |   4 +-
 tests/python/unittest/test_arith_modular_set.py    |   2 +-
 .../python/unittest/test_arith_rewrite_simplify.py | 342 +++++------
 tests/python/unittest/test_arith_stmt_simplify.py  |   8 +-
 tests/python/unittest/test_codegen_cuda.py         |  12 +-
 tests/python/unittest/test_codegen_llvm.py         |  16 +-
 tests/python/unittest/test_codegen_opencl.py       |   2 +-
 tests/python/unittest/test_codegen_static_init.py  |   2 +-
 tests/python/unittest/test_codegen_vm_basic.py     |   4 +-
 tests/python/unittest/test_codegen_vulkan.py       |   2 +-
 .../unittest/test_custom_datatypes_mybfloat16.py   |   4 +-
 tests/python/unittest/test_hybrid_script.py        |  70 +--
 tests/python/unittest/test_ir_builder.py           |  24 +-
 tests/python/unittest/test_lang_basic.py           |  36 +-
 tests/python/unittest/test_lang_constructor.py     | 140 ++---
 tests/python/unittest/test_lang_container.py       |   2 +-
 tests/python/unittest/test_lang_data_layout.py     |   6 +-
 tests/python/unittest/test_lang_operator.py        |  16 +-
 tests/python/unittest/test_lang_reflection.py      |  18 +-
 tests/python/unittest/test_lang_schedule.py        |   2 +-
 tests/python/unittest/test_lang_tensor.py          |   8 +-
 .../unittest/test_lang_tensor_overload_op.py       |  14 +-
 .../python/unittest/test_pass_attrs_hash_equal.py  |  14 +-
 tests/python/unittest/test_pass_basic.py           |   8 +-
 tests/python/unittest/test_pass_bound_checkers.py  |   6 +-
 .../unittest/test_pass_combine_context_call.py     |   4 +-
 .../unittest/test_pass_decorate_device_scope.py    |   2 +-
 tests/python/unittest/test_pass_hoist_if.py        |  14 +-
 .../unittest/test_pass_inject_copy_intrin.py       |   8 +-
 .../unittest/test_pass_inject_double_buffer.py     |   4 +-
 tests/python/unittest/test_pass_inline.py          |   6 +-
 tests/python/unittest/test_pass_ir_transform.py    |   4 +-
 tests/python/unittest/test_pass_lift_attr_scope.py |   2 +-
 tests/python/unittest/test_pass_loop_partition.py  |  52 +-
 tests/python/unittest/test_pass_lower_intrin.py    |  18 +-
 tests/python/unittest/test_pass_remove_no_op.py    |  24 +-
 .../unittest/test_pass_rewrite_unsafe_select.py    |  16 +-
 tests/python/unittest/test_pass_storage_flatten.py |  10 +-
 tests/python/unittest/test_pass_storage_rewrite.py |  32 +-
 tests/python/unittest/test_pass_storage_sync.py    |  10 +-
 tests/python/unittest/test_pass_unroll.py          |  24 +-
 tests/python/unittest/test_pass_vectorize.py       |  40 +-
 tests/python/unittest/test_runtime_module_load.py  |   6 +-
 .../python/unittest/test_schedule_schedule_ops.py  |   8 +-
 tests/python/unittest/test_schedule_tensorize.py   |   2 +-
 topi/python/topi/math.py                           |   4 +-
 topi/python/topi/vision/rcnn/roi_pool.py           |   2 +-
 tutorials/dev/low_level_custom_pass.py             |   8 +-
 tutorials/language/intrin_math.py                  |   6 +-
 tutorials/language/tuple_inputs.py                 |   4 +-
 vta/python/vta/build_module.py                     |   2 +-
 vta/python/vta/environment.py                      |  36 +-
 vta/python/vta/intrin.py                           |   2 +-
 vta/python/vta/ir_pass.py                          |  98 +--
 121 files changed, 2059 insertions(+), 2665 deletions(-)
 create mode 100644 python/tvm/target/intrin.py
 create mode 100644 python/tvm/tir/__init__.py
 copy python/tvm/{ir => tir}/_ffi_api.py (92%)
 create mode 100644 python/tvm/tir/buffer.py
 create mode 100644 python/tvm/tir/data_layout.py
 rename python/tvm/{ => tir}/expr.py (77%)
 copy python/tvm/{ => tir}/generic.py (89%)
 rename python/tvm/{ => tir}/ir_builder.py (89%)
 rename python/tvm/{ => tir}/ir_pass.py (96%)
 copy python/tvm/{intrin.py => tir/op.py} (63%)
 rename python/tvm/{ => tir}/stmt.py (85%)