Commit 025a6c80 by Tianqi Chen Committed by Jared Roesch

[CPP] Refactor remove tvm/tvm.h (#3523)

parent db841c24
/*
* 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_
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <nnvm/layout.h> #include <nnvm/layout.h>
#include <nnvm/compiler/op_attr_types.h> #include <nnvm/compiler/op_attr_types.h>
#include <nnvm/pass_functions.h> #include <nnvm/pass_functions.h>
#include <tvm/tvm.h> #include <tvm/operation.h>
#include <algorithm> #include <algorithm>
#include <functional> #include <functional>
#include "compile_engine.h" #include "compile_engine.h"
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
* \file resize.cc * \file resize.cc
* \brief Property def of resize operators. * \brief Property def of resize operators.
*/ */
#include <tvm/tvm.h> #include <tvm/operation.h>
#include <tvm/expr.h> #include <tvm/expr.h>
#include <tvm/packed_func_ext.h> #include <tvm/packed_func_ext.h>
#include <nnvm/layout.h> #include <nnvm/layout.h>
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include <tvm/tensor.h> #include <tvm/tensor.h>
#include <tvm/packed_func_ext.h> #include <tvm/packed_func_ext.h>
#include <nnvm/compiler/op_attr_types.h> #include <nnvm/compiler/op_attr_types.h>
#include <tvm/tvm.h> #include <tvm/operation.h>
#include "nn_common.h" #include "nn_common.h"
#include "../op_common.h" #include "../op_common.h"
#include "../elemwise_op_common.h" #include "../elemwise_op_common.h"
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
* \file nn.cc * \file nn.cc
* \brief Property def of nn operators. * \brief Property def of nn operators.
*/ */
#include <tvm/tvm.h> #include <tvm/operation.h>
#include <tvm/expr.h> #include <tvm/expr.h>
#include <tvm/packed_func_ext.h> #include <tvm/packed_func_ext.h>
#include <nnvm/op.h> #include <nnvm/op.h>
......
...@@ -18,11 +18,10 @@ ...@@ -18,11 +18,10 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors
* \file upsampling.cc * \file upsampling.cc
* \brief Property def of upsampling operators. * \brief Property def of upsampling operators.
*/ */
#include <tvm/tvm.h> #include <tvm/operation.h>
#include <tvm/expr.h> #include <tvm/expr.h>
#include <nnvm/layout.h> #include <nnvm/layout.h>
#include <nnvm/compiler/op_attr_types.h> #include <nnvm/compiler/op_attr_types.h>
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include <dmlc/json.h> #include <dmlc/json.h>
#include <tvm/relay/expr.h> #include <tvm/relay/expr.h>
#include <tvm/relay/type.h> #include <tvm/relay/type.h>
#include <tvm/tvm.h>
#include <tvm/build_module.h> #include <tvm/build_module.h>
#include <tvm/codegen.h> #include <tvm/codegen.h>
#include <tvm/ir_pass.h> #include <tvm/ir_pass.h>
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <tvm/relay/op_attr_types.h> #include <tvm/relay/op_attr_types.h>
#include <tvm/relay/attrs/transform.h> #include <tvm/relay/attrs/transform.h>
#include <tvm/relay/transform.h> #include <tvm/relay/transform.h>
#include <tvm/tvm.h> #include <tvm/operation.h>
#include <tuple> #include <tuple>
#include <vector> #include <vector>
#include <functional> #include <functional>
......
...@@ -20,8 +20,8 @@ ...@@ -20,8 +20,8 @@
#include <dmlc/logging.h> #include <dmlc/logging.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <topi/cuda/injective.h> #include <topi/cuda/injective.h>
#include <tvm/tvm.h>
#include <tvm/operation.h> #include <tvm/operation.h>
#include <tvm/packed_func_ext.h>
#include <tvm/build_module.h> #include <tvm/build_module.h>
#include <string> #include <string>
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <dmlc/logging.h> #include <dmlc/logging.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <tvm/tvm.h> #include <tvm/packed_func_ext.h>
TEST(Array, Expr) { TEST(Array, Expr) {
using namespace tvm; using namespace tvm;
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <dmlc/logging.h> #include <dmlc/logging.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <tvm/tvm.h> #include <tvm/operation.h>
TEST(Expr, Basic) { TEST(Expr, Basic) {
using namespace tvm; using namespace tvm;
......
...@@ -19,7 +19,8 @@ ...@@ -19,7 +19,8 @@
#include <dmlc/logging.h> #include <dmlc/logging.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <tvm/tvm.h> #include <tvm/ir.h>
#include <tvm/expr_operator.h>
#include <tvm/node/ir_functor.h> #include <tvm/node/ir_functor.h>
#include <tvm/ir_functor_ext.h> #include <tvm/ir_functor_ext.h>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <dmlc/logging.h> #include <dmlc/logging.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <tvm/ir_pass.h> #include <tvm/ir_pass.h>
#include <tvm/tvm.h> #include <tvm/operation.h>
TEST(IRSIMPLIFY, MinMax) { TEST(IRSIMPLIFY, MinMax) {
auto x = tvm::var("x"); auto x = tvm::var("x");
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <dmlc/logging.h> #include <dmlc/logging.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <tvm/tvm.h>
#include <tvm/ir_pass.h> #include <tvm/ir_pass.h>
......
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
#include <dmlc/logging.h> #include <dmlc/logging.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <tvm/tvm.h>
#include <tvm/ir_visitor.h> #include <tvm/ir_visitor.h>
#include <tvm/ir_pass.h> #include <tvm/ir_pass.h>
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
#include <dmlc/logging.h> #include <dmlc/logging.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <tvm/runtime/packed_func.h> #include <tvm/runtime/packed_func.h>
#include <tvm/tvm.h> #include <tvm/packed_func_ext.h>
#include <tvm/ir.h> #include <tvm/ir.h>
TEST(PackedFunc, Basic) { TEST(PackedFunc, Basic) {
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <tvm/build_module.h> #include <tvm/build_module.h>
#include <tvm/tvm.h> #include <tvm/operation.h>
#include <tvm/relay/expr.h> #include <tvm/relay/expr.h>
#include <tvm/relay/type.h> #include <tvm/relay/type.h>
#include <tvm/relay/analysis.h> #include <tvm/relay/analysis.h>
......
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
*/ */
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <tvm/tvm.h> #include <tvm/operation.h>
#include <tvm/relay/expr.h> #include <tvm/relay/expr.h>
#include <tvm/relay/type.h> #include <tvm/relay/type.h>
#include <tvm/relay/analysis.h> #include <tvm/relay/analysis.h>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <tvm/relay/type.h> #include <tvm/relay/type.h>
#include <tvm/runtime/packed_func.h> #include <tvm/runtime/packed_func.h>
#include <tvm/runtime/registry.h> #include <tvm/runtime/registry.h>
#include <tvm/tvm.h> #include <tvm/operation.h>
TVM_REGISTER_GLOBAL("schedule") TVM_REGISTER_GLOBAL("schedule")
.set_body([](tvm::TVMArgs args, tvm::TVMRetValue* rv) { .set_body([](tvm::TVMArgs args, tvm::TVMRetValue* rv) {
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
#include <dmlc/logging.h> #include <dmlc/logging.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <tvm/tvm.h>
#include <tvm/ir_pass.h> #include <tvm/ir_pass.h>
#include <tvm/operation.h>
TEST(SimplePasses, HasSideEffect) { TEST(SimplePasses, HasSideEffect) {
using namespace tvm; using namespace tvm;
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
#include <dmlc/logging.h> #include <dmlc/logging.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include <tvm/tvm.h> #include <tvm/operation.h>
TEST(Tensor, Basic) { TEST(Tensor, Basic) {
using namespace tvm; using namespace tvm;
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
* under the License. * under the License.
*/ */
#include <tvm/tvm.h> #include <tvm/operation.h>
#include <topi/elemwise.h> #include <topi/elemwise.h>
#include <gtest/gtest.h> #include <gtest/gtest.h>
......
...@@ -18,14 +18,13 @@ ...@@ -18,14 +18,13 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors
* \brief External function interface to cuBLAS libraries * \brief External function interface to cuBLAS libraries
* \file tags.h * \file cublas.h
*/ */
#ifndef TOPI_CONTRIB_CUBLAS_H_ #ifndef TOPI_CONTRIB_CUBLAS_H_
#define TOPI_CONTRIB_CUBLAS_H_ #define TOPI_CONTRIB_CUBLAS_H_
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "topi/detail/extern.h" #include "topi/detail/extern.h"
namespace topi { namespace topi {
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
#ifndef TOPI_CONTRIB_ROCBLAS_H_ #ifndef TOPI_CONTRIB_ROCBLAS_H_
#define TOPI_CONTRIB_ROCBLAS_H_ #define TOPI_CONTRIB_ROCBLAS_H_
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "topi/detail/extern.h" #include "topi/detail/extern.h"
namespace topi { namespace topi {
......
...@@ -18,14 +18,13 @@ ...@@ -18,14 +18,13 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors * \file cuda/dense.h
* \file cuda/dense.h * \brief CUDA schedule for dense operation
* \brief CUDA schedule for dense operation */
*/
#ifndef TOPI_CUDA_DENSE_H_ #ifndef TOPI_CUDA_DENSE_H_
#define TOPI_CUDA_DENSE_H_ #define TOPI_CUDA_DENSE_H_
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/build_module.h" #include "tvm/build_module.h"
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/detail/array_utils.h" #include "topi/detail/array_utils.h"
...@@ -152,4 +151,3 @@ inline Schedule schedule_dense(const Target &target, const Array<Tensor>& outs) ...@@ -152,4 +151,3 @@ inline Schedule schedule_dense(const Target &target, const Array<Tensor>& outs)
} // namespace cuda } // namespace cuda
} // namespace topi } // namespace topi
#endif // TOPI_CUDA_DENSE_H_ #endif // TOPI_CUDA_DENSE_H_
...@@ -18,16 +18,15 @@ ...@@ -18,16 +18,15 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors * \file cuda/extern.h
* \file cuda/extern.h * \brief CUDA schedule for extern followed by injective operations
* \brief CUDA schedule for extern followed by injective operations */
*/
#ifndef TOPI_CUDA_EXTERN_H_ #ifndef TOPI_CUDA_EXTERN_H_
#define TOPI_CUDA_EXTERN_H_ #define TOPI_CUDA_EXTERN_H_
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/detail/fuse.h" #include "topi/detail/fuse.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/build_module.h" #include "tvm/build_module.h"
namespace topi { namespace topi {
......
...@@ -18,16 +18,15 @@ ...@@ -18,16 +18,15 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors * \file cuda/injective.h
* \file cuda/injective.h * \brief CUDA schedule for injective operations
* \brief CUDA schedule for injective operations */
*/
#ifndef TOPI_CUDA_INJECTIVE_H_ #ifndef TOPI_CUDA_INJECTIVE_H_
#define TOPI_CUDA_INJECTIVE_H_ #define TOPI_CUDA_INJECTIVE_H_
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/detail/fuse.h" #include "topi/detail/fuse.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/build_module.h" #include "tvm/build_module.h"
namespace topi { namespace topi {
......
...@@ -18,14 +18,13 @@ ...@@ -18,14 +18,13 @@
*/ */
/*! /*!
* Copyright (c) 2018 by Contributors * \file cuda/normalization.h
* \file cuda/normalization.h * \brief CUDA schedule for LRN and l2 normalization operations
* \brief CUDA schedule for LRN and l2 normalization operations */
*/
#ifndef TOPI_CUDA_NORMALIZATION_H_ #ifndef TOPI_CUDA_NORMALIZATION_H_
#define TOPI_CUDA_NORMALIZATION_H_ #define TOPI_CUDA_NORMALIZATION_H_
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/build_module.h" #include "tvm/build_module.h"
#include "topi/tags.h" #include "topi/tags.h"
...@@ -122,4 +121,3 @@ inline Schedule schedule_l2_normalize(const Target &target, const Array<Tensor>& ...@@ -122,4 +121,3 @@ inline Schedule schedule_l2_normalize(const Target &target, const Array<Tensor>&
} // namespace cuda } // namespace cuda
} // namespace topi } // namespace topi
#endif // TOPI_CUDA_NORMALIZATION_H_ #endif // TOPI_CUDA_NORMALIZATION_H_
...@@ -18,17 +18,16 @@ ...@@ -18,17 +18,16 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors * \file cuda/pooling.h
* \file cuda/pooling.h * \brief CUDA schedule for pooling operations
* \brief CUDA schedule for pooling operations */
*/
#ifndef TOPI_CUDA_POOLING_H_ #ifndef TOPI_CUDA_POOLING_H_
#define TOPI_CUDA_POOLING_H_ #define TOPI_CUDA_POOLING_H_
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/detail/fuse.h" #include "topi/detail/fuse.h"
#include "topi/detail/array_utils.h" #include "topi/detail/array_utils.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/build_module.h" #include "tvm/build_module.h"
namespace topi { namespace topi {
......
...@@ -18,16 +18,15 @@ ...@@ -18,16 +18,15 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors * \file cuda/reduction.h
* \file cuda/reduction.h * \brief CUDA schedule for reduction operations
* \brief CUDA schedule for reduction operations */
*/
#ifndef TOPI_CUDA_REDUCTION_H_ #ifndef TOPI_CUDA_REDUCTION_H_
#define TOPI_CUDA_REDUCTION_H_ #define TOPI_CUDA_REDUCTION_H_
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/detail/fuse.h" #include "topi/detail/fuse.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/build_module.h" #include "tvm/build_module.h"
namespace topi { namespace topi {
......
...@@ -18,16 +18,15 @@ ...@@ -18,16 +18,15 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors * \file cuda/injective.h
* \file cuda/injective.h * \brief CUDA schedule for injective operations
* \brief CUDA schedule for injective operations */
*/
#ifndef TOPI_CUDA_SOFTMAX_H_ #ifndef TOPI_CUDA_SOFTMAX_H_
#define TOPI_CUDA_SOFTMAX_H_ #define TOPI_CUDA_SOFTMAX_H_
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/detail/fuse.h" #include "topi/detail/fuse.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/build_module.h" #include "tvm/build_module.h"
namespace topi { namespace topi {
......
...@@ -18,14 +18,13 @@ ...@@ -18,14 +18,13 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors * \file array_utils.h
* \file array_utils.h * \brief Utility functions for handling arrays
* \brief Utility functions for handling arrays */
*/
#ifndef TOPI_DETAIL_ARRAY_UTILS_H_ #ifndef TOPI_DETAIL_ARRAY_UTILS_H_
#define TOPI_DETAIL_ARRAY_UTILS_H_ #define TOPI_DETAIL_ARRAY_UTILS_H_
#include "tvm/tvm.h" #include "tvm/operation.h"
namespace topi { namespace topi {
namespace detail { namespace detail {
......
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
#include <string> #include <string>
#include "tvm/ir_pass.h" #include "tvm/ir_pass.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/expr_operator.h"
#include "topi/detail/constant_utils.h" #include "topi/detail/constant_utils.h"
namespace topi { namespace topi {
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "tvm/tvm.h" #include "tvm/expr.h"
#include "tvm/ir_pass.h" #include "tvm/ir_pass.h"
namespace topi { namespace topi {
......
...@@ -18,14 +18,13 @@ ...@@ -18,14 +18,13 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors * \file detail/extern.h
* \file detail/extern.h * \brief Helpers for using external functions
* \brief Helpers for using external functions */
*/
#ifndef TOPI_DETAIL_EXTERN_H_ #ifndef TOPI_DETAIL_EXTERN_H_
#define TOPI_DETAIL_EXTERN_H_ #define TOPI_DETAIL_EXTERN_H_
#include <tvm/tvm.h> #include <tvm/operation.h>
#include <vector> #include <vector>
#include <string> #include <string>
......
...@@ -18,14 +18,13 @@ ...@@ -18,14 +18,13 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors * \file fuse.h
* \file fuse.h * \brief Fuse operation
* \brief Fuse operation */
*/
#ifndef TOPI_DETAIL_FUSE_H_ #ifndef TOPI_DETAIL_FUSE_H_
#define TOPI_DETAIL_FUSE_H_ #define TOPI_DETAIL_FUSE_H_
#include "tvm/tvm.h" #include "tvm/operation.h"
namespace topi { namespace topi {
namespace detail { namespace detail {
......
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
#include <vector> #include <vector>
#include "tvm/tvm.h" #include "tvm/expr.h"
#include "tvm/expr_operator.h"
namespace topi { namespace topi {
namespace detail { namespace detail {
......
...@@ -27,7 +27,8 @@ ...@@ -27,7 +27,8 @@
#include <vector> #include <vector>
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/expr_operator.h"
namespace topi { namespace topi {
namespace detail { namespace detail {
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include <string> #include <string>
#include "topi/tags.h" #include "topi/tags.h"
#include "tvm/tvm.h"
#include "tvm/ir.h" #include "tvm/ir.h"
#include "tvm/ir_pass.h" #include "tvm/ir_pass.h"
#include "broadcast.h" #include "broadcast.h"
......
...@@ -18,16 +18,15 @@ ...@@ -18,16 +18,15 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors * \file generic/default.h
* \file generic/default.h * \brief Generic default schedule
* \brief Generic default schedule */
*/
#ifndef TOPI_GENERIC_DEFAULT_H_ #ifndef TOPI_GENERIC_DEFAULT_H_
#define TOPI_GENERIC_DEFAULT_H_ #define TOPI_GENERIC_DEFAULT_H_
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/detail/fuse.h" #include "topi/detail/fuse.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/build_module.h" #include "tvm/build_module.h"
namespace topi { namespace topi {
......
...@@ -18,16 +18,15 @@ ...@@ -18,16 +18,15 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors * \file generic/extern.h
* \file generic/extern.h * \brief Schedule for extern followed by injective ops
* \brief Schedule for extern followed by injective ops */
*/
#ifndef TOPI_GENERIC_EXTERN_H_ #ifndef TOPI_GENERIC_EXTERN_H_
#define TOPI_GENERIC_EXTERN_H_ #define TOPI_GENERIC_EXTERN_H_
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/detail/fuse.h" #include "topi/detail/fuse.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/build_module.h" #include "tvm/build_module.h"
namespace topi { namespace topi {
......
...@@ -18,16 +18,15 @@ ...@@ -18,16 +18,15 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors * \file generic/injective.h
* \file generic/injective.h * \brief Generic schedule for injective operations
* \brief Generic schedule for injective operations */
*/
#ifndef TOPI_GENERIC_INJECTIVE_H_ #ifndef TOPI_GENERIC_INJECTIVE_H_
#define TOPI_GENERIC_INJECTIVE_H_ #define TOPI_GENERIC_INJECTIVE_H_
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/detail/fuse.h" #include "topi/detail/fuse.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/build_module.h" #include "tvm/build_module.h"
namespace topi { namespace topi {
......
...@@ -34,7 +34,8 @@ ...@@ -34,7 +34,8 @@
#include "topi/elemwise.h" #include "topi/elemwise.h"
#include "topi/detail/ravel_unravel.h" #include "topi/detail/ravel_unravel.h"
#include "topi/detail/constant_utils.h" #include "topi/detail/constant_utils.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/expr_operator.h"
namespace topi { namespace topi {
namespace image { namespace image {
......
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
#include "topi/detail/constant_utils.h" #include "topi/detail/constant_utils.h"
#include "tvm/ir.h" #include "tvm/ir.h"
#include "tvm/ir_pass.h" #include "tvm/ir_pass.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/expr_operator.h"
namespace topi { namespace topi {
using namespace tvm; using namespace tvm;
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <string> #include <string>
#include "topi/tags.h" #include "topi/tags.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
namespace topi { namespace topi {
namespace nn { namespace nn {
......
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/broadcast.h" #include "topi/broadcast.h"
#include "topi/transform.h" #include "topi/transform.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/expr_operator.h"
namespace topi { namespace topi {
namespace nn { namespace nn {
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors
* \brief Binary op constructions * \brief Binary op constructions
* \file nn/bnn.h * \file nn/bnn.h
*/ */
...@@ -27,7 +26,7 @@ ...@@ -27,7 +26,7 @@
#include <string> #include <string>
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/ir_pass.h" #include "tvm/ir_pass.h"
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/detail/constant_utils.h" #include "topi/detail/constant_utils.h"
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <string> #include <string>
#include "topi/tags.h" #include "topi/tags.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
namespace topi { namespace topi {
namespace nn { namespace nn {
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#include <string> #include <string>
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/ir_pass.h" #include "tvm/ir_pass.h"
#include "topi/tags.h" #include "topi/tags.h"
......
...@@ -30,7 +30,9 @@ ...@@ -30,7 +30,9 @@
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/detail/constant_utils.h" #include "topi/detail/constant_utils.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/expr_operator.h"
namespace topi { namespace topi {
namespace nn { namespace nn {
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
*/ */
/*! /*!
* Copyright (c) 2018 by Contributors
* \brief l2 normalization op constructions * \brief l2 normalization op constructions
* \file nn/l2_normalize.h * \file nn/l2_normalize.h
*/ */
...@@ -28,7 +27,7 @@ ...@@ -28,7 +27,7 @@
#include <string> #include <string>
#include <algorithm> #include <algorithm>
#include "topi/tags.h" #include "topi/tags.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
namespace topi { namespace topi {
namespace nn { namespace nn {
using namespace tvm; using namespace tvm;
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
*/ */
/*! /*!
* Copyright (c) 2018 by Contributors
* \brief local response normalization op constructions * \brief local response normalization op constructions
* \file nn/local_response_norm.h * \file nn/local_response_norm.h
*/ */
...@@ -28,7 +27,7 @@ ...@@ -28,7 +27,7 @@
#include <string> #include <string>
#include "topi/tags.h" #include "topi/tags.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
namespace topi { namespace topi {
namespace nn { namespace nn {
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors
* \brief Mapping op constructions * \brief Mapping op constructions
* \file nn/mapping.h * \file nn/mapping.h
*/ */
...@@ -28,7 +27,7 @@ ...@@ -28,7 +27,7 @@
#include <string> #include <string>
#include "topi/tags.h" #include "topi/tags.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
namespace topi { namespace topi {
namespace nn { namespace nn {
......
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "tvm/tvm.h"
#include "tvm/ir_pass.h" #include "tvm/ir_pass.h"
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/detail/pad_utils.h" #include "topi/detail/pad_utils.h"
......
...@@ -30,7 +30,8 @@ ...@@ -30,7 +30,8 @@
#include "topi/reduction.h" #include "topi/reduction.h"
#include "topi/tags.h" #include "topi/tags.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/expr_operator.h"
namespace topi { namespace topi {
namespace nn { namespace nn {
......
...@@ -36,7 +36,8 @@ ...@@ -36,7 +36,8 @@
#include "topi/transform.h" #include "topi/transform.h"
#include "topi/detail/ravel_unravel.h" #include "topi/detail/ravel_unravel.h"
#include "topi/detail/constant_utils.h" #include "topi/detail/constant_utils.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/expr_operator.h"
namespace topi { namespace topi {
......
...@@ -18,14 +18,13 @@ ...@@ -18,14 +18,13 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors * \file rocm/dense.h
* \file rocm/dense.h * \brief rocm schedule for dense operation
* \brief rocm schedule for dense operation */
*/
#ifndef TOPI_ROCM_DENSE_H_ #ifndef TOPI_ROCM_DENSE_H_
#define TOPI_ROCM_DENSE_H_ #define TOPI_ROCM_DENSE_H_
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/build_module.h" #include "tvm/build_module.h"
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/detail/array_utils.h" #include "topi/detail/array_utils.h"
...@@ -100,4 +99,3 @@ inline Schedule schedule_dense(const Target &target, const Array<Tensor>& outs) ...@@ -100,4 +99,3 @@ inline Schedule schedule_dense(const Target &target, const Array<Tensor>& outs)
} // namespace rocm } // namespace rocm
} // namespace topi } // namespace topi
#endif // TOPI_ROCM_DENSE_H_ #endif // TOPI_ROCM_DENSE_H_
...@@ -18,14 +18,13 @@ ...@@ -18,14 +18,13 @@
*/ */
/*! /*!
* Copyright (c) 2018 by Contributors * \file rocm/normalization.h
* \file rocm/normalization.h * \brief rocm schedule for LRN and l2 normalization operations
* \brief rocm schedule for LRN and l2 normalization operations */
*/
#ifndef TOPI_ROCM_NORMALIZATION_H_ #ifndef TOPI_ROCM_NORMALIZATION_H_
#define TOPI_ROCM_NORMALIZATION_H_ #define TOPI_ROCM_NORMALIZATION_H_
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/build_module.h" #include "tvm/build_module.h"
#include "topi/tags.h" #include "topi/tags.h"
......
...@@ -35,7 +35,8 @@ ...@@ -35,7 +35,8 @@
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/detail/ravel_unravel.h" #include "topi/detail/ravel_unravel.h"
#include "topi/detail/constant_utils.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" #include "tvm/data_layout.h"
namespace topi { namespace topi {
......
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
#include "topi/reduction.h" #include "topi/reduction.h"
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/transform.h" #include "topi/transform.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/expr_operator.h"
namespace topi { namespace topi {
namespace vision { namespace vision {
......
...@@ -18,16 +18,15 @@ ...@@ -18,16 +18,15 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors * \file x86/bnn.h
* \file x86/bnn.h * \brief x86 schedule for binary operations
* \brief x86 schedule for binary operations */
*/
#ifndef TOPI_X86_BNN_H_ #ifndef TOPI_X86_BNN_H_
#define TOPI_X86_BNN_H_ #define TOPI_X86_BNN_H_
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/detail/fuse.h" #include "topi/detail/fuse.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/build_module.h" #include "tvm/build_module.h"
namespace topi { namespace topi {
......
...@@ -18,16 +18,15 @@ ...@@ -18,16 +18,15 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors * \file x86/default.h
* \file x86/default.h * \brief default x86 schedule
* \brief default x86 schedule */
*/
#ifndef TOPI_X86_DEFAULT_H_ #ifndef TOPI_X86_DEFAULT_H_
#define TOPI_X86_DEFAULT_H_ #define TOPI_X86_DEFAULT_H_
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/detail/fuse.h" #include "topi/detail/fuse.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/build_module.h" #include "tvm/build_module.h"
namespace topi { namespace topi {
......
...@@ -18,16 +18,15 @@ ...@@ -18,16 +18,15 @@
*/ */
/*! /*!
* Copyright (c) 2017 by Contributors * \file x86/injective.h
* \file x86/injective.h * \brief x86 schedule for injective ops
* \brief x86 schedule for injective ops */
*/
#ifndef TOPI_X86_INJECTIVE_H_ #ifndef TOPI_X86_INJECTIVE_H_
#define TOPI_X86_INJECTIVE_H_ #define TOPI_X86_INJECTIVE_H_
#include "topi/tags.h" #include "topi/tags.h"
#include "topi/detail/fuse.h" #include "topi/detail/fuse.h"
#include "tvm/tvm.h" #include "tvm/operation.h"
#include "tvm/build_module.h" #include "tvm/build_module.h"
namespace topi { namespace topi {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment