This is an automated email from the ASF dual-hosted git repository.
github-bot pushed a change to branch nightly
in repository https://gitbox.apache.org/repos/asf/tvm.git
from a493c5707c [ONNX][FRONTEND][Fix] Update Resize to accept ShapeExpr
(#18209)
add b8eb80b968 [FFI] Formalize ffi.Module (#18213)
add fcd266e8db [Fix][ONNX] No precision widening for numpy binary
operations (#18207)
No new revisions were added by this update.
Summary of changes:
apps/android_rpc/app/src/main/jni/tvm_runtime.h | 8 +-
apps/cpp_rpc/rpc_env.cc | 2 +-
apps/hexagon_launcher/launcher_core.cc | 4 +-
apps/ios_rpc/tvmrpc/TVMRuntime.mm | 8 +-
ffi/CMakeLists.txt | 4 +
ffi/include/tvm/ffi/extra/c_env_api.h | 70 ++++++
ffi/include/tvm/ffi/extra/module.h | 224 +++++++++++++++++
ffi/include/tvm/ffi/object.h | 13 +-
ffi/src/ffi/extra/buffer_stream.h | 127 ++++++++++
ffi/src/ffi/extra/library_module.cc | 199 +++++++++++++++
.../src/ffi/extra/library_module_dynamic_lib.cc | 84 ++-----
.../src/ffi/extra/library_module_system_lib.cc | 57 ++---
ffi/src/ffi/extra/module.cc | 139 ++++++++++
ffi/src/ffi/extra/module_internal.h | 104 ++++++++
include/tvm/runtime/c_backend_api.h | 2 +-
include/tvm/runtime/disco/builtin.h | 2 +-
include/tvm/runtime/module.h | 279 +--------------------
include/tvm/runtime/profiling.h | 4 +-
include/tvm/runtime/vm/executable.h | 28 +--
include/tvm/runtime/vm/vm.h | 4 +-
include/tvm/target/codegen.h | 14 +-
jvm/core/src/main/java/org/apache/tvm/Module.java | 12 +-
python/tvm/contrib/hexagon/tools.py | 2 +-
python/tvm/relax/frontend/onnx/onnx_frontend.py | 16 +-
python/tvm/relax/op/nn/nn.py | 12 +-
python/tvm/relax/vm_build.py | 2 +-
python/tvm/rpc/client.py | 16 +-
python/tvm/runtime/disco/session.py | 24 +-
python/tvm/runtime/executable.py | 2 +-
python/tvm/runtime/module.py | 139 +++++-----
python/tvm/testing/usmp.py | 39 ---
src/contrib/msc/framework/tensorrt/codegen.cc | 12 +-
src/node/structural_hash.cc | 9 +-
src/relax/backend/contrib/clml/codegen.cc | 10 +-
src/relax/backend/contrib/cublas/codegen.cc | 8 +-
src/relax/backend/contrib/cudnn/codegen.cc | 8 +-
src/relax/backend/contrib/cutlass/codegen.cc | 13 +-
src/relax/backend/contrib/dnnl/codegen.cc | 8 +-
src/relax/backend/contrib/hipblas/codegen.cc | 8 +-
src/relax/backend/contrib/nnapi/codegen.cc | 8 +-
src/relax/backend/contrib/tensorrt/codegen.cc | 10 +-
src/relax/backend/vm/codegen_vm.cc | 38 +--
src/relax/backend/vm/exec_builder.cc | 2 +-
src/relax/transform/fold_constant.cc | 4 +-
src/relax/transform/run_codegen.cc | 10 +-
src/runtime/const_loader_module.cc | 61 +++--
src/runtime/const_loader_module.h | 2 +-
src/runtime/contrib/arm_compute_lib/acl_runtime.cc | 12 +-
src/runtime/contrib/bnns/bnns_json_runtime.cc | 10 +-
src/runtime/contrib/clml/clml_runtime.cc | 10 +-
src/runtime/contrib/coreml/coreml_runtime.h | 11 +-
src/runtime/contrib/coreml/coreml_runtime.mm | 24 +-
src/runtime/contrib/cublas/cublas_json_runtime.cc | 17 +-
src/runtime/contrib/cudnn/cudnn_json_runtime.cc | 12 +-
src/runtime/contrib/dnnl/dnnl_json_runtime.cc | 15 +-
src/runtime/contrib/edgetpu/edgetpu_runtime.cc | 4 +-
.../contrib/hipblas/hipblas_json_runtime.cc | 17 +-
src/runtime/contrib/json/json_runtime.h | 30 ++-
src/runtime/contrib/mrvl/mrvl_hw_runtime.cc | 38 +--
src/runtime/contrib/mrvl/mrvl_runtime.cc | 37 +--
src/runtime/contrib/msc/tensorrt_runtime.cc | 16 +-
src/runtime/contrib/nnapi/nnapi_runtime.cc | 8 +-
src/runtime/contrib/tensorrt/tensorrt_runtime.cc | 12 +-
src/runtime/contrib/tflite/tflite_runtime.cc | 11 +-
src/runtime/contrib/tflite/tflite_runtime.h | 10 +-
src/runtime/cuda/cuda_module.cc | 46 ++--
src/runtime/cuda/cuda_module.h | 6 +-
src/runtime/device_api.cc | 6 +-
src/runtime/disco/builtin.cc | 39 +--
src/runtime/disco/loader.cc | 17 +-
src/runtime/hexagon/hexagon_common.cc | 7 +-
src/runtime/hexagon/hexagon_module.cc | 24 +-
src/runtime/hexagon/hexagon_module.h | 27 +-
src/runtime/hexagon/rpc/hexagon/rpc_server.cc | 7 +-
src/runtime/hexagon/rpc/simulator/rpc_server.cc | 7 +-
src/runtime/library_module.cc | 201 ---------------
src/runtime/library_module.h | 125 ---------
src/runtime/metal/metal_module.h | 8 +-
src/runtime/metal/metal_module.mm | 42 ++--
src/runtime/module.cc | 143 ++---------
src/runtime/opencl/opencl_common.h | 16 +-
src/runtime/opencl/opencl_module.cc | 44 ++--
src/runtime/opencl/opencl_module.h | 11 +-
src/runtime/opencl/opencl_module_spirv.cc | 22 +-
src/runtime/profiling.cc | 87 +++----
src/runtime/rocm/rocm_module.cc | 48 ++--
src/runtime/rocm/rocm_module.h | 8 +-
src/runtime/rpc/rpc_endpoint.cc | 6 +-
src/runtime/rpc/rpc_module.cc | 83 +++---
src/runtime/rpc/rpc_pipe_impl.cc | 2 +-
src/runtime/rpc/rpc_session.h | 6 +-
src/runtime/rpc/rpc_socket_impl.cc | 4 +-
src/runtime/static_library.cc | 39 +--
src/runtime/static_library.h | 2 +-
src/runtime/vm/executable.cc | 49 ++--
src/runtime/vm/ndarray_cache_support.cc | 14 +-
src/runtime/vm/vm.cc | 42 ++--
src/runtime/vulkan/vulkan_module.cc | 18 +-
src/runtime/vulkan/vulkan_module.h | 7 +-
src/runtime/vulkan/vulkan_wrapped_func.cc | 16 +-
src/runtime/vulkan/vulkan_wrapped_func.h | 14 +-
src/support/ffi_testing.cc | 20 +-
src/target/codegen.cc | 151 +++++------
src/target/llvm/codegen_amdgpu.cc | 2 +-
src/target/llvm/codegen_blob.cc | 6 +-
src/target/llvm/codegen_cpu.cc | 11 +-
src/target/llvm/codegen_hexagon.cc | 2 +-
src/target/llvm/codegen_nvptx.cc | 2 +-
src/target/llvm/llvm_module.cc | 87 ++++---
src/target/llvm/llvm_module.h | 2 +-
src/target/opt/build_cuda_off.cc | 8 +-
src/target/opt/build_cuda_on.cc | 2 +-
src/target/opt/build_hexagon_off.cc | 7 +-
src/target/opt/build_metal_off.cc | 6 +-
src/target/opt/build_opencl_off.cc | 13 +-
src/target/opt/build_rocm_off.cc | 6 +-
src/target/source/codegen_c_host.cc | 10 +-
src/target/source/codegen_metal.cc | 2 +-
src/target/source/codegen_opencl.cc | 2 +-
src/target/source/codegen_source_base.h | 16 +-
src/target/source/codegen_webgpu.cc | 22 +-
src/target/source/source_module.cc | 90 ++++---
src/target/spirv/build_vulkan.cc | 2 +-
tests/cpp-runtime/opencl/opencl_compile_to_bin.cc | 8 +-
.../python/codegen/test_target_codegen_aarch64.py | 30 +--
tests/python/codegen/test_target_codegen_arm.py | 6 +-
tests/python/codegen/test_target_codegen_c_host.py | 2 +-
.../codegen/test_target_codegen_cross_llvm.py | 6 +-
tests/python/codegen/test_target_codegen_cuda.py | 10 +-
.../python/codegen/test_target_codegen_cuda_fp8.py | 6 +-
.../python/codegen/test_target_codegen_hexagon.py | 4 +-
tests/python/codegen/test_target_codegen_llvm.py | 16 +-
.../python/codegen/test_target_codegen_llvm_vla.py | 10 +-
tests/python/codegen/test_target_codegen_metal.py | 2 +-
tests/python/codegen/test_target_codegen_opencl.py | 6 +-
tests/python/codegen/test_target_codegen_riscv.py | 2 +-
tests/python/codegen/test_target_codegen_vulkan.py | 2 +-
tests/python/codegen/test_target_codegen_x86.py | 2 +-
.../test_hexagon/test_benchmark_elemwise_add.py | 2 +-
.../test_hexagon/test_benchmark_maxpool2d.py | 2 +-
tests/python/contrib/test_hexagon/test_sigmoid.py | 6 +-
tests/python/contrib/test_hexagon/test_vtcm.py | 2 +-
tests/python/ir/test_roundtrip_runtime_module.py | 8 +-
.../python/relax/backend/clml/test_clml_codegen.py | 2 +-
tests/python/relax/test_frontend_onnx.py | 37 ++-
tests/python/relax/test_vm_instrument.py | 2 +-
tests/python/runtime/test_runtime_module_export.py | 12 +-
tests/python/runtime/test_runtime_module_load.py | 10 +-
.../python/runtime/test_runtime_module_property.py | 18 +-
tests/python/runtime/test_runtime_rpc.py | 2 +-
.../test_tir_transform_inject_ptx_async_copy.py | 2 +-
web/emcc/tvmjs_support.cc | 16 +-
web/emcc/wasm_runtime.cc | 6 +-
web/emcc/webgpu_runtime.cc | 24 +-
web/src/runtime.ts | 8 +-
155 files changed, 2169 insertions(+), 1959 deletions(-)
create mode 100644 ffi/include/tvm/ffi/extra/c_env_api.h
create mode 100644 ffi/include/tvm/ffi/extra/module.h
create mode 100644 ffi/src/ffi/extra/buffer_stream.h
create mode 100644 ffi/src/ffi/extra/library_module.cc
rename src/runtime/dso_library.cc =>
ffi/src/ffi/extra/library_module_dynamic_lib.cc (51%)
rename src/runtime/system_library.cc =>
ffi/src/ffi/extra/library_module_system_lib.cc (63%)
create mode 100644 ffi/src/ffi/extra/module.cc
create mode 100644 ffi/src/ffi/extra/module_internal.h
delete mode 100644 python/tvm/testing/usmp.py
delete mode 100644 src/runtime/library_module.cc
delete mode 100644 src/runtime/library_module.h