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 58ab25e809 [FFI] Add ffi::Tensor.strides() (#18276)
add 543e64dbb1 [FFI][REFACTOR] Cleanup tvm_ffi python API and types
(#18277)
add a819115375 [FFI] Temp skip load_inline tests nonlinux (#18278)
add 06fb02e3fc [LLVM][METASCHEDULE] Add RISCV V-extension v1.0 kernels to
metaschedule (#18243)
add 170302bab2 [FFI][DOCS] Initial bringup of cpp docs (#18279)
No new revisions were added by this update.
Summary of changes:
apps/ios_rpc/tests/ios_rpc_test.py | 2 +-
docs/arch/device_target_interactions.rst | 2 +-
docs/get_started/tutorials/quick_start.py | 4 +-
ffi/docs/.gitignore | 2 +-
ffi/docs/Makefile | 13 +-
ffi/docs/README.md | 11 +
ffi/docs/conf.py | 40 ++++
ffi/docs/get_started/quick_start.md | 5 +-
ffi/docs/guides/cpp_guide.md | 2 +
ffi/docs/guides/packaging.md | 4 +-
ffi/docs/guides/python_guide.md | 22 +-
ffi/docs/index.rst | 12 +
ffi/docs/reference/cpp/index.rst | 107 +++++++++
.../docs/reference/python/index.rst | 55 ++++-
ffi/docs/requirements.txt | 2 +
.../packaging/python/my_ffi_extension/_ffi_api.py | 2 +-
ffi/include/tvm/ffi/any.h | 78 +++++--
ffi/include/tvm/ffi/base_details.h | 4 +-
ffi/include/tvm/ffi/c_api.h | 38 ++-
ffi/include/tvm/ffi/container/array.h | 78 ++++++-
ffi/include/tvm/ffi/container/map.h | 58 ++++-
ffi/include/tvm/ffi/container/shape.h | 7 +-
ffi/include/tvm/ffi/container/tensor.h | 35 ++-
ffi/include/tvm/ffi/container/tuple.h | 51 ++++-
ffi/include/tvm/ffi/container/variant.h | 50 +++-
ffi/include/tvm/ffi/dtype.h | 12 +-
ffi/include/tvm/ffi/error.h | 39 +++-
ffi/include/tvm/ffi/extra/base64.h | 2 +-
ffi/include/tvm/ffi/extra/c_env_api.h | 5 +-
ffi/include/tvm/ffi/extra/json.h | 2 +-
ffi/include/tvm/ffi/extra/module.h | 10 +-
ffi/include/tvm/ffi/extra/serialization.h | 2 +-
ffi/include/tvm/ffi/extra/structural_equal.h | 2 +-
ffi/include/tvm/ffi/extra/structural_hash.h | 2 +-
ffi/include/tvm/ffi/function.h | 82 ++++++-
ffi/include/tvm/ffi/memory.h | 46 ++--
ffi/include/tvm/ffi/object.h | 68 ++++--
ffi/include/tvm/ffi/optional.h | 4 +-
ffi/include/tvm/ffi/reflection/access_path.h | 61 +++++
ffi/include/tvm/ffi/reflection/accessor.h | 41 +++-
ffi/include/tvm/ffi/reflection/creator.h | 8 +
ffi/include/tvm/ffi/reflection/registry.h | 74 +++++-
ffi/include/tvm/ffi/string.h | 54 ++++-
ffi/include/tvm/ffi/type_traits.h | 27 +++
ffi/pyproject.toml | 5 +-
ffi/python/tvm_ffi/__init__.py | 44 ++--
ffi/python/tvm_ffi/{convert.py => _convert.py} | 8 +-
ffi/python/tvm_ffi/{dtype.py => _dtype.py} | 38 +--
ffi/python/tvm_ffi/_ffi_api.py | 5 +-
ffi/python/tvm_ffi/_tensor.py | 88 +++++++
ffi/python/tvm_ffi/container.py | 50 +++-
ffi/python/tvm_ffi/cython/device.pxi | 146 +++++++-----
ffi/python/tvm_ffi/cython/function.pxi | 6 +-
ffi/python/tvm_ffi/cython/object.pxi | 10 +-
ffi/python/tvm_ffi/cython/tensor.pxi | 29 +--
ffi/python/tvm_ffi/module.py | 31 ++-
ffi/python/tvm_ffi/registry.py | 57 ++++-
ffi/python/tvm_ffi/tensor.py | 255 ---------------------
ffi/tests/python/test_device.py | 48 ++--
.../yolo.py => ffi/tests/python/test_examples.py | 31 ++-
ffi/tests/python/test_function.py | 10 +-
ffi/tests/python/test_load_inline.py | 5 +
ffi/tests/python/test_string.py | 12 +-
ffi/tests/python/test_tensor.py | 8 +-
include/tvm/meta_schedule/postproc.h | 2 +
include/tvm/meta_schedule/schedule_rule.h | 2 +
include/tvm/relax/attrs/op.h | 8 +-
python/tvm/__init__.py | 2 +-
python/tvm/arith/_ffi_api.py | 2 +-
python/tvm/contrib/coreml_runtime.py | 2 +-
python/tvm/contrib/cutlass/_ffi_api.py | 2 +-
python/tvm/contrib/cutlass/build.py | 6 +-
python/tvm/contrib/cutlass/gen_tensor_op.py | 2 +-
python/tvm/contrib/hexagon/tools.py | 12 +-
python/tvm/contrib/mrvl.py | 20 +-
python/tvm/contrib/msc/core/_ffi_api.py | 2 +-
python/tvm/contrib/msc/core/tools/execute.py | 6 +-
python/tvm/contrib/msc/core/utils/info.py | 6 +-
python/tvm/contrib/msc/core/utils/register.py | 2 +-
.../contrib/msc/framework/tensorflow/_ffi_api.py | 2 +-
.../msc/framework/tensorflow/runtime/runner.py | 4 +-
.../tvm/contrib/msc/framework/tensorrt/_ffi_api.py | 2 +-
python/tvm/contrib/msc/framework/torch/_ffi_api.py | 2 +-
python/tvm/contrib/msc/framework/tvm/_ffi_api.py | 2 +-
python/tvm/contrib/msc/plugin/_ffi_api.py | 2 +-
python/tvm/contrib/msc/plugin/op/_ffi_api.py | 2 +-
python/tvm/contrib/ndk.py | 4 +-
python/tvm/contrib/nnpack.py | 2 +-
python/tvm/contrib/nvcc.py | 12 +-
python/tvm/contrib/random.py | 2 +-
python/tvm/contrib/rocm.py | 6 +-
python/tvm/contrib/tflite_runtime.py | 2 +-
python/tvm/contrib/tvmjs.py | 4 +-
python/tvm/dlight/benchmark/bench.py | 2 +-
python/tvm/driver/_ffi_api.py | 2 +-
python/tvm/exec/disco_worker.py | 16 +-
python/tvm/ir/_ffi_analysis_api.py | 2 +-
python/tvm/ir/_ffi_api.py | 2 +-
python/tvm/ir/_ffi_instrument_api.py | 2 +-
python/tvm/ir/_ffi_transform_api.py | 2 +-
python/tvm/ir/diagnostics/__init__.py | 6 +-
python/tvm/ir/diagnostics/_ffi_api.py | 2 +-
python/tvm/meta_schedule/_ffi_api.py | 4 +-
python/tvm/meta_schedule/builder/local_builder.py | 8 +-
python/tvm/meta_schedule/relax_integration.py | 4 +-
python/tvm/meta_schedule/runner/local_runner.py | 4 +-
python/tvm/meta_schedule/runner/rpc_runner.py | 2 +-
.../schedule/cuda/layout_transform.py | 2 +-
.../meta_schedule/testing/custom_builder_runner.py | 2 +-
.../tvm/meta_schedule/testing/validate_database.py | 6 +-
python/tvm/meta_schedule/tir_integration.py | 4 +-
python/tvm/meta_schedule/tune_context.py | 4 +-
python/tvm/meta_schedule/utils.py | 10 +-
python/tvm/relax/_ffi_api.py | 2 +-
python/tvm/relax/analysis/_ffi_api.py | 2 +-
python/tvm/relax/backend/_ffi_api.py | 2 +-
python/tvm/relax/backend/metal/coreml.py | 2 +-
python/tvm/relax/base_py_module.py | 3 +-
python/tvm/relax/distributed/_ffi_api.py | 2 +-
python/tvm/relax/distributed/transform/_ffi_api.py | 2 +-
python/tvm/relax/dpl/_ffi.py | 2 +-
python/tvm/relax/expr.py | 6 +-
python/tvm/relax/frontend/nn/core.py | 2 +-
python/tvm/relax/frontend/nn/op.py | 4 +-
python/tvm/relax/op/_ffi_api.py | 2 +-
python/tvm/relax/op/base.py | 10 +-
python/tvm/relax/op/builtin/_ffi_api.py | 2 +-
python/tvm/relax/op/ccl/_ffi_api.py | 2 +-
python/tvm/relax/op/distributed/_ffi_api.py | 2 +-
python/tvm/relax/op/grad/_ffi_api.py | 2 +-
python/tvm/relax/op/image/_ffi_api.py | 2 +-
python/tvm/relax/op/memory/_ffi_api.py | 2 +-
python/tvm/relax/op/nn/_ffi_api.py | 2 +-
python/tvm/relax/op/set.py | 4 +-
python/tvm/relax/op/vm/_ffi_api.py | 2 +-
python/tvm/relax/testing/vm.py | 22 +-
python/tvm/relax/training/_ffi_api.py | 2 +-
python/tvm/relax/training/utils.py | 4 +-
python/tvm/relax/transform/_ffi_api.py | 2 +-
python/tvm/rpc/_ffi_api.py | 2 +-
python/tvm/rpc/client.py | 25 +-
python/tvm/rpc/server.py | 8 +-
python/tvm/rpc/testing.py | 14 +-
python/tvm/runtime/__init__.py | 5 +-
python/tvm/runtime/_ffi_api.py | 2 +-
python/tvm/runtime/_ffi_node_api.py | 4 +-
python/tvm/runtime/_tensor.py | 181 +++++++++++++--
python/tvm/runtime/container.py | 3 +-
python/tvm/runtime/device.py | 47 ++--
python/tvm/runtime/disco/_ffi_api.py | 4 +-
python/tvm/runtime/disco/process_pool.py | 4 +-
python/tvm/runtime/disco/session.py | 8 +-
python/tvm/runtime/module.py | 4 +-
python/tvm/runtime/object_generic.py | 2 +-
python/tvm/runtime/profiling/__init__.py | 2 +-
python/tvm/runtime/profiling/_ffi_api.py | 4 +-
python/tvm/runtime/support.py | 2 +-
python/tvm/runtime/vm.py | 10 +-
python/tvm/script/_ffi_api.py | 2 +-
python/tvm/script/ir_builder/_ffi_api.py | 2 +-
python/tvm/script/ir_builder/ir/_ffi_api.py | 2 +-
python/tvm/script/ir_builder/relax/_ffi_api.py | 2 +-
.../ir_builder/relax/distributed/_ffi_api.py | 2 +-
python/tvm/script/ir_builder/relax/ir.py | 6 +-
python/tvm/script/ir_builder/tir/_ffi_api.py | 2 +-
python/tvm/script/parser/relax/entry.py | 4 +-
python/tvm/script/printer/_ffi_api.py | 2 +-
python/tvm/support.py | 2 +-
python/tvm/target/_ffi_api.py | 2 +-
python/tvm/target/datatype.py | 6 +-
python/tvm/target/detect_target.py | 2 +-
python/tvm/target/target.py | 12 +-
python/tvm/target/virtual_device.py | 3 +-
python/tvm/target/x86.py | 4 +-
python/tvm/te/_ffi_api.py | 2 +-
python/tvm/te/tensor.py | 4 +-
python/tvm/testing/_ffi_api.py | 2 +-
python/tvm/testing/popen_pool.py | 4 +-
python/tvm/tir/_ffi_api.py | 2 +-
python/tvm/tir/analysis/_ffi_api.py | 2 +-
python/tvm/tir/build.py | 6 +-
python/tvm/tir/expr.py | 8 +-
python/tvm/tir/ir_builder.py | 4 +-
python/tvm/tir/op.py | 2 +-
python/tvm/tir/schedule/_ffi_api.py | 2 +-
python/tvm/tir/tensor_intrin/__init__.py | 2 +-
python/tvm/tir/tensor_intrin/cuda.py | 6 +-
python/tvm/tir/tensor_intrin/riscv_cpu.py | 237 +++++++++++++++++++
python/tvm/tir/transform/_ffi_api.py | 2 +-
python/tvm/topi/cpp/cuda.py | 2 +-
python/tvm/topi/cpp/generic.py | 2 +-
python/tvm/topi/cpp/impl.py | 2 +-
python/tvm/topi/cpp/nn.py | 2 +-
python/tvm/topi/cpp/rocm.py | 2 +-
python/tvm/topi/cpp/utils.py | 2 +-
python/tvm/topi/cpp/vision/__init__.py | 2 +-
python/tvm/topi/cpp/vision/yolo.py | 2 +-
python/tvm/topi/cpp/x86.py | 2 +-
src/meta_schedule/postproc/postproc.cc | 8 +
src/meta_schedule/schedule_rule/schedule_rule.cc | 57 +++++
.../space_generator/space_generator.cc | 11 +
src/relax/op/op.cc | 4 +-
src/relax/transform/realize_vdevice.cc | 4 +-
src/runtime/disco/cuda_ipc/cuda_ipc_memory.cc | 2 +-
src/runtime/vm/builtin.cc | 2 +-
src/target/target_kind.cc | 2 -
.../test_runtime_packed_func.py | 7 +-
tests/python/codegen/test_gpu_codegen_allreduce.py | 4 +-
tests/python/codegen/test_target_codegen_extern.py | 4 +-
tests/python/codegen/test_target_codegen_metal.py | 2 +-
.../codegen/test_target_codegen_static_init.py | 2 +-
tests/python/contrib/test_dlpack.py | 6 +-
tests/python/contrib/test_rpc_tracker.py | 2 +-
tests/python/disco/test_loader.py | 10 +-
tests/python/ir/test_node_reflection.py | 2 +-
.../meta_schedule/test_meta_schedule_builder.py | 8 +-
.../test_meta_schedule_post_order_apply.py | 2 +-
.../meta_schedule/test_meta_schedule_runner.py | 8 +-
...eta_schedule_schedule_rule_apply_custom_rule.py | 2 +-
tests/python/relax/test_blockbuilder_core.py | 2 +-
tests/python/relax/test_frontend_nn_debug.py | 2 +-
tests/python/relax/test_frontend_nn_op.py | 2 +-
tests/python/relax/test_op_misc.py | 2 +-
tests/python/relax/test_relax_operators.py | 4 +-
tests/python/relax/test_runtime_builtin.py | 4 +-
...ltin_paged_attention_kv_cache_mla_flashinfer.py | 2 +-
...ime_builtin_paged_attention_kv_cache_mla_tir.py | 2 +-
.../relax/test_transform_lazy_transform_params.py | 4 +-
tests/python/relax/test_vm_codegen_only.py | 4 +-
tests/python/relax/test_vm_cuda_graph.py | 2 +-
tests/python/runtime/test_runtime_measure.py | 2 +-
tests/python/runtime/test_runtime_rpc.py | 2 +-
tests/python/runtime/test_runtime_trace.py | 16 +-
tests/python/target/test_target_target.py | 14 +-
tests/python/target/test_virtual_device.py | 6 +-
tests/python/testing/test_tvm_testing_features.py | 2 +-
.../tir-base/test_tir_structural_equal_hash.py | 2 +-
.../test_tir_transform_inject_ptx_async_copy.py | 4 +-
...r_transform_lower_device_storage_access_info.py | 4 +-
.../test_tir_transform_lower_tvm_builtin.py | 2 +-
.../test_tir_transform_make_unpacked_api.py | 2 +-
.../test_tir_transform_storage_rewrite.py | 2 +-
242 files changed, 2351 insertions(+), 987 deletions(-)
create mode 100644 ffi/docs/reference/cpp/index.rst
copy docs/reference/api/python/relax/transform.rst =>
ffi/docs/reference/python/index.rst (60%)
rename ffi/python/tvm_ffi/{convert.py => _convert.py} (91%)
rename ffi/python/tvm_ffi/{dtype.py => _dtype.py} (70%)
create mode 100644 ffi/python/tvm_ffi/_tensor.py
delete mode 100644 ffi/python/tvm_ffi/tensor.py
copy python/tvm/topi/cpp/vision/yolo.py => ffi/tests/python/test_examples.py
(51%)
create mode 100644 python/tvm/tir/tensor_intrin/riscv_cpu.py