[REFACTOR][TYPE] Finish move all types to IR. (#4746)
authorTianqi Chen <tqchen@users.noreply.github.com>
Mon, 20 Jan 2020 22:01:31 +0000 (14:01 -0800)
committerGitHub <noreply@github.com>
Mon, 20 Jan 2020 22:01:31 +0000 (14:01 -0800)
commit2c0c18494e00dd3beb71527b3f2ccde5df678440
tree8bb320db21fca65ddb4b5799a8152d390bc7aca1
parentee0af843f3c5a3429e888079afb5f30789bd9bee
[REFACTOR][TYPE] Finish move all types to IR. (#4746)

* [REFACTOR][TYPE] Finish move all types to IR.

- Move definition of Ref and TensorType to ir
- Move type_functor.h to public header.
- Rename RefType -> RelayRefType for clarity.

* Add atol
56 files changed:
include/tvm/ir/tensor_type.h [new file with mode: 0644]
include/tvm/ir/type.h
include/tvm/ir/type_functor.h [moved from src/relay/ir/type_functor.h with 77% similarity]
include/tvm/relay/type.h
include/tvm/runtime/object.h
src/ir/tensor_type.cc [moved from src/relay/ir/type.cc with 50% similarity]
src/ir/type.cc
src/ir/type_functor.cc [moved from src/relay/ir/type_functor.cc with 94% similarity]
src/relay/backend/compile_engine.cc
src/relay/backend/interpreter.cc
src/relay/ir/alpha_equal.cc
src/relay/ir/expr.cc
src/relay/ir/expr_functor.cc
src/relay/ir/hash.cc
src/relay/ir/pretty_printer.cc
src/relay/op/algorithm/argsort.cc
src/relay/op/algorithm/topk.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/convolution.h
src/relay/op/nn/nn.cc
src/relay/op/nn/nn.h
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/tensor/reduce.cc
src/relay/op/tensor/transform.cc
src/relay/op/tensor/transform.h
src/relay/op/tensor/unary.cc
src/relay/op/type_relations.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/de_duplicate.cc
src/relay/pass/eta_expand.cc
src/relay/pass/gradient.cc
src/relay/pass/kind_check.cc
src/relay/pass/partial_eval.cc
src/relay/pass/quantize/quantize.cc
src/relay/pass/to_cps.cc
src/relay/pass/type_infer.cc
src/relay/pass/type_solver.cc
src/relay/pass/util.cc
src/relay/qnn/op/dequantize.cc
src/relay/qnn/op/quantize.cc
src/relay/qnn/op/requantize.cc
src/relay/qnn/util.h
tests/cpp/relay_build_module_test.cc
tests/cpp/relay_pass_type_infer_test.cc
tests/cpp/relay_transform_sequential.cc
tests/cpp/utvm_runtime_standalone_test.cc
tests/python/frontend/mxnet/test_forward.py