This is an automated email from the ASF dual-hosted git repository.
zhic pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git.
from a950536 [TFLITE][FRONTEND]Reduce_any op parsing support (#4926)
add ec86d7f [REFACTOR] Streamline Function Attr interface. (#5045)
No new revisions were added by this update.
Summary of changes:
include/tvm/ir/attrs.h | 47 +++---
include/tvm/ir/expr.h | 24 ---
include/tvm/ir/function.h | 119 ++++++++++++++
include/tvm/ir/module.h | 1 +
include/tvm/relay/analysis.h | 1 +
include/tvm/relay/expr.h | 131 ----------------
include/tvm/relay/expr_functor.h | 9 +-
include/tvm/relay/function.h | 171 +++++++++++++++++++++
include/tvm/relay/transform.h | 1 +
python/tvm/ir/__init__.py | 2 +-
python/tvm/ir/attrs.py | 37 ++++-
python/tvm/ir/expr.py | 5 +
python/tvm/relay/expr.py | 26 ++--
src/ir/adt.cc | 2 +-
src/ir/attrs.cc | 13 +-
src/ir/expr.cc | 3 +-
.../device/host/utvm_init.c => ir/function.cc} | 25 ++-
src/ir/module.cc | 6 +-
src/ir/op.cc | 2 +-
src/ir/tensor_type.cc | 2 +-
src/ir/type.cc | 2 +-
src/ir/type_relation.cc | 2 +-
src/printer/doc.cc | 2 +-
src/relay/analysis/call_graph.h | 1 +
src/relay/analysis/feature.cc | 2 +-
src/relay/analysis/type_solver.cc | 2 +-
src/relay/backend/compile_engine.cc | 16 +-
src/relay/backend/contrib/codegen_c/codegen_c.h | 4 +-
src/relay/backend/graph_runtime_codegen.cc | 2 +-
src/relay/backend/interpreter.cc | 6 +-
src/relay/backend/vm/compiler.cc | 4 +-
src/relay/backend/vm/inline_primitives.cc | 6 +-
src/relay/backend/vm/lambda_lift.cc | 18 +--
src/relay/ir/adt.cc | 2 +-
src/relay/ir/expr.cc | 126 +--------------
src/relay/ir/expr_functor.cc | 8 +-
src/relay/ir/function.cc | 102 ++++++++++++
src/relay/ir/hash.cc | 2 +-
src/relay/ir/op_strategy.cc | 2 +-
src/relay/ir/transform.cc | 5 +-
src/relay/quantize/annotate.cc | 2 +-
src/relay/quantize/calibrate.cc | 2 +-
src/relay/transforms/de_duplicate.cc | 2 +-
src/relay/transforms/device_annotation.cc | 4 +-
src/relay/transforms/eta_expand.cc | 4 +-
src/relay/transforms/fold_constant.cc | 2 +-
src/relay/transforms/fuse_ops.cc | 6 +-
src/relay/transforms/gradient.cc | 10 +-
src/relay/transforms/inline.cc | 8 +-
src/relay/transforms/merge_composite.cc | 9 +-
src/relay/transforms/partial_eval.cc | 4 +-
src/relay/transforms/partition_graph.cc | 19 ++-
src/relay/transforms/pass_util.h | 2 +-
src/relay/transforms/to_a_normal_form.cc | 4 +-
src/relay/transforms/to_cps.cc | 12 +-
tests/cpp/relay_build_module_test.cc | 2 +-
tests/cpp/relay_pass_type_infer_test.cc | 4 +-
tests/cpp/relay_transform_sequential.cc | 4 +-
tests/cpp/utvm_runtime_standalone_test.cc | 2 +-
tests/python/relay/test_call_graph.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 | 14 +-
tests/python/relay/test_pass_alpha_equal.py | 6 +-
tests/python/relay/test_pass_fuse_ops.py | 60 ++++----
tests/python/relay/test_pass_inline.py | 104 ++++++-------
tests/python/relay/test_pass_merge_composite.py | 26 ++--
tests/python/relay/test_pass_partition_graph.py | 42 ++---
tests/python/unittest/test_ir_attrs.py | 55 +++++++
..._lang_reflection.py => test_node_reflection.py} | 27 ----
70 files changed, 787 insertions(+), 602 deletions(-)
create mode 100644 include/tvm/ir/function.h
create mode 100644 include/tvm/relay/function.h
copy src/{runtime/micro/device/host/utvm_init.c => ir/function.cc} (75%)
create mode 100644 src/relay/ir/function.cc
create mode 100644 tests/python/unittest/test_ir_attrs.py
rename tests/python/unittest/{test_lang_reflection.py =>
test_node_reflection.py} (79%)