[REFACTOR] top - namespace for Tensor Operation DSL (#4727)
authorTianqi Chen <tqchen@users.noreply.github.com>
Thu, 16 Jan 2020 23:23:54 +0000 (15:23 -0800)
committerGitHub <noreply@github.com>
Thu, 16 Jan 2020 23:23:54 +0000 (15:23 -0800)
commitb82614267211cc044a1631e6320aec4956246a18
treefad2cdcf01a0abd8d45be410dfff9da7c9878212
parentddef940369f317e3376505a09d736d078a9203fc
[REFACTOR]  top - namespace for Tensor Operation DSL (#4727)

* [REFACTOR] introduce top - Tensor Operation DSL.

Historically we put Tensor, Schedule and compute under the root tvm namespace.
This is no longer a good idea as the project's scope grows larger
than the tensor operation DSL.

This PR introduces top -- a namespace for tensor operational
DSL concepts such as schedule, tensor, compute.
We moved the related files to the new top subfolder.

* Move relevant files into include/tvm/top and src/top
125 files changed:
CMakeLists.txt
include/tvm/arith/bound.h
include/tvm/build_module.h
include/tvm/ir_pass.h
include/tvm/lowered_func.h
include/tvm/packed_func_ext.h
include/tvm/relay/op_attr_types.h
include/tvm/top/operation.h [moved from include/tvm/operation.h with 98% similarity]
include/tvm/top/schedule.h [moved from include/tvm/schedule.h with 99% similarity]
include/tvm/top/schedule_pass.h [moved from include/tvm/schedule_pass.h with 92% similarity]
include/tvm/top/tensor.h [moved from include/tvm/tensor.h with 95% similarity]
include/tvm/top/tensor_intrin.h [moved from include/tvm/tensor_intrin.h with 96% similarity]
src/README.md
src/api/api_arith.cc
src/api/api_base.cc
src/api/api_lang.cc
src/api/api_pass.cc
src/api/api_schedule.cc
src/api/api_test.cc
src/arith/domain_touched.cc
src/codegen/build_module.cc
src/contrib/hybrid/codegen_hybrid.h
src/pass/inject_prefetch.cc
src/pass/storage_flatten.cc
src/pass/tensor_core.cc
src/pass/verify_compact_buffer.cc
src/relay/backend/compile_engine.cc
src/relay/backend/compile_engine.h
src/relay/backend/utils.h
src/relay/backend/vm/compiler.cc
src/relay/op/annotation/annotation.cc
src/relay/op/debug.cc
src/relay/op/memory/memory.cc
src/relay/op/nn/nn.cc
src/relay/op/nn/pad.cc
src/relay/op/nn/pooling.cc
src/relay/op/tensor/binary.cc
src/relay/op/tensor/reduce.cc
src/relay/op/tensor/transform.cc
src/relay/op/tensor/unary.cc
src/relay/op/vision/yolo.cc
src/relay/pass/alter_op_layout.cc
src/relay/pass/convert_layout.cc
src/relay/pass/gradient.cc
src/relay/pass/legalize.cc
src/top/operation/compute_op.cc [moved from src/op/compute_op.cc with 96% similarity]
src/top/operation/compute_op.h [moved from src/op/compute_op.h with 95% similarity]
src/top/operation/cross_thread_reduction.cc [moved from src/op/cross_thread_reduction.cc with 93% similarity]
src/top/operation/extern_op.cc [moved from src/op/extern_op.cc with 98% similarity]
src/top/operation/hybrid_op.cc [moved from src/op/hybrid_op.cc with 97% similarity]
src/top/operation/hybrid_op.h [moved from src/op/hybrid_op.h with 92% similarity]
src/top/operation/op_util.cc [moved from src/op/op_util.cc with 97% similarity]
src/top/operation/op_util.h [moved from src/op/op_util.h with 93% similarity]
src/top/operation/placeholder_op.cc [moved from src/op/placeholder_op.cc with 97% similarity]
src/top/operation/scan_op.cc [moved from src/op/scan_op.cc with 98% similarity]
src/top/operation/tensor_compute_op.cc [moved from src/op/tensor_compute_op.cc with 92% similarity]
src/top/operation/tensorize.cc [moved from src/op/tensorize.cc with 97% similarity]
src/top/schedule/auto_inline_elem_wise.cc [moved from src/schedule/auto_inline_elem_wise.cc with 96% similarity]
src/top/schedule/bound.cc [moved from src/schedule/bound.cc with 98% similarity]
src/top/schedule/graph.cc [moved from src/schedule/graph.cc with 98% similarity]
src/top/schedule/graph.h [moved from src/schedule/graph.h with 95% similarity]
src/top/schedule/message_passing.cc [moved from src/schedule/message_passing.cc with 99% similarity]
src/top/schedule/message_passing.h [moved from src/schedule/message_passing.h with 95% similarity]
src/top/schedule/schedule_dataflow_rewrite.cc [moved from src/schedule/schedule_dataflow_rewrite.cc with 97% similarity]
src/top/schedule/schedule_lang.cc [moved from src/schedule/schedule_lang.cc with 99% similarity]
src/top/schedule/schedule_ops.cc [moved from src/schedule/schedule_ops.cc with 98% similarity]
src/top/tensor.cc [moved from src/lang/tensor.cc with 97% similarity]
tests/cpp/build_module_test.cc
tests/cpp/expr_test.cc
tests/cpp/ir_simplify_test.cc
tests/cpp/relay_build_module_test.cc
tests/cpp/relay_pass_type_infer_test.cc
tests/cpp/relay_transform_sequential.cc
tests/cpp/simple_passes_test.cc
tests/cpp/tensor_test.cc
tests/cpp/topi_ewise_test.cc
tests/cpp/utvm_runtime_standalone_test.cc
topi/include/topi/broadcast.h
topi/include/topi/contrib/cublas.h
topi/include/topi/contrib/rocblas.h
topi/include/topi/cuda/dense.h
topi/include/topi/cuda/injective.h
topi/include/topi/cuda/normalization.h
topi/include/topi/cuda/pooling.h
topi/include/topi/cuda/reduction.h
topi/include/topi/cuda/softmax.h
topi/include/topi/detail/array_utils.h
topi/include/topi/detail/broadcast.h
topi/include/topi/detail/constant_utils.h
topi/include/topi/detail/extern.h
topi/include/topi/detail/fuse.h
topi/include/topi/detail/pad_utils.h
topi/include/topi/detail/ravel_unravel.h
topi/include/topi/detail/tensor_utils.h
topi/include/topi/elemwise.h
topi/include/topi/generic/default.h
topi/include/topi/generic/extern.h
topi/include/topi/generic/injective.h
topi/include/topi/image/resize.h
topi/include/topi/nn.h
topi/include/topi/nn/batch_matmul.h
topi/include/topi/nn/bias_add.h
topi/include/topi/nn/bnn.h
topi/include/topi/nn/dense.h
topi/include/topi/nn/dilate.h
topi/include/topi/nn/flatten.h
topi/include/topi/nn/l2_normalize.h
topi/include/topi/nn/local_response_norm.h
topi/include/topi/nn/mapping.h
topi/include/topi/nn/pooling.h
topi/include/topi/nn/softmax.h
topi/include/topi/nn/upsampling.h
topi/include/topi/reduction.h
topi/include/topi/rocm/dense.h
topi/include/topi/rocm/injective.h
topi/include/topi/rocm/normalization.h
topi/include/topi/rocm/pooling.h
topi/include/topi/rocm/reduction.h
topi/include/topi/rocm/softmax.h
topi/include/topi/transform.h
topi/include/topi/vision/reorg.h
topi/include/topi/x86/bnn.h
topi/include/topi/x86/default.h
topi/include/topi/x86/injective.h
topi/src/topi.cc