This is an automated email from the ASF dual-hosted git repository.
haichen pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git.
from 30b7d83 [Frontend][TFLite] Add MIRROR_PAD operator (#4822)
add e0122c0 [REFACTOR][PY][API-Change] Polish tvm.runtime,
tvm.runtime.module API update (#4837)
No new revisions were added by this update.
Summary of changes:
apps/bundle_deploy/bundle.cc | 2 +-
apps/dso_plugin_module/README.md | 2 +-
apps/dso_plugin_module/test_plugin_module.py | 2 +-
apps/extension/tests/test_ext.py | 4 +-
apps/howto_deploy/cpp_deploy.cc | 6 +-
apps/howto_deploy/python_deploy.py | 14 +-
apps/sgx/run_model.py | 2 +-
docs/api/python/bridge.rst | 24 ---
docs/api/python/contrib.rst | 15 +-
docs/api/python/dev.rst | 7 -
docs/api/python/index.rst | 4 +-
docs/api/python/module.rst | 21 ---
docs/api/python/ndarray.rst | 20 +--
docs/api/python/{function.rst => runtime.rst} | 27 +++-
docs/deploy/aocl_fpga.md | 4 +-
docs/deploy/aws_fpga.md | 6 +-
docs/dev/introduction_to_module_serialization.rst | 4 +-
docs/dev/relay_bring_your_own_codegen.rst | 16 +-
include/tvm/runtime/module.h | 7 +
jvm/core/src/test/scripts/test_add_gpu.py | 2 +-
python/tvm/__init__.py | 4 -
python/tvm/_ffi/_ctypes/object.py | 19 +++
python/tvm/_ffi/_cython/object.pxi | 17 ++
python/tvm/api.py | 7 +-
python/tvm/build_module.py | 4 +-
python/tvm/container.py | 15 +-
python/tvm/contrib/debugger/debug_result.py | 2 +-
python/tvm/contrib/dlpack.py | 2 +-
python/tvm/contrib/mxnet.py | 12 +-
python/tvm/contrib/sparse.py | 5 +-
python/tvm/expr.py | 4 +-
python/tvm/micro/base.py | 8 +-
python/tvm/relay/backend/compile_engine.py | 4 +-
python/tvm/relay/backend/interpreter.py | 4 +-
python/tvm/relay/backend/vm.py | 14 +-
python/tvm/relay/frontend/caffe2.py | 4 +-
python/tvm/relay/frontend/coreml.py | 2 +-
python/tvm/relay/frontend/darknet.py | 2 +-
python/tvm/relay/frontend/keras.py | 2 +-
python/tvm/relay/frontend/mxnet.py | 2 +-
python/tvm/relay/frontend/onnx.py | 2 +-
python/tvm/relay/frontend/tensorflow.py | 4 +-
python/tvm/relay/frontend/tflite.py | 2 +-
python/tvm/rpc/server.py | 2 +-
python/tvm/runtime/__init__.py | 6 +-
.../{relay/_analysis.py => runtime/_ffi_api.py} | 6 +-
python/tvm/runtime/_ffi_node_api.py | 50 ++++++
python/tvm/runtime/module.py | 47 +++---
python/tvm/runtime/ndarray.py | 6 +-
python/tvm/runtime/object.py | 22 +--
python/tvm/runtime/object_generic.py | 12 +-
python/tvm/runtime/packed_func.py | 2 +-
python/tvm/target.py | 2 +-
rust/frontend/README.md | 2 +-
rust/frontend/examples/resnet/src/build_resnet.py | 4 +-
src/api/api_base.cc | 87 ----------
src/api/api_codegen.cc | 48 ------
src/api/api_lang.cc | 169 +-------------------
src/node/container.cc | 177 +++++++++++++++++++++
src/node/reflection.cc | 5 +-
src/node/repr_printer.cc | 8 +
src/node/serialization.cc | 8 +-
src/relay/backend/contrib/codegen_c/codegen.cc | 2 +-
src/relay/backend/contrib/dnnl/codegen.cc | 2 +-
src/runtime/c_runtime_api.cc | 4 +
.../example_ext_runtime/example_ext_runtime.cc | 4 +-
src/runtime/cuda/cuda_module.cc | 6 +-
src/runtime/dso_library.cc | 2 +-
src/runtime/library_module.cc | 2 +-
src/runtime/metal/metal_module.mm | 4 +-
src/runtime/micro/micro_module.cc | 2 +-
src/runtime/module.cc | 69 ++++----
src/runtime/object.cc | 6 +
src/runtime/opencl/aocl/aocl_module.cc | 6 +-
src/runtime/opencl/opencl_module.cc | 6 +-
src/runtime/opencl/sdaccel/sdaccel_module.cc | 8 +-
src/runtime/opengl/opengl_module.cc | 6 +-
src/runtime/rocm/rocm_module.cc | 8 +-
src/runtime/rpc/rpc_module.cc | 2 +-
src/runtime/sgx/trusted/runtime.cc | 2 +-
src/runtime/sgx/untrusted/sgx_module.cc | 2 +-
src/runtime/stackvm/stackvm_module.cc | 4 +-
src/runtime/system_library.cc | 8 +-
src/runtime/vulkan/vulkan.cc | 4 +-
src/target/codegen.cc | 16 ++
src/target/llvm/llvm_module.cc | 2 +-
src/target/source/source_module.cc | 4 +-
src/tir/ir/op.cc | 20 +++
tests/cpp/build_module_test.cc | 3 +-
tests/cpp/packed_func_test.cc | 2 +-
tests/python/contrib/test_cblas.py | 4 +-
tests/python/contrib/test_cublas.py | 6 +-
tests/python/contrib/test_cudnn.py | 4 +-
tests/python/contrib/test_gemm_acc16.py | 2 +-
tests/python/contrib/test_gemm_acc32_vnni.py | 2 +-
tests/python/contrib/test_miopen.py | 2 +-
tests/python/contrib/test_mps.py | 4 +-
tests/python/contrib/test_nnpack.py | 6 +-
tests/python/contrib/test_random.py | 6 +-
tests/python/contrib/test_rocblas.py | 2 +-
tests/python/contrib/test_rpc_proxy.py | 2 +-
tests/python/integration/test_dot.py | 2 +-
tests/python/integration/test_ewise.py | 6 +-
tests/python/integration/test_ewise_fpga.py | 4 +-
tests/python/integration/test_reduce.py | 8 +-
tests/python/relay/test_cpp_build_module.py | 4 +-
tests/python/relay/test_external_codegen.py | 2 +-
tests/python/relay/test_external_runtime.py | 16 +-
tests/python/relay/test_op_level5.py | 2 +-
tests/python/relay/test_pass_annotation.py | 4 +-
tests/python/relay/test_pass_partition_graph.py | 2 +-
tests/python/relay/test_vm_serialization.py | 4 +-
tests/python/unittest/test_codegen_blob.py | 8 +-
tests/python/unittest/test_codegen_bool.py | 2 +-
tests/python/unittest/test_codegen_c_host.py | 6 +-
tests/python/unittest/test_codegen_cross_llvm.py | 4 +-
tests/python/unittest/test_codegen_cuda.py | 18 +--
tests/python/unittest/test_codegen_device.py | 6 +-
tests/python/unittest/test_codegen_extern.py | 6 +-
tests/python/unittest/test_codegen_llvm.py | 30 ++--
tests/python/unittest/test_codegen_opencl.py | 4 +-
tests/python/unittest/test_codegen_rocm.py | 14 +-
tests/python/unittest/test_codegen_vm_basic.py | 2 +-
tests/python/unittest/test_codegen_vulkan.py | 8 +-
tests/python/unittest/test_ir_builder.py | 4 +-
tests/python/unittest/test_lang_buffer.py | 8 +-
tests/python/unittest/test_pass_bound_checkers.py | 2 +-
tests/python/unittest/test_pass_lower_intrin.py | 2 +-
.../unittest/test_pass_rewrite_for_tensor_core.py | 4 +-
tests/python/unittest/test_runtime_graph.py | 6 +-
tests/python/unittest/test_runtime_graph_debug.py | 4 +-
.../python/unittest/test_runtime_heterogeneous.py | 10 +-
tests/python/unittest/test_runtime_micro.py | 18 +--
.../python/unittest/test_runtime_module_export.py | 21 +--
..._module_load.py => test_runtime_module_load.py} | 22 +--
tests/python/unittest/test_runtime_packed_func.py | 6 +-
tests/python/unittest/test_runtime_rpc.py | 14 +-
tests/python/unittest/test_schedule_tensor_core.py | 4 +-
tests/web/prepare_test_libs.py | 2 +-
tests/web/websock_rpc_test.py | 4 +-
tests/webgl/test_local_gemm.py | 4 +-
tests/webgl/test_local_multi_stage.py | 4 +-
tests/webgl/test_local_save_load.py | 6 +-
tests/webgl/test_local_topi_dense.py | 2 +-
tests/webgl/test_local_topi_pooling.py | 4 +-
tests/webgl/test_local_topi_softmax.py | 4 +-
tests/webgl/test_remote_save_load.py | 6 +-
topi/python/topi/vision/ssd/multibox.py | 2 +-
topi/recipe/conv/depthwise_conv2d_test.py | 4 +-
topi/recipe/conv/test_conv2d_hwcn_map.py | 2 +-
topi/tests/python/test_topi_conv2d_nhwc.py | 2 +-
topi/tests/python/test_topi_conv3d_ndhwc.py | 2 +-
topi/tests/python/test_topi_lrn.py | 2 +-
topi/tests/python/test_topi_tensor.py | 4 +-
topi/tests/python/test_topi_transform.py | 2 +-
tutorials/relay_quick_start.py | 2 +-
tutorials/tensor_expr_get_started.py | 10 +-
vta/apps/gemm/python/tsim.py | 2 +-
vta/apps/tsim_example/python/tsim.py | 2 +-
vta/python/vta/testing/simulator.py | 2 +-
vta/scripts/tune_resnet.py | 6 +-
vta/src/dpi/module.cc | 2 +-
.../integration/test_benchmark_topi_conv2d.py | 2 +-
.../test_benchmark_topi_conv2d_transpose.py | 2 +-
.../integration/test_benchmark_topi_dense.py | 2 +-
.../test_benchmark_topi_group_conv2d.py | 4 +-
vta/tests/python/pynq/test_program_rpc.py | 4 +-
vta/tutorials/frontend/deploy_vision_on_vta.py | 4 +-
vta/tutorials/matrix_multiply.py | 2 +-
vta/tutorials/optimize/convolution_opt.py | 2 +-
vta/tutorials/optimize/matrix_multiply_opt.py | 2 +-
vta/tutorials/vta_get_started.py | 2 +-
web/README.md | 2 +-
web/tvm_runtime.js | 2 +-
174 files changed, 817 insertions(+), 821 deletions(-)
delete mode 100644 docs/api/python/bridge.rst
delete mode 100644 docs/api/python/module.rst
rename docs/api/python/{function.rst => runtime.rst} (70%)
copy python/tvm/{relay/_analysis.py => runtime/_ffi_api.py} (79%)
create mode 100644 python/tvm/runtime/_ffi_node_api.py
delete mode 100644 src/api/api_base.cc
delete mode 100644 src/api/api_codegen.cc
create mode 100644 src/node/container.cc
rename tests/python/unittest/{test_module_load.py =>
test_runtime_module_load.py} (93%)