!49942 move head files to include

Merge pull request !49942 from zhoufeng/move-head-files-to-include
This commit is contained in:
i-robot 2023-03-08 08:45:15 +00:00 committed by Gitee
commit 960f5efffe
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
554 changed files with 699 additions and 692 deletions

View File

@ -20,7 +20,7 @@
#include <utility>
#include <memory>
#include "utils/ms_context.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "kernel/common_utils.h"
#include "backend/common/graph_kernel/adapter/fake_abstract_shape.h"

View File

@ -17,7 +17,7 @@
#define MINDSPORE_CCSRC_BACKEND_OPTIMIZER_GRAPH_KERNEL_ADAPTER_GRAPH_KERNEL_OPTIMIZATION_H_
#include <vector>
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "backend/common/optimizer/optimizer.h"
#include "backend/common/optimizer/pass_manager.h"

View File

@ -32,7 +32,7 @@
#include "kernel/kernel.h"
#include "backend/common/graph_kernel/graph_kernel_helper.h"
#include "backend/common/graph_kernel/core/graph_kernel_utils.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "include/common/debug/anf_ir_dump.h"
#include "kernel/common_utils.h"

View File

@ -22,7 +22,7 @@
#include <vector>
#include <string>
#include "backend/common/optimizer/optimizer.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "backend/common/graph_kernel/graph_kernel_helper.h"
#include "backend/common/graph_kernel/inplace_assign_builder.h"

View File

@ -25,7 +25,7 @@
#include "kernel/common_utils.h"
#include "backend/common/graph_kernel/graph_kernel_helper.h"
#include "backend/common/graph_kernel/core/graph_kernel_utils.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
namespace mindspore::graphkernel {
void StitchAtomicCleanInserter::CorrectKernelBuildInfo(

View File

@ -23,7 +23,7 @@
#include <vector>
#include "backend/common/optimizer/optimizer.h"
#include "backend/common/graph_kernel/add_atomic_clean.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
namespace mindspore::graphkernel {
class StitchAtomicCleanInserter : public AtomicCleanInserter {

View File

@ -19,7 +19,7 @@
#include <vector>
#include "ir/scalar.h"
#include "backend/common/graph_kernel/graph_kernel_helper.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
namespace mindspore::graphkernel {

View File

@ -17,7 +17,7 @@
#include <vector>
#include <string>
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "kernel/common_utils.h"
#include "backend/common/graph_kernel/graph_kernel_helper.h"

View File

@ -23,7 +23,7 @@
#include "kernel/kernel.h"
#include "kernel/common_utils.h"
#include "backend/common/graph_kernel/graph_kernel_helper.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
namespace mindspore::graphkernel {
class ReduceSumCsrChecker : public AtomicAddChecker {

View File

@ -21,7 +21,7 @@
#include <tuple>
#include "backend/common/optimizer/optimizer.h"
#include "backend/common/graph_kernel/add_atomic_clean.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
namespace mindspore::graphkernel {
// Insert atomic clean node for reduce sum if any csr op is found in the graph.

View File

@ -20,7 +20,7 @@
#include <memory>
#include "mindspore/core/ops/core_ops.h"
#include "backend/common/optimizer/helper.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/graph_kernel/graph_kernel_helper.h"
#include "backend/common/graph_kernel/core/graph_kernel_utils.h"

View File

@ -20,7 +20,7 @@
#include <vector>
#include <string>
#include "backend/common/optimizer/optimizer.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
namespace mindspore::graphkernel {
class DecreaseComputePrecision : public opt::Pass {

View File

@ -26,7 +26,7 @@
#include "ir/manager.h"
#include "kernel/kernel_build_info.h"
#include "kernel/common_utils.h"
#include "runtime/device/kernel_info.h"
#include "include/backend/kernel_info.h"
#include "backend/common/graph_kernel/decrease_transfer_precision.h"
namespace mindspore::graphkernel {

View File

@ -20,7 +20,7 @@
#include <memory>
#include <algorithm>
#include <unordered_set>
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "kernel/common_utils.h"
#include "backend/common/graph_kernel/graph_kernel_flags.h"

View File

@ -22,7 +22,7 @@
#include <map>
#include <unordered_set>
#include "include/common/utils/anfalgo.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "kernel/akg/akg_kernel_json_generator.h"
#include "backend/common/graph_kernel/graph_kernel_helper.h"
#include "backend/common/graph_kernel/graph_kernel_flags.h"

View File

@ -20,7 +20,7 @@
#include <memory>
#include <string>
#include <vector>
#include "runtime/device/kernel_info.h"
#include "include/backend/kernel_info.h"
#include "utils/ms_utils.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/graph_kernel/reshape_reduce_for_cse.h"

View File

@ -26,7 +26,7 @@
#include "kernel/akg/akg_kernel_json_generator.h"
#include "kernel/akg/akg_kernel_json_decoder.h"
#include "kernel/kernel.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/graph_kernel/adapter/fake_abstract_shape.h"
#include "backend/common/graph_kernel/core/graph_builder.h"

View File

@ -27,9 +27,9 @@
#include "ir/anf.h"
#include "ir/func_graph.h"
#include "ir/primitive.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "kernel/akg/akg_kernel_json_generator.h"
#include <nlohmann/json.hpp>
#include "backend/common/graph_kernel/model/lite_graph.h"

View File

@ -17,7 +17,7 @@
#include <string>
#include <tuple>
#include <vector>
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/graph_kernel/graph_kernel_helper.h"

View File

@ -22,7 +22,7 @@
#include "mindspore/core/ops/core_ops.h"
#include "backend/common/optimizer/helper.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/graph_kernel/graph_kernel_helper.h"

View File

@ -18,7 +18,7 @@
#include <memory>
#include "backend/common/optimizer/optimizer.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
namespace mindspore::graphkernel {
class OptimizeAssign : public opt::Pass {

View File

@ -25,11 +25,11 @@
#include <vector>
#include "base/base.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/optimizer/optimizer.h"
#include "backend/common/graph_kernel/parallel_cost_model.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "include/common/utils/python_adapter.h"
#include "utils/ms_context.h"

View File

@ -26,11 +26,11 @@
#include <vector>
#include "base/base.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/optimizer/optimizer.h"
#include "backend/common/graph_kernel/parallel_cost_model.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "utils/ms_context.h"
namespace mindspore::graphkernel {

View File

@ -21,12 +21,12 @@
#include "backend/common/optimizer/helper.h"
#include "backend/common/graph_kernel/core/graph_kernel_utils.h"
#include "backend/common/graph_kernel/graph_kernel_helper.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "ir/tensor.h"
#include "kernel/kernel_build_info.h"
#include "kernel/common_utils.h"
#include "runtime/device/kernel_info.h"
#include "include/backend/kernel_info.h"
namespace mindspore::graphkernel {
bool RaiseReductionPrecision::IsFp16ReduceSum(const AnfNodePtr &node) const {

View File

@ -22,7 +22,7 @@
#include "mindspore/core/ops/core_ops.h"
#include "include/common/utils/utils.h"
#include "utils/log_adapter.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "include/common/debug/anf_ir_dump.h"
#include "backend/common/graph_kernel/core/graph_kernel_utils.h"

View File

@ -22,7 +22,7 @@
#include <utility>
#include "backend/common/optimizer/helper.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "include/common/utils/utils.h"
#include "backend/common/graph_kernel/graph_kernel_helper.h"

View File

@ -19,7 +19,7 @@
#include <memory>
#include "ir/scalar.h"
#include "backend/common/graph_kernel/graph_kernel_helper.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
namespace mindspore::graphkernel {

View File

@ -22,7 +22,7 @@
#include "mindspore/core/ops/core_ops.h"
#include "include/common/utils/utils.h"
#include "runtime/device/kernel_info.h"
#include "include/backend/kernel_info.h"
#include "backend/common/optimizer/helper.h"
namespace mindspore::graphkernel {

View File

@ -24,11 +24,11 @@
#include "include/common/utils/utils.h"
#include "backend/common/optimizer/helper.h"
#include "backend/common/graph_kernel/graph_kernel_helper.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "ir/tensor.h"
#include "kernel/kernel_build_info.h"
#include "runtime/device/kernel_info.h"
#include "include/backend/kernel_info.h"
namespace mindspore {
namespace graphkernel {

View File

@ -22,9 +22,9 @@
#include "ir/tensor.h"
#include "include/common/utils/utils.h"
#include "utils/log_adapter.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "kernel/kernel.h"
#include "kernel/common_utils.h"
#include "backend/common/graph_kernel/graph_kernel_helper.h"

View File

@ -23,7 +23,7 @@
#include <vector>
#include "backend/common/optimizer/optimizer.h"
#include "backend/common/graph_kernel/add_atomic_clean.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
namespace mindspore::graphkernel {
/*

View File

@ -22,7 +22,7 @@
#include "kernel/kernel.h"
#include "kernel/common_utils.h"
#include "backend/common/graph_kernel/graph_kernel_helper.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
namespace mindspore::graphkernel {
bool UssAtomicAdd::Run(const FuncGraphPtr &func_graph) {

View File

@ -21,7 +21,7 @@
#include <tuple>
#include "backend/common/optimizer/optimizer.h"
#include "backend/common/graph_kernel/add_atomic_clean.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
namespace mindspore::graphkernel {
/*

View File

@ -14,8 +14,8 @@
* limitations under the License.
*/
#include "backend/common/graph_kernel/value_graph_binder.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/backend/kernel_graph.h"
namespace mindspore::graphkernel {
bool BindValueToGraph::Run(const FuncGraphPtr &func_graph) {
MS_EXCEPTION_IF_NULL(func_graph);

View File

@ -23,8 +23,9 @@
#include <queue>
#include <memory>
#include <utility>
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "kernel/kernel.h"
#include "include/backend/device_address.h"
using HostAddress = mindspore::kernel::Address;
namespace mindspore {

View File

@ -21,9 +21,9 @@
#include <vector>
#include "utils/hash_map.h"
#include "backend/common/mem_reuse/kernel_refcount.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "utils/ms_context.h"
namespace mindspore {
namespace memreuse {

View File

@ -22,7 +22,7 @@
#include <memory>
#include <functional>
#include "mindspore/core/ir/anf.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/mem_reuse/mem_reuse.h"
#include "kernel/common_utils.h"

View File

@ -18,7 +18,7 @@
#include <algorithm>
#include <set>
#include <string>
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
namespace mindspore {

View File

@ -16,7 +16,7 @@
#ifndef MINDSPORE_CCSRC_BACKEND_OPTIMIZER_COMMON_COMMON_BACKEND_OPTIMIZATION_H_
#define MINDSPORE_CCSRC_BACKEND_OPTIMIZER_COMMON_COMMON_BACKEND_OPTIMIZATION_H_
#include <memory>
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "backend/common/optimizer/pass_manager.h"
namespace mindspore {
namespace opt {

View File

@ -18,7 +18,7 @@
#include <memory>
#include <string>
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/optimizer/helper.h"
#include "backend/common/optimizer/dynamic_shape/dynamic_shape_helper.h"

View File

@ -23,7 +23,7 @@
#include <vector>
#include <map>
#include <utility>
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "runtime/device/ms_device_shape_transfer.h"
#include "include/common/utils/anfalgo.h"
#include "include/common/utils/utils.h"

View File

@ -19,7 +19,7 @@
#include <memory>
#include <vector>
#include "utils/anf_utils.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/optimizer/helper.h"
#include "backend/common/optimizer/dynamic_shape/dynamic_shape_helper.h"

View File

@ -24,12 +24,12 @@
#include "utils/hash_set.h"
#include "include/common/utils/utils.h"
#include "base/base_ref.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "mindspore/core/ops/core_ops.h"
#include "utils/ms_utils.h"
#include "include/common/utils/convert_utils.h"
#include "runtime/device/kernel_info.h"
#include "include/backend/kernel_info.h"
#include "utils/ms_context.h"
#include "utils/trace_base.h"
#include "backend/common/optimizer/const_input_to_attr.h"

View File

@ -23,9 +23,10 @@
#include <set>
#include "utils/hash_set.h"
#include "ir/func_graph.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "utils/ms_utils.h"
#include "backend/common/optimizer/pattern_engine.h"
#include "kernel/kernel_build_info.h"
#include "include/backend/visible.h"
namespace mindspore {

View File

@ -25,7 +25,7 @@
#include "ir/manager.h"
#include "utils/hash_map.h"
#include "utils/hash_set.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "include/common/utils/anfalgo.h"
namespace mindspore {

View File

@ -21,7 +21,7 @@
#include <utility>
#include "backend/common/optimizer/pass_manager.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "ir/manager.h"

View File

@ -21,7 +21,7 @@
#include "utils/ms_context.h"
#include "include/common/debug/anf_ir_dump.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
namespace mindspore {
namespace opt {

View File

@ -19,7 +19,7 @@
#include <vector>
#include <string>
#include "mindspore/core/ops/core_ops.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
namespace mindspore {

View File

@ -19,7 +19,7 @@
#include <vector>
#include <map>
#include <utility>
#include "runtime/device/kernel_info.h"
#include "include/backend/kernel_info.h"
#include "mindspore/core/ops/core_ops.h"
#include "utils/ms_context.h"
#include "include/common/utils/utils.h"

View File

@ -22,8 +22,8 @@
#include "utils/hash_map.h"
#include "ir/graph_utils.h"
#include "mindspore/core/ops/core_ops.h"
#include "runtime/device/kernel_info.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/kernel_info.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "kernel/kernel_build_info.h"
#include "backend/common/optimizer/helper.h"

View File

@ -17,7 +17,7 @@
#include <string>
#include "utils/check_convert_utils.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "kernel/common_utils.h"

View File

@ -21,9 +21,9 @@
#include "ir/graph_utils.h"
#include "backend/common/optimizer/helper.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "kernel/common_utils.h"
namespace mindspore {

View File

@ -18,9 +18,9 @@
#include <utility>
#include "include/common/utils/convert_utils.h"
#include "backend/common/optimizer/helper.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
namespace mindspore {
namespace opt {

View File

@ -18,7 +18,7 @@
#include <utility>
#include <algorithm>
#include "include/common/utils/anfalgo.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
namespace mindspore {
namespace opt {

View File

@ -20,7 +20,7 @@
#include "backend/common/optimizer/helper.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
namespace mindspore {
namespace opt {

View File

@ -19,7 +19,7 @@
#include <memory>
#include "backend/common/optimizer/helper.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "include/common/utils/anfalgo.h"
namespace mindspore {

View File

@ -16,7 +16,7 @@
#include "backend/common/pass/convert_unused_tuple_para_to_make_tuple.h"
#include "backend/common/optimizer/helper.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "include/common/utils/anfalgo.h"
namespace mindspore {

View File

@ -16,7 +16,7 @@
#include "backend/common/pass/dynamic_sequence_ops_adaptation.h"
#include <set>
#include "include/common/utils/anfalgo.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
namespace mindspore {
namespace opt {

View File

@ -18,7 +18,7 @@
#include <memory>
#include <utility>
#include "ir/anf.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "backend/common/optimizer/helper.h"
#include "include/common/utils/anfalgo.h"

View File

@ -17,7 +17,7 @@
#include <memory>
#include <utility>
#include "utils/hash_map.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "include/common/utils/utils.h"
#include "backend/common/optimizer/helper.h"

View File

@ -16,7 +16,7 @@
#include "backend/common/pass/erase_visit_attr.h"
#include <memory>
#include "kernel/common_utils.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/optimizer/helper.h"

View File

@ -22,7 +22,7 @@
#include <memory>
#include <string>
#include "include/common/utils/anfalgo.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
namespace mindspore {
namespace opt {

View File

@ -15,7 +15,7 @@
*/
#include "backend/common/pass/insert_tensor_move_for_communication.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "utils/ms_context.h"

View File

@ -19,7 +19,7 @@
#include <memory>
#include <vector>
#include <algorithm>
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/utils.h"
#include "include/common/utils/anfalgo.h"
#include "include/common/utils/convert_utils.h"

View File

@ -23,7 +23,7 @@
#include "include/common/utils/utils.h"
#include "include/common/utils/anfalgo.h"
#include "utils/trace_base.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
namespace mindspore {
namespace opt {

View File

@ -16,8 +16,8 @@
#include "backend/common/pass/replace_node_by_proxy.h"
#include <vector>
#include <memory>
#include "runtime/device/kernel_info.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/kernel_info.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "kernel/kernel_build_info.h"

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include <memory>
#include <algorithm>
@ -27,8 +27,8 @@
#include "include/common/utils/parallel_context.h"
#include "include/common/utils/anfalgo.h"
#include "include/common/debug/anf_dump_utils.h"
#include "runtime/device/kernel_info.h"
#include "runtime/device/device_address.h"
#include "include/backend/kernel_info.h"
#include "include/backend/device_address.h"
#include "backend/common/optimizer/helper.h"
#include "kernel/kernel.h"
#include "kernel/kernel_build_info.h"

View File

@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include <algorithm>
#include <queue>
#include <set>
@ -23,9 +23,9 @@
#include "ir/param_info.h"
#include "include/common/utils/utils.h"
#include "utils/check_convert_utils.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "runtime/device/kernel_info.h"
#include "include/backend/kernel_info.h"
#include "kernel/kernel_build_info.h"
#include "runtime/device/kernel_runtime_manager.h"
#include "kernel/common_utils.h"

View File

@ -22,11 +22,11 @@
#include <map>
#include <set>
#include "utils/hash_map.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "include/common/utils/anfalgo.h"
#include "ir/anf.h"
#include "ir/tensor.h"
#include "runtime/device/kernel_info.h"
#include "include/backend/kernel_info.h"
#include "utils/ms_context.h"
#include "runtime/hardware/device_context.h"
#include "include/backend/visible.h"

View File

@ -32,7 +32,7 @@
#include "base/base_ref_utils.h"
#include "runtime/device/ms_device_shape_transfer.h"
#include "include/common/utils/config_manager.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/session/executor_manager.h"
#include "backend/common/optimizer/common_backend_optimization.h"

View File

@ -25,14 +25,14 @@
#include "utils/hash_map.h"
#include "backend/common/session/kernel_graph_mgr.h"
#include "backend/common/session/session_context.h"
#include "backend/common/session/kernel_graph.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/kernel_graph.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "ir/anf.h"
#include "ir/tensor.h"
#include "utils/any.h"
#include "include/common/utils/contract.h"
#include "runtime/device/kernel_info.h"
#include "include/backend/kernel_info.h"
#include "utils/ms_context.h"
#include "pipeline/pynative/base.h"

View File

@ -20,7 +20,7 @@
#include <string>
#include <vector>
#include <memory>
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
namespace mindspore {
namespace session {

View File

@ -32,10 +32,10 @@
#include "backend/common/somas/somas_solver_pre.h"
#include "backend/common/somas/somas_stream.h"
#include "backend/common/somas/somas_parameter.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "backend/common/session/kernel_graph.h"
#include "runtime/hardware/device_type.h"
#include "include/backend/kernel_graph.h"
#include "include/backend/device_type.h"
#include "include/backend/visible.h"
namespace mindspore {

View File

@ -27,7 +27,7 @@
#include <vector>
#include <climits>
#include "utils/hash_map.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
using mindspore::HashMap;
using std::vector;

View File

@ -17,7 +17,7 @@
#include "debug/data_dump/cpu_e2e_dump.h"
#include <map>
#include <fstream>
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "include/common/debug/anf_dump_utils.h"
#include "include/common/debug/common.h"

View File

@ -21,7 +21,7 @@
#include "debug/utils.h"
#include "utils/ms_context.h"
#include "utils/convert_utils_base.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "debug/data_dump/npy_header.h"
#include "include/common/debug/anf_dump_utils.h"

View File

@ -25,7 +25,7 @@
#include <memory>
#include "nlohmann/json.hpp"
#include "utils/ms_utils.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "include/backend/visible.h"
namespace mindspore {

View File

@ -28,7 +28,7 @@
#include "utils/ms_context.h"
#include "pipeline/jit/debug/anf_ir_utils.h"
#include "debug/data_dump/dump_json_parser.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "runtime/device/kernel_runtime_manager.h"
#include "include/common/utils/utils.h"

View File

@ -22,8 +22,8 @@
#include <string>
#include <memory>
#include "backend/common/session/kernel_graph.h"
#include "runtime/device/device_address.h"
#include "include/backend/kernel_graph.h"
#include "include/backend/device_address.h"
using DeviceTensor = mindspore::device::DeviceAddress;
using DeviceTensorPtr = std::shared_ptr<DeviceTensor>;

View File

@ -28,7 +28,7 @@
#include "runtime/device/ms_device_shape_transfer.h"
#include "include/common/debug/anf_dump_utils.h"
#include "include/common/debug/common.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "utils/ms_context.h"
#include "runtime/device/kernel_runtime_manager.h"

View File

@ -23,8 +23,8 @@
#include <string>
#include <vector>
#include "backend/common/session/kernel_graph.h"
#include "runtime/device/device_address.h"
#include "include/backend/kernel_graph.h"
#include "include/backend/device_address.h"
#include "debug/data_dump/dump_json_parser.h"
#include "debug/data_dump/dump_utils.h"
#ifdef ENABLE_DEBUGGER

View File

@ -17,7 +17,7 @@
#include "debug/data_dump/overflow_dumper.h"
#ifndef ENABLE_SECURITY
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#endif

View File

@ -28,7 +28,7 @@
#include <regex>
#include "debug/data_dump/dump_json_parser.h"
#include "backend/common/session/session_basic.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "runtime/device/kernel_runtime_manager.h"
#include "runtime/device/kernel_runtime.h"

View File

@ -23,11 +23,11 @@
#include <vector>
#include <map>
#include <set>
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
#include "debug/debugger/grpc_client.h"
#include "debug/debug_services.h"
#include "runtime/device/ms_device_shape_transfer.h"
#include "runtime/device/device_address.h"
#include "include/backend/device_address.h"
#include "include/backend/visible.h"
using debugger::Chunk;

View File

@ -22,7 +22,7 @@
#include "include/common/debug/anf_dump_utils.h"
#include "debug/debugger/debugger.h"
#include "debug/data_dump/dump_json_parser.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "kernel/kernel.h"
#include "debug/data_dump/e2e_dump.h"

View File

@ -18,7 +18,7 @@
#include <string>
#include "utils/symbolic.h"
#include "backend/common/session/kernel_graph.h"
#include "include/backend/kernel_graph.h"
namespace mindspore {
enum LocDebugDumpMode { kDebugOff = 0, kDebugTopStack = 1, kDebugWholeStack = 2 };

View File

@ -18,7 +18,7 @@
#include <utility>
#include "mindspore/core/ir/anf.h"
#include "mindspore/core/utils/log_adapter.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/utils.h"
#include "include/common/debug/rdr/recorder_manager.h"
#include "mindspore/core/utils/file_utils.h"

View File

@ -18,7 +18,7 @@
#include <fstream>
#include "mindspore/core/ir/anf.h"
#include "mindspore/core/utils/log_adapter.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "include/common/utils/utils.h"
#include "include/common/debug/rdr/recorder_manager.h"

View File

@ -20,7 +20,7 @@
#include <memory>
#include <utility>
#include "nlohmann/json.hpp"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "include/common/debug/rdr/base_recorder.h"

View File

@ -18,7 +18,7 @@
#define aMINDSPORE_CCSRC_DISTRIBUTED_EMBEDDING_CACHE_EMBEDDING_STORAGE_ABSTRACT_EMBEDDING_STORAGE_H_
#include "distributed/persistent/storage/storage.h"
#include "runtime/device/device_address.h"
#include "include/backend/device_address.h"
#include "include/backend/visible.h"
namespace mindspore {

View File

@ -30,13 +30,13 @@
#include "base/base.h"
#include "ir/primitive.h"
#include "ir/kernel_info_dev.h"
#include "runtime/device/device_address.h"
#include "kernel/kernel.h"
#include "kernel/kernel_build_info.h"
#include "mindspore/core/ops/core_ops.h"
#include "include/common/utils/contract.h"
#include "utils/anf_utils.h"
#include "backend/common/session/kernel_graph.h"
#include "include/common/utils/contract.h"
#include "include/backend/device_address.h"
#include "include/backend/kernel_graph.h"
#include "include/backend/kernel_info.h"
#include "include/backend/visible.h"
namespace mindspore {

View File

@ -28,10 +28,9 @@
#include "ir/dtype.h"
#include "ir/device_sync.h"
#include "utils/shape_utils.h"
#include "include/common/utils/utils.h"
#include "runtime/hardware/device_type.h"
#include "runtime/device/hash_table.h"
#include "utils/check_convert_utils.h"
#include "include/common/utils/utils.h"
#include "include/backend/device_type.h"
namespace mindspore {
namespace device {

View File

@ -25,12 +25,12 @@ namespace mindspore {
namespace device {
enum class RunMode { kUnknown, kKernelMode, kGraphMode };
enum class DeviceType { kUnknown, kCPU, kAscend, kGPU };
static const std::map<DeviceType, std::string> device_type_to_name_map = {{DeviceType::kUnknown, "Unknown"},
const std::map<DeviceType, std::string> device_type_to_name_map = {{DeviceType::kUnknown, "Unknown"},
{DeviceType::kAscend, "Ascend"},
{DeviceType::kCPU, "CPU"},
{DeviceType::kGPU, "GPU"}};
static const std::map<std::string, DeviceType> device_name_to_type_map = {{"Unknown", DeviceType::kUnknown},
const std::map<std::string, DeviceType> device_name_to_type_map = {{"Unknown", DeviceType::kUnknown},
{"Ascend", DeviceType::kAscend},
{"CPU", DeviceType::kCPU},
{"GPU", DeviceType::kGPU}};

View File

@ -31,7 +31,8 @@
#include "ir/anf.h"
#include "ir/graph_utils.h"
#include "include/common/utils/contract.h"
#include "runtime/device/kernel_info.h"
#include "include/backend/device_type.h"
#include "include/backend/kernel_info.h"
#include "include/backend/visible.h"
namespace mindspore {

View File

@ -23,7 +23,7 @@
#include "ir/kernel_info_dev.h"
#include "kernel/kernel_build_info.h"
#include "kernel/kernel.h"
#include "runtime/device/device_address.h"
#include "include/backend/device_address.h"
#include "include/backend/visible.h"
namespace mindspore {

View File

@ -33,7 +33,7 @@
#include "backend/common/graph_kernel/graph_kernel_flags.h"
#include "kernel/common_utils.h"
#include "kernel/akg/akg_kernel_json_generator.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
namespace mindspore {

View File

@ -19,7 +19,7 @@
#include "kernel/akg/akg_kernel_json_generator.h"
#include "kernel/common_utils.h"
#include "backend/common/graph_kernel/adapter/fake_abstract_shape.h"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "include/common/debug/anf_ir_dump.h"
#include "frontend/operator/ops.h"
@ -31,7 +31,7 @@
#include "ir/meta_tensor.h"
#include "pipeline/jit/parse/data_converter.h"
#include "include/common/utils/python_adapter.h"
#include "runtime/device/kernel_info.h"
#include "include/backend/kernel_info.h"
#include "include/common/utils/convert_utils.h"
#include "include/common/utils/convert_utils_py.h"
#include "include/common/utils/utils.h"

View File

@ -27,7 +27,7 @@
#include <tuple>
#include <cmath>
#include "nlohmann/json.hpp"
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "include/common/utils/convert_utils.h"
#include "utils/file_utils.h"

View File

@ -20,7 +20,7 @@
#include <algorithm>
#include <iterator>
#include <numeric>
#include "backend/common/session/anf_runtime_algorithm.h"
#include "include/backend/anf_runtime_algorithm.h"
#include "include/common/utils/anfalgo.h"
#include "kernel/common_utils.h"
using AnfAlgo = mindspore::session::AnfRuntimeAlgorithm;

View File

@ -17,7 +17,7 @@
#include <iostream>
#include "pipeline/pynative/pynative_utils.h"
#include "ir/tensor.h"
#include "runtime/device/device_address.h"
#include "include/backend/device_address.h"
namespace mindspore {
namespace pynative {

Some files were not shown because too many files have changed in this diff Show More