[REFACTOR][OBJECT] Consoldiate NodePtr/Ref/Hash/Equal to Object (#4603)
authorTianqi Chen <tqchen@users.noreply.github.com>
Tue, 31 Dec 2019 17:35:03 +0000 (09:35 -0800)
committerGitHub <noreply@github.com>
Tue, 31 Dec 2019 17:35:03 +0000 (09:35 -0800)
commita8c369218e87979020f732b9b2ad373fce4895f2
tree782f7d6b8e3c34f914dd29871f1f7f8955920402
parent475158f6285c63b42efe574cb9ba8afec24261be
[REFACTOR][OBJECT] Consoldiate NodePtr/Ref/Hash/Equal  to Object (#4603)

* [REFACTOR][OBJECT] Consoldiate NodePtr/Ref/Hash/Equal and macros to Object.

Historically, we have classes like NodePtr/Ref/HashEqual.
After unified object protocol, these names are just alias of the object counterpart.
Moreover, there are helper macros defined over the places for defining these object.

This PR consoldiate the terminologies into the corresponding ones
in the Object system so we have a clean and consistent API moving forward.

* Update include/tvm/attrs.h

Co-Authored-By: Wei Chen <ipondering.weic@gmail.com>
* fix compilation

Co-authored-by: Wei Chen <ipondering.weic@gmail.com>
215 files changed:
include/tvm/api_registry.h
include/tvm/arithmetic.h
include/tvm/attrs.h
include/tvm/buffer.h
include/tvm/build_module.h
include/tvm/data_layout.h
include/tvm/expr.h
include/tvm/ir.h
include/tvm/ir_functor_ext.h
include/tvm/ir_pass.h
include/tvm/ir_visitor.h
include/tvm/lowered_func.h
include/tvm/node/container.h
include/tvm/node/node.h
include/tvm/operation.h
include/tvm/packed_func_ext.h
include/tvm/relay/adt.h
include/tvm/relay/attrs/transform.h
include/tvm/relay/base.h
include/tvm/relay/error.h
include/tvm/relay/expr.h
include/tvm/relay/expr_functor.h
include/tvm/relay/interpreter.h
include/tvm/relay/module.h
include/tvm/relay/op.h
include/tvm/relay/op_attr_types.h
include/tvm/relay/pattern_functor.h
include/tvm/relay/transform.h
include/tvm/relay/type.h
include/tvm/runtime/object.h
include/tvm/schedule.h
include/tvm/target_info.h
include/tvm/tensor.h
include/tvm/tensor_intrin.h
nnvm/include/nnvm/graph.h
nnvm/include/nnvm/node.h
nnvm/include/nnvm/op_attr_types.h
nnvm/include/nnvm/symbolic.h
nnvm/src/c_api/c_api_symbolic.cc
nnvm/src/core/graph.cc
nnvm/src/core/node.cc
nnvm/src/core/symbolic.cc
nnvm/src/pass/correct_layout.cc
nnvm/src/pass/gradient.cc
nnvm/src/pass/infer_shape_type.cc
nnvm/src/pass/order_mutation.cc
nnvm/src/pass/place_device.cc
nnvm/src/pass/saveload_json.cc
src/api/api_base.cc
src/api/api_lang.cc
src/api/api_pass.cc
src/arithmetic/bound_deducer.cc
src/arithmetic/canonical_simplify.cc
src/arithmetic/const_int_bound.cc
src/arithmetic/detect_linear_equation.cc
src/arithmetic/int_set.cc
src/arithmetic/int_set.h
src/arithmetic/modular_set.cc
src/arithmetic/pattern_match.h
src/codegen/build_module.cc
src/contrib/hybrid/codegen_hybrid.cc
src/contrib/hybrid/codegen_hybrid.h
src/lang/api_registry.cc
src/lang/attrs.cc
src/lang/buffer.cc
src/lang/data_layout.cc
src/lang/expr.cc
src/lang/ir.cc
src/lang/tensor.cc
src/node/serialization.cc
src/op/compute_op.cc
src/op/extern_op.cc
src/op/hybrid_op.cc
src/op/placeholder_op.cc
src/op/scan_op.cc
src/op/tensor_compute_op.cc
src/op/tensorize.cc
src/pass/combine_context_call.cc
src/pass/coproc_sync.cc
src/pass/hoist_if_then_else.cc
src/pass/infer_fragment.cc
src/pass/inject_virtual_thread.cc
src/pass/ir_deep_compare.cc
src/pass/ir_util.cc
src/pass/ir_visitor.cc
src/pass/lift_attr_scope.cc
src/pass/loop_partition.cc
src/pass/lower_custom_datatypes.cc
src/pass/lower_intrin.cc
src/pass/lower_thread_allreduce.cc
src/pass/lower_tvm_builtin.cc
src/pass/lower_warp_memory.cc
src/pass/make_api.cc
src/pass/remap_thread_axis.cc
src/pass/simple_passes.cc
src/pass/skip_assert.cc
src/pass/split_host_device.cc
src/pass/ssa.cc
src/pass/storage_access.cc
src/pass/storage_access.h
src/pass/storage_flatten.cc
src/pass/storage_rewrite.cc
src/pass/storage_sync.cc
src/pass/tensor_core.cc
src/pass/verify_memory.cc
src/relay/backend/build_module.cc
src/relay/backend/compile_engine.cc
src/relay/backend/compile_engine.h
src/relay/backend/contrib/codegen_c/codegen.cc
src/relay/backend/contrib/codegen_c/codegen_c.h
src/relay/backend/contrib/dnnl/codegen.cc
src/relay/backend/graph_runtime_codegen.cc
src/relay/backend/interpreter.cc
src/relay/backend/param_dict.cc
src/relay/backend/param_dict.h
src/relay/backend/vm/compiler.cc
src/relay/backend/vm/compiler.h
src/relay/backend/vm/inline_primitives.cc
src/relay/backend/vm/lambda_lift.cc
src/relay/backend/vm/removed_unused_funcs.cc
src/relay/ir/adt.cc
src/relay/ir/alpha_equal.cc
src/relay/ir/base.cc
src/relay/ir/error.cc
src/relay/ir/expr.cc
src/relay/ir/expr_functor.cc
src/relay/ir/hash.cc
src/relay/ir/module.cc
src/relay/ir/op.cc
src/relay/ir/pretty_printer.cc
src/relay/ir/type.cc
src/relay/ir/type_functor.h
src/relay/op/algorithm/argsort.cc
src/relay/op/algorithm/topk.cc
src/relay/op/annotation/annotation.cc
src/relay/op/debug.cc
src/relay/op/device_copy.cc
src/relay/op/image/resize.cc
src/relay/op/memory/memory.cc
src/relay/op/nn/bitserial.cc
src/relay/op/nn/convolution.cc
src/relay/op/nn/nn.cc
src/relay/op/nn/pad.cc
src/relay/op/nn/pooling.cc
src/relay/op/nn/sparse.cc
src/relay/op/nn/upsampling.cc
src/relay/op/op_common.h
src/relay/op/tensor/reduce.cc
src/relay/op/tensor/transform.cc
src/relay/op/tensor/unary.cc
src/relay/op/vision/multibox_op.cc
src/relay/op/vision/nms.cc
src/relay/op/vision/rcnn_op.cc
src/relay/op/vision/yolo.cc
src/relay/pass/alter_op_layout.cc
src/relay/pass/canonicalize_cast.cc
src/relay/pass/combine_parallel_conv2d.cc
src/relay/pass/combine_parallel_op.h
src/relay/pass/convert_layout.cc
src/relay/pass/de_duplicate.cc
src/relay/pass/dead_code.cc
src/relay/pass/dependency_graph.cc
src/relay/pass/dependency_graph.h
src/relay/pass/device_annotation.cc
src/relay/pass/eliminate_common_subexpr.cc
src/relay/pass/eta_expand.cc
src/relay/pass/expr_subst.cc
src/relay/pass/expr_subst.h
src/relay/pass/feature.cc
src/relay/pass/fold_constant.cc
src/relay/pass/fold_scale_axis.cc
src/relay/pass/forward_rewrite.cc
src/relay/pass/fuse_ops.cc
src/relay/pass/gradient.cc
src/relay/pass/partial_eval.cc
src/relay/pass/pass_manager.cc
src/relay/pass/pass_util.h
src/relay/pass/pattern_util.h
src/relay/pass/quantize/annotate.cc
src/relay/pass/quantize/calibrate.cc
src/relay/pass/quantize/partition.cc
src/relay/pass/quantize/quantize.cc
src/relay/pass/quantize/quantize.h
src/relay/pass/quantize/realize.cc
src/relay/pass/simplify_inference.cc
src/relay/pass/to_a_normal_form.cc
src/relay/pass/to_cps.cc
src/relay/pass/to_graph_normal_form.cc
src/relay/pass/transform_layout.h
src/relay/pass/type_infer.cc
src/relay/pass/type_solver.cc
src/relay/pass/type_solver.h
src/relay/pass/util.cc
src/relay/pass/well_formed.cc
src/relay/qnn/op/concatenate.cc
src/relay/qnn/op/convolution.cc
src/relay/qnn/op/dense.cc
src/relay/qnn/op/dequantize.cc
src/relay/qnn/op/op_common.h
src/relay/qnn/op/quantize.cc
src/relay/qnn/op/requantize.cc
src/relay/qnn/util.h
src/runtime/vm/memory_manager.h
src/schedule/auto_inline_elem_wise.cc
src/schedule/bound.cc
src/schedule/graph.cc
src/schedule/schedule_dataflow_rewrite.cc
src/schedule/schedule_lang.cc
src/schedule/schedule_ops.cc
tests/cpp/container_test.cc
tests/cpp/expr_test.cc
tests/cpp/ir_visitor_test.cc
topi/include/topi/detail/extern.h
topi/include/topi/nn/softmax.h
topi/src/topi.cc