This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a change to branch script/canonical-parser-df
in repository https://gitbox.apache.org/repos/asf/tvm.git
from 8b282f4fed [REFACTOR][TIRx] Check constexpr marker identity directly
new 71f6e9a72b [REFACTOR][Script] Separate function emission and restore
lexical contexts
new 70b12c1e94 [DOCS][Script] Render public decorators once in the API
reference
new 929cb6bff5 [REFACTOR][Script] Consolidate parser contexts and builder
contracts
new 0894548d18 [DOCS][Script] Explain parser context ownership and lifetime
The 4 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:
docs/arch/tvmscript.rst | 37 +-
.../tutorials/mix_python_and_tvm_with_pymodule.py | 16 +-
docs/reference/api/python/script/script.rst | 4 +-
include/tvm/relax/script/builder/frame.h | 4 -
include/tvm/relax/script/builder/ir.h | 6 +-
include/tvm/script/ir_builder/base.h | 6 +-
include/tvm/tirx/script/builder/frame.h | 39 +-
include/tvm/tirx/script/builder/ir.h | 17 +-
python/tvm/ir/module.py | 2 +-
python/tvm/relax/base_py_module.py | 19 +-
python/tvm/relax/relax_to_pyfunc_converter.py | 6 +-
python/tvm/relax/script/__init__.py | 151 ++
python/tvm/relax/script/builder/__init__.py | 291 +--
python/tvm/relax/script/builder/parser_protocol.py | 1498 +++++++++++++
python/tvm/relax/script/builder/protocol.py | 125 --
python/tvm/relax/transform/legalize_ops/grad.py | 8 +-
python/tvm/s_tir/tensor_intrin/arm_cpu.py | 12 +-
python/tvm/script/ir_builder/__init__.py | 2 +-
python/tvm/script/ir_builder/base.py | 110 +-
python/tvm/script/ir_builder/ir/__init__.py | 20 +-
python/tvm/script/ir_builder/ir/ir.py | 43 +-
python/tvm/script/ir_builder/ir/parser_protocol.py | 2259 ++++++++++++++++++++
python/tvm/script/ir_builder/ir/protocol.py | 199 --
python/tvm/script/parser/call_args_policy.py | 104 +-
python/tvm/script/parser/entry.py | 448 ++--
python/tvm/script/parser/inspect_source.py | 160 ++
python/tvm/script/parser/jit_support.py | 34 +-
python/tvm/script/parser/prescan.py | 539 ++++-
python/tvm/script/parser/protocol.py | 352 ---
python/tvm/script/parser/transpile.py | 2060 ++++++++++++------
python/tvm/tirx/script/builder/__init__.py | 416 +---
python/tvm/tirx/script/builder/frame.py | 58 +-
python/tvm/tirx/script/builder/ir.py | 225 +-
python/tvm/tirx/script/builder/parser_protocol.py | 1783 +++++++++++++++
python/tvm/tirx/script/builder/protocol.py | 247 ---
python/tvm/tirx/script/builder/utils.py | 8 +-
python/tvm/tirx/script/jit.py | 92 +-
python/tvm/topi/gpu/scan.py | 4 +-
python/tvm/topi/gpu/scatter_elements.py | 2 +-
python/tvm/topi/gpu/scatter_nd.py | 2 +-
python/tvm/topi/gpu/sort.py | 10 +-
python/tvm/topi/index_put.py | 4 +-
python/tvm/topi/scan.py | 4 +-
python/tvm/topi/scatter.py | 6 +-
python/tvm/topi/scatter_elements.py | 6 +-
python/tvm/topi/searchsorted.py | 2 +-
python/tvm/topi/signal.py | 10 +-
python/tvm/topi/sparse_reshape.py | 22 +-
python/tvm/topi/unique.py | 2 +-
python/tvm/topi/vision/nms.py | 76 +-
src/relax/script/builder/frame.cc | 41 +-
src/relax/script/builder/ir.cc | 14 +-
src/relax/script/builder/utils.h | 2 +-
src/script/ir_builder/base.cc | 14 +-
src/tirx/script/builder/frame.cc | 99 +-
src/tirx/script/builder/ir.cc | 73 +-
src/tirx/script/builder/utils.h | 17 +-
tests/python/codegen/test_target_codegen_vulkan.py | 8 +-
.../test_frontend_relax_construction_validation.py | 4 +-
.../script/test_native_relax_span_ownership.py | 124 ++
tests/python/relax/script/test_py_module.py | 138 ++
.../test_relax_builder_protocol_contract.py} | 40 +-
tests/python/relax/test_base_py_module_printer.py | 82 +-
.../relax/test_base_py_module_symbolic_shape.py | 5 +-
tests/python/relax/test_pytorch_integration.py | 2 +-
.../python/relax/test_relax_to_pyfunc_converter.py | 120 +-
tests/python/relax/test_tvmscript_pyfunc.py | 14 +-
tests/python/script/dummy_builder.py | 13 +-
.../script/test_builder_protocol_contract.py | 89 +
.../python/script/test_capture_definition_scope.py | 6 +-
tests/python/script/test_parser.py | 26 +-
.../python/script/test_parser_alias_restoration.py | 84 +
.../script/test_parser_bypass_source_attachment.py | 7 +-
.../python/script/test_parser_capture_lifetime.py | 204 ++
tests/python/script/test_parser_latest_design.py | 272 +++
tests/python/script/test_parser_scope_helpers.py | 10 +-
.../python/script/test_parser_shared_resolvers.py | 8 +-
.../tirx/script/test_capture_jit_execution.py | 4 +-
.../script/test_native_span_and_loop_contracts.py | 276 +++
.../python/tirx/script/test_parser_buffer_views.py | 90 +
.../tirx/script/test_parser_emitted_spans.py | 8 +-
.../python/tirx/script/test_parser_jit_lifetime.py | 88 +
.../tirx/script/test_parser_jit_specialization.py | 25 +-
.../tirx/script/test_parser_range_annotations.py | 11 +-
.../tirx/script/test_parser_scope_id_identity.py | 62 +-
.../tirx/script/test_parser_scope_id_names.py | 30 +-
tests/python/tirx/script/test_parser_self_bind.py | 14 +-
.../python/tirx/script/test_parser_tirx_frames.py | 36 +-
.../tirx/script/test_parser_tirx_resolvers.py | 10 +-
.../script/test_tirx_builder_protocol_contract.py | 209 ++
.../test_tirx_parser_comparison_integration.py | 2 +-
.../tirx/transform/test_transform_lower_tirx.py | 2 +-
.../tvmscript/test_tvmscript_ir_builder_tir.py | 14 +-
.../python/tvmscript/test_tvmscript_parser_tir.py | 2 +-
94 files changed, 10392 insertions(+), 3557 deletions(-)
create mode 100644 python/tvm/relax/script/builder/parser_protocol.py
delete mode 100644 python/tvm/relax/script/builder/protocol.py
create mode 100644 python/tvm/script/ir_builder/ir/parser_protocol.py
delete mode 100644 python/tvm/script/ir_builder/ir/protocol.py
create mode 100644 python/tvm/script/parser/inspect_source.py
delete mode 100644 python/tvm/script/parser/protocol.py
create mode 100644 python/tvm/tirx/script/builder/parser_protocol.py
delete mode 100644 python/tvm/tirx/script/builder/protocol.py
create mode 100644
tests/python/relax/script/test_native_relax_span_ownership.py
create mode 100644 tests/python/relax/script/test_py_module.py
copy tests/python/relax/{test_lower_alloc_tensor.py =>
script/test_relax_builder_protocol_contract.py} (50%)
create mode 100644 tests/python/script/test_builder_protocol_contract.py
create mode 100644 tests/python/script/test_parser_alias_restoration.py
create mode 100644 tests/python/script/test_parser_capture_lifetime.py
create mode 100644 tests/python/script/test_parser_latest_design.py
create mode 100644
tests/python/tirx/script/test_native_span_and_loop_contracts.py
create mode 100644 tests/python/tirx/script/test_parser_jit_lifetime.py
create mode 100644
tests/python/tirx/script/test_tirx_builder_protocol_contract.py