diff --git a/include/tvm/tvm.h b/include/tvm/tvm.h deleted file mode 100644 index 507363d6a1cc..000000000000 --- a/include/tvm/tvm.h +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -/*! - * \file tvm/tvm.h - * \brief Header to include all C++ API. - */ -#ifndef TVM_TVM_H_ -#define TVM_TVM_H_ - -#include "base.h" -#include "expr.h" -#include "expr_operator.h" -#include "tensor.h" -#include "operation.h" -#include "packed_func_ext.h" - -#endif // TVM_TVM_H_ diff --git a/nnvm/src/compiler/alter_op_layout.cc b/nnvm/src/compiler/alter_op_layout.cc index d88f6eb9cae6..bb98240a7c60 100644 --- a/nnvm/src/compiler/alter_op_layout.cc +++ b/nnvm/src/compiler/alter_op_layout.cc @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include #include #include "compile_engine.h" diff --git a/nnvm/src/top/image/resize.cc b/nnvm/src/top/image/resize.cc index 5526f17c9b1e..41a8bc616292 100644 --- a/nnvm/src/top/image/resize.cc +++ b/nnvm/src/top/image/resize.cc @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -22,7 +22,7 @@ * \file resize.cc * \brief Property def of resize operators. */ -#include +#include #include #include #include diff --git a/nnvm/src/top/nn/convolution.cc b/nnvm/src/top/nn/convolution.cc index 84ad737cf68a..2ab84e375bad 100644 --- a/nnvm/src/top/nn/convolution.cc +++ b/nnvm/src/top/nn/convolution.cc @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -30,7 +30,7 @@ #include #include #include -#include +#include #include "nn_common.h" #include "../op_common.h" #include "../elemwise_op_common.h" diff --git a/nnvm/src/top/nn/nn.cc b/nnvm/src/top/nn/nn.cc index 93b01f5c6b50..19438cd64524 100644 --- a/nnvm/src/top/nn/nn.cc +++ b/nnvm/src/top/nn/nn.cc @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -22,7 +22,7 @@ * \file nn.cc * \brief Property def of nn operators. */ -#include +#include #include #include #include diff --git a/nnvm/src/top/nn/upsampling.cc b/nnvm/src/top/nn/upsampling.cc index a7dab672ef25..68583ae616f2 100644 --- a/nnvm/src/top/nn/upsampling.cc +++ b/nnvm/src/top/nn/upsampling.cc @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,11 +18,10 @@ */ /*! - * Copyright (c) 2017 by Contributors * \file upsampling.cc * \brief Property def of upsampling operators. */ -#include +#include #include #include #include diff --git a/src/relay/backend/utils.h b/src/relay/backend/utils.h index 139dab21e973..f59b117ce02c 100644 --- a/src/relay/backend/utils.h +++ b/src/relay/backend/utils.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include diff --git a/src/relay/pass/alter_op_layout.cc b/src/relay/pass/alter_op_layout.cc index 82424500ffc8..9142c0eee80e 100644 --- a/src/relay/pass/alter_op_layout.cc +++ b/src/relay/pass/alter_op_layout.cc @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/tests/cpp/build_module_test.cc b/tests/cpp/build_module_test.cc index 6dbd78e9566d..1a7f791f65a0 100644 --- a/tests/cpp/build_module_test.cc +++ b/tests/cpp/build_module_test.cc @@ -20,8 +20,8 @@ #include #include #include -#include #include +#include #include #include diff --git a/tests/cpp/container_test.cc b/tests/cpp/container_test.cc index 4d064908b35d..c9afedb057d5 100644 --- a/tests/cpp/container_test.cc +++ b/tests/cpp/container_test.cc @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -19,7 +19,7 @@ #include #include -#include +#include TEST(Array, Expr) { using namespace tvm; diff --git a/tests/cpp/expr_test.cc b/tests/cpp/expr_test.cc index 1c5dc7beb87f..1d241ddc34bd 100644 --- a/tests/cpp/expr_test.cc +++ b/tests/cpp/expr_test.cc @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -19,7 +19,7 @@ #include #include -#include +#include TEST(Expr, Basic) { using namespace tvm; diff --git a/tests/cpp/ir_functor_test.cc b/tests/cpp/ir_functor_test.cc index d336537c13be..d3584c633199 100644 --- a/tests/cpp/ir_functor_test.cc +++ b/tests/cpp/ir_functor_test.cc @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -19,7 +19,8 @@ #include #include -#include +#include +#include #include #include diff --git a/tests/cpp/ir_simplify_test.cc b/tests/cpp/ir_simplify_test.cc index 5a5dc03f0165..57d7d5041e6d 100644 --- a/tests/cpp/ir_simplify_test.cc +++ b/tests/cpp/ir_simplify_test.cc @@ -20,7 +20,7 @@ #include #include #include -#include +#include TEST(IRSIMPLIFY, MinMax) { auto x = tvm::var("x"); diff --git a/tests/cpp/ir_ssa_test.cc b/tests/cpp/ir_ssa_test.cc index 32524a50f462..0b5168032ba7 100644 --- a/tests/cpp/ir_ssa_test.cc +++ b/tests/cpp/ir_ssa_test.cc @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -19,7 +19,6 @@ #include #include -#include #include diff --git a/tests/cpp/ir_visitor_test.cc b/tests/cpp/ir_visitor_test.cc index f0dedc1e75a9..814febb74c97 100644 --- a/tests/cpp/ir_visitor_test.cc +++ b/tests/cpp/ir_visitor_test.cc @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -19,7 +19,6 @@ #include #include -#include #include #include diff --git a/tests/cpp/packed_func_test.cc b/tests/cpp/packed_func_test.cc index bb8aef5a1e5a..4e2ec065710c 100644 --- a/tests/cpp/packed_func_test.cc +++ b/tests/cpp/packed_func_test.cc @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include TEST(PackedFunc, Basic) { diff --git a/tests/cpp/relay_build_module_test.cc b/tests/cpp/relay_build_module_test.cc index a8a63dd44ef9..124f3032551e 100644 --- a/tests/cpp/relay_build_module_test.cc +++ b/tests/cpp/relay_build_module_test.cc @@ -19,7 +19,7 @@ #include #include -#include +#include #include #include #include diff --git a/tests/cpp/relay_pass_type_infer_test.cc b/tests/cpp/relay_pass_type_infer_test.cc index 38a88309ed1e..0a2bf9a7af63 100644 --- a/tests/cpp/relay_pass_type_infer_test.cc +++ b/tests/cpp/relay_pass_type_infer_test.cc @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,7 +18,7 @@ */ #include -#include +#include #include #include #include diff --git a/tests/cpp/relay_transform_sequential.cc b/tests/cpp/relay_transform_sequential.cc index 0df78fc62f42..34db91745480 100644 --- a/tests/cpp/relay_transform_sequential.cc +++ b/tests/cpp/relay_transform_sequential.cc @@ -28,7 +28,7 @@ #include #include #include -#include +#include TVM_REGISTER_GLOBAL("schedule") .set_body([](tvm::TVMArgs args, tvm::TVMRetValue* rv) { diff --git a/tests/cpp/simple_passes_test.cc b/tests/cpp/simple_passes_test.cc index 860ecd56430a..5d63b22c5a8f 100644 --- a/tests/cpp/simple_passes_test.cc +++ b/tests/cpp/simple_passes_test.cc @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -19,8 +19,8 @@ #include #include -#include #include +#include TEST(SimplePasses, HasSideEffect) { using namespace tvm; diff --git a/tests/cpp/tensor_test.cc b/tests/cpp/tensor_test.cc index b14316f61e32..ec00fa785af6 100644 --- a/tests/cpp/tensor_test.cc +++ b/tests/cpp/tensor_test.cc @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -19,7 +19,7 @@ #include #include -#include +#include TEST(Tensor, Basic) { using namespace tvm; diff --git a/tests/cpp/topi_ewise_test.cc b/tests/cpp/topi_ewise_test.cc index 8bd0293cc91a..fc94865fc2d8 100644 --- a/tests/cpp/topi_ewise_test.cc +++ b/tests/cpp/topi_ewise_test.cc @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -17,7 +17,7 @@ * under the License. */ -#include +#include #include #include diff --git a/topi/include/topi/contrib/cublas.h b/topi/include/topi/contrib/cublas.h index c1d1b4e2c2dd..3b47a93e19ae 100644 --- a/topi/include/topi/contrib/cublas.h +++ b/topi/include/topi/contrib/cublas.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,14 +18,13 @@ */ /*! - * Copyright (c) 2017 by Contributors * \brief External function interface to cuBLAS libraries - * \file tags.h + * \file cublas.h */ #ifndef TOPI_CONTRIB_CUBLAS_H_ #define TOPI_CONTRIB_CUBLAS_H_ -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "topi/detail/extern.h" namespace topi { diff --git a/topi/include/topi/contrib/rocblas.h b/topi/include/topi/contrib/rocblas.h index 64652200a488..5530577bb069 100644 --- a/topi/include/topi/contrib/rocblas.h +++ b/topi/include/topi/contrib/rocblas.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -25,7 +25,7 @@ #ifndef TOPI_CONTRIB_ROCBLAS_H_ #define TOPI_CONTRIB_ROCBLAS_H_ -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "topi/detail/extern.h" namespace topi { diff --git a/topi/include/topi/cuda/dense.h b/topi/include/topi/cuda/dense.h index f640ee7c75a7..19e8ab3e5874 100644 --- a/topi/include/topi/cuda/dense.h +++ b/topi/include/topi/cuda/dense.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,14 +18,13 @@ */ /*! -* Copyright (c) 2017 by Contributors -* \file cuda/dense.h -* \brief CUDA schedule for dense operation -*/ + * \file cuda/dense.h + * \brief CUDA schedule for dense operation + */ #ifndef TOPI_CUDA_DENSE_H_ #define TOPI_CUDA_DENSE_H_ -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "tvm/build_module.h" #include "topi/tags.h" #include "topi/detail/array_utils.h" @@ -152,4 +151,3 @@ inline Schedule schedule_dense(const Target &target, const Array& outs) } // namespace cuda } // namespace topi #endif // TOPI_CUDA_DENSE_H_ - diff --git a/topi/include/topi/cuda/extern.h b/topi/include/topi/cuda/extern.h index f7008dd6b05a..7800986ead02 100644 --- a/topi/include/topi/cuda/extern.h +++ b/topi/include/topi/cuda/extern.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,16 +18,15 @@ */ /*! -* Copyright (c) 2017 by Contributors -* \file cuda/extern.h -* \brief CUDA schedule for extern followed by injective operations -*/ + * \file cuda/extern.h + * \brief CUDA schedule for extern followed by injective operations + */ #ifndef TOPI_CUDA_EXTERN_H_ #define TOPI_CUDA_EXTERN_H_ #include "topi/tags.h" #include "topi/detail/fuse.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "tvm/build_module.h" namespace topi { diff --git a/topi/include/topi/cuda/injective.h b/topi/include/topi/cuda/injective.h index e540292fbf09..e629ae1c3503 100644 --- a/topi/include/topi/cuda/injective.h +++ b/topi/include/topi/cuda/injective.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,16 +18,15 @@ */ /*! -* Copyright (c) 2017 by Contributors -* \file cuda/injective.h -* \brief CUDA schedule for injective operations -*/ + * \file cuda/injective.h + * \brief CUDA schedule for injective operations + */ #ifndef TOPI_CUDA_INJECTIVE_H_ #define TOPI_CUDA_INJECTIVE_H_ #include "topi/tags.h" #include "topi/detail/fuse.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "tvm/build_module.h" namespace topi { diff --git a/topi/include/topi/cuda/normalization.h b/topi/include/topi/cuda/normalization.h index 3de95aa4a2fd..302578644555 100644 --- a/topi/include/topi/cuda/normalization.h +++ b/topi/include/topi/cuda/normalization.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,14 +18,13 @@ */ /*! -* Copyright (c) 2018 by Contributors -* \file cuda/normalization.h -* \brief CUDA schedule for LRN and l2 normalization operations -*/ + * \file cuda/normalization.h + * \brief CUDA schedule for LRN and l2 normalization operations + */ #ifndef TOPI_CUDA_NORMALIZATION_H_ #define TOPI_CUDA_NORMALIZATION_H_ -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "tvm/build_module.h" #include "topi/tags.h" @@ -122,4 +121,3 @@ inline Schedule schedule_l2_normalize(const Target &target, const Array& } // namespace cuda } // namespace topi #endif // TOPI_CUDA_NORMALIZATION_H_ - diff --git a/topi/include/topi/cuda/pooling.h b/topi/include/topi/cuda/pooling.h index fe775fcc1d45..0869adbc2877 100644 --- a/topi/include/topi/cuda/pooling.h +++ b/topi/include/topi/cuda/pooling.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,17 +18,16 @@ */ /*! -* Copyright (c) 2017 by Contributors -* \file cuda/pooling.h -* \brief CUDA schedule for pooling operations -*/ + * \file cuda/pooling.h + * \brief CUDA schedule for pooling operations + */ #ifndef TOPI_CUDA_POOLING_H_ #define TOPI_CUDA_POOLING_H_ #include "topi/tags.h" #include "topi/detail/fuse.h" #include "topi/detail/array_utils.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "tvm/build_module.h" namespace topi { diff --git a/topi/include/topi/cuda/reduction.h b/topi/include/topi/cuda/reduction.h index 6dfa6ac7c8cf..85d7d86b9236 100644 --- a/topi/include/topi/cuda/reduction.h +++ b/topi/include/topi/cuda/reduction.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,16 +18,15 @@ */ /*! -* Copyright (c) 2017 by Contributors -* \file cuda/reduction.h -* \brief CUDA schedule for reduction operations -*/ + * \file cuda/reduction.h + * \brief CUDA schedule for reduction operations + */ #ifndef TOPI_CUDA_REDUCTION_H_ #define TOPI_CUDA_REDUCTION_H_ #include "topi/tags.h" #include "topi/detail/fuse.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "tvm/build_module.h" namespace topi { diff --git a/topi/include/topi/cuda/softmax.h b/topi/include/topi/cuda/softmax.h index 2c7c6f0518f8..ee27476a7258 100644 --- a/topi/include/topi/cuda/softmax.h +++ b/topi/include/topi/cuda/softmax.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,16 +18,15 @@ */ /*! -* Copyright (c) 2017 by Contributors -* \file cuda/injective.h -* \brief CUDA schedule for injective operations -*/ + * \file cuda/injective.h + * \brief CUDA schedule for injective operations + */ #ifndef TOPI_CUDA_SOFTMAX_H_ #define TOPI_CUDA_SOFTMAX_H_ #include "topi/tags.h" #include "topi/detail/fuse.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "tvm/build_module.h" namespace topi { diff --git a/topi/include/topi/detail/array_utils.h b/topi/include/topi/detail/array_utils.h index 7c5ceccc160a..93e7c3e156fb 100644 --- a/topi/include/topi/detail/array_utils.h +++ b/topi/include/topi/detail/array_utils.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,14 +18,13 @@ */ /*! -* Copyright (c) 2017 by Contributors -* \file array_utils.h -* \brief Utility functions for handling arrays -*/ + * \file array_utils.h + * \brief Utility functions for handling arrays + */ #ifndef TOPI_DETAIL_ARRAY_UTILS_H_ #define TOPI_DETAIL_ARRAY_UTILS_H_ -#include "tvm/tvm.h" +#include "tvm/operation.h" namespace topi { namespace detail { diff --git a/topi/include/topi/detail/broadcast.h b/topi/include/topi/detail/broadcast.h index 0e05ef38b355..b5120ee10425 100644 --- a/topi/include/topi/detail/broadcast.h +++ b/topi/include/topi/detail/broadcast.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -30,7 +30,8 @@ #include #include "tvm/ir_pass.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" +#include "tvm/expr_operator.h" #include "topi/detail/constant_utils.h" namespace topi { diff --git a/topi/include/topi/detail/constant_utils.h b/topi/include/topi/detail/constant_utils.h index b04a03fcf544..d68c308c88ae 100644 --- a/topi/include/topi/detail/constant_utils.h +++ b/topi/include/topi/detail/constant_utils.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -28,7 +28,7 @@ #include #include -#include "tvm/tvm.h" +#include "tvm/expr.h" #include "tvm/ir_pass.h" namespace topi { diff --git a/topi/include/topi/detail/extern.h b/topi/include/topi/detail/extern.h index 667722e465c4..6bf2e9c9b973 100644 --- a/topi/include/topi/detail/extern.h +++ b/topi/include/topi/detail/extern.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,14 +18,13 @@ */ /*! -* Copyright (c) 2017 by Contributors -* \file detail/extern.h -* \brief Helpers for using external functions -*/ + * \file detail/extern.h + * \brief Helpers for using external functions + */ #ifndef TOPI_DETAIL_EXTERN_H_ #define TOPI_DETAIL_EXTERN_H_ -#include +#include #include #include diff --git a/topi/include/topi/detail/fuse.h b/topi/include/topi/detail/fuse.h index 23df2b7f829b..d573a3fcb18a 100644 --- a/topi/include/topi/detail/fuse.h +++ b/topi/include/topi/detail/fuse.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,14 +18,13 @@ */ /*! -* Copyright (c) 2017 by Contributors -* \file fuse.h -* \brief Fuse operation -*/ + * \file fuse.h + * \brief Fuse operation + */ #ifndef TOPI_DETAIL_FUSE_H_ #define TOPI_DETAIL_FUSE_H_ -#include "tvm/tvm.h" +#include "tvm/operation.h" namespace topi { namespace detail { diff --git a/topi/include/topi/detail/pad_utils.h b/topi/include/topi/detail/pad_utils.h index d30dd94b5e2e..b95915c65e29 100644 --- a/topi/include/topi/detail/pad_utils.h +++ b/topi/include/topi/detail/pad_utils.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -27,7 +27,8 @@ #include -#include "tvm/tvm.h" +#include "tvm/expr.h" +#include "tvm/expr_operator.h" namespace topi { namespace detail { diff --git a/topi/include/topi/detail/ravel_unravel.h b/topi/include/topi/detail/ravel_unravel.h index b51ff9365230..658ed359c5f3 100644 --- a/topi/include/topi/detail/ravel_unravel.h +++ b/topi/include/topi/detail/ravel_unravel.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -27,7 +27,8 @@ #include -#include "tvm/tvm.h" +#include "tvm/operation.h" +#include "tvm/expr_operator.h" namespace topi { namespace detail { diff --git a/topi/include/topi/elemwise.h b/topi/include/topi/elemwise.h index b3681e17da8d..b6e6adad0715 100644 --- a/topi/include/topi/elemwise.h +++ b/topi/include/topi/elemwise.h @@ -28,7 +28,6 @@ #include #include "topi/tags.h" -#include "tvm/tvm.h" #include "tvm/ir.h" #include "tvm/ir_pass.h" #include "broadcast.h" diff --git a/topi/include/topi/generic/default.h b/topi/include/topi/generic/default.h index 091e8a9b8325..9dff8d53d6af 100644 --- a/topi/include/topi/generic/default.h +++ b/topi/include/topi/generic/default.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,16 +18,15 @@ */ /*! -* Copyright (c) 2017 by Contributors -* \file generic/default.h -* \brief Generic default schedule -*/ + * \file generic/default.h + * \brief Generic default schedule + */ #ifndef TOPI_GENERIC_DEFAULT_H_ #define TOPI_GENERIC_DEFAULT_H_ #include "topi/tags.h" #include "topi/detail/fuse.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "tvm/build_module.h" namespace topi { diff --git a/topi/include/topi/generic/extern.h b/topi/include/topi/generic/extern.h index 0a84327e26ad..6c51d7c7b2d5 100644 --- a/topi/include/topi/generic/extern.h +++ b/topi/include/topi/generic/extern.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,16 +18,15 @@ */ /*! -* Copyright (c) 2017 by Contributors -* \file generic/extern.h -* \brief Schedule for extern followed by injective ops -*/ + * \file generic/extern.h + * \brief Schedule for extern followed by injective ops + */ #ifndef TOPI_GENERIC_EXTERN_H_ #define TOPI_GENERIC_EXTERN_H_ #include "topi/tags.h" #include "topi/detail/fuse.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "tvm/build_module.h" namespace topi { diff --git a/topi/include/topi/generic/injective.h b/topi/include/topi/generic/injective.h index 5c42b0518920..f26651c2ddb7 100644 --- a/topi/include/topi/generic/injective.h +++ b/topi/include/topi/generic/injective.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,16 +18,15 @@ */ /*! -* Copyright (c) 2017 by Contributors -* \file generic/injective.h -* \brief Generic schedule for injective operations -*/ + * \file generic/injective.h + * \brief Generic schedule for injective operations + */ #ifndef TOPI_GENERIC_INJECTIVE_H_ #define TOPI_GENERIC_INJECTIVE_H_ #include "topi/tags.h" #include "topi/detail/fuse.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "tvm/build_module.h" namespace topi { diff --git a/topi/include/topi/image/resize.h b/topi/include/topi/image/resize.h index 0119aed3aff0..372a9e17a2c3 100644 --- a/topi/include/topi/image/resize.h +++ b/topi/include/topi/image/resize.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -34,7 +34,8 @@ #include "topi/elemwise.h" #include "topi/detail/ravel_unravel.h" #include "topi/detail/constant_utils.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" +#include "tvm/expr_operator.h" namespace topi { namespace image { diff --git a/topi/include/topi/nn.h b/topi/include/topi/nn.h index dbeed4ac9436..bffe63d780e4 100644 --- a/topi/include/topi/nn.h +++ b/topi/include/topi/nn.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -32,7 +32,8 @@ #include "topi/detail/constant_utils.h" #include "tvm/ir.h" #include "tvm/ir_pass.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" +#include "tvm/expr_operator.h" namespace topi { using namespace tvm; diff --git a/topi/include/topi/nn/batch_matmul.h b/topi/include/topi/nn/batch_matmul.h index 61525fc2a9fe..84b977f41947 100644 --- a/topi/include/topi/nn/batch_matmul.h +++ b/topi/include/topi/nn/batch_matmul.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -28,7 +28,7 @@ #include #include "topi/tags.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" namespace topi { namespace nn { diff --git a/topi/include/topi/nn/bias_add.h b/topi/include/topi/nn/bias_add.h index 2a7afd8b6714..f600dee3028d 100644 --- a/topi/include/topi/nn/bias_add.h +++ b/topi/include/topi/nn/bias_add.h @@ -30,7 +30,8 @@ #include "topi/tags.h" #include "topi/broadcast.h" #include "topi/transform.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" +#include "tvm/expr_operator.h" namespace topi { namespace nn { diff --git a/topi/include/topi/nn/bnn.h b/topi/include/topi/nn/bnn.h index f6d331be73e4..ec34a7eb1fdd 100644 --- a/topi/include/topi/nn/bnn.h +++ b/topi/include/topi/nn/bnn.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,7 +18,6 @@ */ /*! - * Copyright (c) 2017 by Contributors * \brief Binary op constructions * \file nn/bnn.h */ @@ -27,7 +26,7 @@ #include -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "tvm/ir_pass.h" #include "topi/tags.h" #include "topi/detail/constant_utils.h" diff --git a/topi/include/topi/nn/dense.h b/topi/include/topi/nn/dense.h index d4a8b8963b6e..cbcc8a219a26 100644 --- a/topi/include/topi/nn/dense.h +++ b/topi/include/topi/nn/dense.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -28,7 +28,7 @@ #include #include "topi/tags.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" namespace topi { namespace nn { diff --git a/topi/include/topi/nn/dilate.h b/topi/include/topi/nn/dilate.h index 4c4dbd7b50ff..d9287cd05ccd 100644 --- a/topi/include/topi/nn/dilate.h +++ b/topi/include/topi/nn/dilate.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -27,7 +27,7 @@ #include -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "tvm/ir_pass.h" #include "topi/tags.h" diff --git a/topi/include/topi/nn/flatten.h b/topi/include/topi/nn/flatten.h index edba7eec37e1..3744765e9af6 100644 --- a/topi/include/topi/nn/flatten.h +++ b/topi/include/topi/nn/flatten.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -30,7 +30,9 @@ #include "topi/tags.h" #include "topi/detail/constant_utils.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" +#include "tvm/expr_operator.h" + namespace topi { namespace nn { diff --git a/topi/include/topi/nn/l2_normalize.h b/topi/include/topi/nn/l2_normalize.h index 1078370baada..3f603594c5a9 100644 --- a/topi/include/topi/nn/l2_normalize.h +++ b/topi/include/topi/nn/l2_normalize.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,7 +18,6 @@ */ /*! - * Copyright (c) 2018 by Contributors * \brief l2 normalization op constructions * \file nn/l2_normalize.h */ @@ -28,7 +27,7 @@ #include #include #include "topi/tags.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" namespace topi { namespace nn { using namespace tvm; diff --git a/topi/include/topi/nn/local_response_norm.h b/topi/include/topi/nn/local_response_norm.h index a0d3d1ed8391..9dc409acf787 100644 --- a/topi/include/topi/nn/local_response_norm.h +++ b/topi/include/topi/nn/local_response_norm.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,7 +18,6 @@ */ /*! - * Copyright (c) 2018 by Contributors * \brief local response normalization op constructions * \file nn/local_response_norm.h */ @@ -28,7 +27,7 @@ #include #include "topi/tags.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" namespace topi { namespace nn { diff --git a/topi/include/topi/nn/mapping.h b/topi/include/topi/nn/mapping.h index 15b13b18d5aa..03043ff9fe19 100644 --- a/topi/include/topi/nn/mapping.h +++ b/topi/include/topi/nn/mapping.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,7 +18,6 @@ */ /*! - * Copyright (c) 2017 by Contributors * \brief Mapping op constructions * \file nn/mapping.h */ @@ -28,7 +27,7 @@ #include #include "topi/tags.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" namespace topi { namespace nn { diff --git a/topi/include/topi/nn/pooling.h b/topi/include/topi/nn/pooling.h index 08cc93572e1a..502c3a5b62fe 100644 --- a/topi/include/topi/nn/pooling.h +++ b/topi/include/topi/nn/pooling.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -28,7 +28,6 @@ #include #include -#include "tvm/tvm.h" #include "tvm/ir_pass.h" #include "topi/tags.h" #include "topi/detail/pad_utils.h" diff --git a/topi/include/topi/nn/softmax.h b/topi/include/topi/nn/softmax.h index 9f0b7a2837d9..a9ad1d7d6ef3 100644 --- a/topi/include/topi/nn/softmax.h +++ b/topi/include/topi/nn/softmax.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -30,7 +30,8 @@ #include "topi/reduction.h" #include "topi/tags.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" +#include "tvm/expr_operator.h" namespace topi { namespace nn { diff --git a/topi/include/topi/reduction.h b/topi/include/topi/reduction.h index 09d1b4b1b33e..2da10c9b96aa 100644 --- a/topi/include/topi/reduction.h +++ b/topi/include/topi/reduction.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -36,7 +36,8 @@ #include "topi/transform.h" #include "topi/detail/ravel_unravel.h" #include "topi/detail/constant_utils.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" +#include "tvm/expr_operator.h" namespace topi { diff --git a/topi/include/topi/rocm/dense.h b/topi/include/topi/rocm/dense.h index 58badfab446b..ef93aef26252 100644 --- a/topi/include/topi/rocm/dense.h +++ b/topi/include/topi/rocm/dense.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,14 +18,13 @@ */ /*! -* Copyright (c) 2017 by Contributors -* \file rocm/dense.h -* \brief rocm schedule for dense operation -*/ + * \file rocm/dense.h + * \brief rocm schedule for dense operation + */ #ifndef TOPI_ROCM_DENSE_H_ #define TOPI_ROCM_DENSE_H_ -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "tvm/build_module.h" #include "topi/tags.h" #include "topi/detail/array_utils.h" @@ -100,4 +99,3 @@ inline Schedule schedule_dense(const Target &target, const Array& outs) } // namespace rocm } // namespace topi #endif // TOPI_ROCM_DENSE_H_ - diff --git a/topi/include/topi/rocm/normalization.h b/topi/include/topi/rocm/normalization.h index e1c989914b17..c6ffd328528a 100644 --- a/topi/include/topi/rocm/normalization.h +++ b/topi/include/topi/rocm/normalization.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,14 +18,13 @@ */ /*! -* Copyright (c) 2018 by Contributors -* \file rocm/normalization.h -* \brief rocm schedule for LRN and l2 normalization operations -*/ + * \file rocm/normalization.h + * \brief rocm schedule for LRN and l2 normalization operations + */ #ifndef TOPI_ROCM_NORMALIZATION_H_ #define TOPI_ROCM_NORMALIZATION_H_ -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "tvm/build_module.h" #include "topi/tags.h" diff --git a/topi/include/topi/transform.h b/topi/include/topi/transform.h index a7314a7ec9bd..9ea5e1e08c1f 100644 --- a/topi/include/topi/transform.h +++ b/topi/include/topi/transform.h @@ -35,7 +35,8 @@ #include "topi/tags.h" #include "topi/detail/ravel_unravel.h" #include "topi/detail/constant_utils.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" +#include "tvm/expr_operator.h" #include "tvm/data_layout.h" namespace topi { diff --git a/topi/include/topi/vision/reorg.h b/topi/include/topi/vision/reorg.h index c1f410fb9bcc..cdfa4ccbbd66 100644 --- a/topi/include/topi/vision/reorg.h +++ b/topi/include/topi/vision/reorg.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -32,7 +32,8 @@ #include "topi/reduction.h" #include "topi/tags.h" #include "topi/transform.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" +#include "tvm/expr_operator.h" namespace topi { namespace vision { diff --git a/topi/include/topi/x86/bnn.h b/topi/include/topi/x86/bnn.h index e21a322f5e63..1158749520c5 100644 --- a/topi/include/topi/x86/bnn.h +++ b/topi/include/topi/x86/bnn.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,16 +18,15 @@ */ /*! -* Copyright (c) 2017 by Contributors -* \file x86/bnn.h -* \brief x86 schedule for binary operations -*/ + * \file x86/bnn.h + * \brief x86 schedule for binary operations + */ #ifndef TOPI_X86_BNN_H_ #define TOPI_X86_BNN_H_ #include "topi/tags.h" #include "topi/detail/fuse.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "tvm/build_module.h" namespace topi { diff --git a/topi/include/topi/x86/default.h b/topi/include/topi/x86/default.h index 6f47b3937da4..294871b535df 100644 --- a/topi/include/topi/x86/default.h +++ b/topi/include/topi/x86/default.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,16 +18,15 @@ */ /*! -* Copyright (c) 2017 by Contributors -* \file x86/default.h -* \brief default x86 schedule -*/ + * \file x86/default.h + * \brief default x86 schedule + */ #ifndef TOPI_X86_DEFAULT_H_ #define TOPI_X86_DEFAULT_H_ #include "topi/tags.h" #include "topi/detail/fuse.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "tvm/build_module.h" namespace topi { diff --git a/topi/include/topi/x86/injective.h b/topi/include/topi/x86/injective.h index e80c941788f8..adbe382495b8 100644 --- a/topi/include/topi/x86/injective.h +++ b/topi/include/topi/x86/injective.h @@ -6,9 +6,9 @@ * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY @@ -18,16 +18,15 @@ */ /*! -* Copyright (c) 2017 by Contributors -* \file x86/injective.h -* \brief x86 schedule for injective ops -*/ + * \file x86/injective.h + * \brief x86 schedule for injective ops + */ #ifndef TOPI_X86_INJECTIVE_H_ #define TOPI_X86_INJECTIVE_H_ #include "topi/tags.h" #include "topi/detail/fuse.h" -#include "tvm/tvm.h" +#include "tvm/operation.h" #include "tvm/build_module.h" namespace topi {