| @@ -32,7 +32,7 @@ | |||||
| #include "vm/segment_runner.h" | #include "vm/segment_runner.h" | ||||
| #include "debug/draw.h" | #include "debug/draw.h" | ||||
| #include "debug/anf_ir_dump.h" | #include "debug/anf_ir_dump.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace opt { | namespace opt { | ||||
| @@ -33,7 +33,7 @@ | |||||
| #include "vm/segment_runner.h" | #include "vm/segment_runner.h" | ||||
| #include "debug/draw.h" | #include "debug/draw.h" | ||||
| #include "debug/anf_ir_dump.h" | #include "debug/anf_ir_dump.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace opt { | namespace opt { | ||||
| @@ -33,7 +33,7 @@ | |||||
| #include "common/utils.h" | #include "common/utils.h" | ||||
| #include "ir/dtype.h" | #include "ir/dtype.h" | ||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #if (ENABLE_CPU && (ENABLE_D || ENABLE_GPU)) | #if (ENABLE_CPU && (ENABLE_D || ENABLE_GPU)) | ||||
| #include "frontend/parallel/ps/worker.h" | #include "frontend/parallel/ps/worker.h" | ||||
| #include "frontend/parallel/ps/common.h" | #include "frontend/parallel/ps/common.h" | ||||
| @@ -3,10 +3,6 @@ set(_DEBUG_SRC_LIST | |||||
| "${CMAKE_CURRENT_SOURCE_DIR}/anf_ir_utils.cc" | "${CMAKE_CURRENT_SOURCE_DIR}/anf_ir_utils.cc" | ||||
| "${CMAKE_CURRENT_SOURCE_DIR}/draw.cc" | "${CMAKE_CURRENT_SOURCE_DIR}/draw.cc" | ||||
| "${CMAKE_CURRENT_SOURCE_DIR}/dump_proto.cc" | "${CMAKE_CURRENT_SOURCE_DIR}/dump_proto.cc" | ||||
| "${CMAKE_CURRENT_SOURCE_DIR}/info.cc" | |||||
| "${CMAKE_CURRENT_SOURCE_DIR}/label.cc" | |||||
| "${CMAKE_CURRENT_SOURCE_DIR}/trace_info.cc" | |||||
| "${CMAKE_CURRENT_SOURCE_DIR}/trace_base.cc" | |||||
| "${CMAKE_CURRENT_SOURCE_DIR}/trace.cc" | "${CMAKE_CURRENT_SOURCE_DIR}/trace.cc" | ||||
| ) | ) | ||||
| @@ -36,7 +36,7 @@ | |||||
| #include "utils/ordered_set.h" | #include "utils/ordered_set.h" | ||||
| #include "utils/utils.h" | #include "utils/utils.h" | ||||
| #include "debug/trace.h" | #include "debug/trace.h" | ||||
| #include "debug/label.h" | |||||
| #include "utils/label.h" | |||||
| #include "utils/context/ms_context.h" | #include "utils/context/ms_context.h" | ||||
| #include "frontend/operator/ops.h" | #include "frontend/operator/ops.h" | ||||
| @@ -23,7 +23,6 @@ | |||||
| #include <vector> | #include <vector> | ||||
| #include <string> | #include <string> | ||||
| #include "pybind11/pybind11.h" | |||||
| #include "ir/meta_func_graph.h" | #include "ir/meta_func_graph.h" | ||||
| #include "ir/param_value.h" | #include "ir/param_value.h" | ||||
| #include "ir/primitive.h" | #include "ir/primitive.h" | ||||
| @@ -32,8 +31,6 @@ | |||||
| #include "frontend/operator/composite/composite.h" | #include "frontend/operator/composite/composite.h" | ||||
| #include "ir/tensor.h" | #include "ir/tensor.h" | ||||
| namespace py = pybind11; | |||||
| namespace mindspore { | namespace mindspore { | ||||
| // namespace to support debug utils | // namespace to support debug utils | ||||
| @@ -23,8 +23,8 @@ | |||||
| #include <utility> | #include <utility> | ||||
| #include <stack> | #include <stack> | ||||
| #include "debug/trace_base.h" | |||||
| #include "debug/info.h" | |||||
| #include "utils/trace_base.h" | |||||
| #include "utils/info.h" | |||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "pipeline/jit/static_analysis/static_analysis.h" | #include "pipeline/jit/static_analysis/static_analysis.h" | ||||
| @@ -22,8 +22,8 @@ | |||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "ir/meta_func_graph.h" | #include "ir/meta_func_graph.h" | ||||
| #include "debug/info.h" | |||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "utils/info.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "ir/manager.h" | #include "ir/manager.h" | ||||
| #include "pipeline/jit/resource.h" | #include "pipeline/jit/resource.h" | ||||
| #include "pipeline/jit/parse/parse.h" | #include "pipeline/jit/parse/parse.h" | ||||
| @@ -27,7 +27,7 @@ | |||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "ir/meta_func_graph.h" | #include "ir/meta_func_graph.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "pipeline/jit/resource.h" | #include "pipeline/jit/resource.h" | ||||
| #include "frontend/optimizer/ad/adjoint.h" | #include "frontend/optimizer/ad/adjoint.h" | ||||
| #include "frontend/operator/ops.h" | #include "frontend/operator/ops.h" | ||||
| @@ -16,7 +16,7 @@ | |||||
| #include "frontend/optimizer/ad/grad.h" | #include "frontend/optimizer/ad/grad.h" | ||||
| #include "frontend/optimizer/ad/dfunctor.h" | #include "frontend/optimizer/ad/dfunctor.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "utils/context/ms_context.h" | #include "utils/context/ms_context.h" | ||||
| #include "utils/symbolic.h" | #include "utils/symbolic.h" | ||||
| #include "ir/graph_utils.h" | #include "ir/graph_utils.h" | ||||
| @@ -22,7 +22,7 @@ | |||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "utils/primitive_py.h" | #include "utils/primitive_py.h" | ||||
| #include "ir/meta_func_graph.h" | #include "ir/meta_func_graph.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "ir/manager.h" | #include "ir/manager.h" | ||||
| #include "pipeline/jit/resource.h" | #include "pipeline/jit/resource.h" | ||||
| #include "pipeline/jit/parse/parse.h" | #include "pipeline/jit/parse/parse.h" | ||||
| @@ -33,7 +33,7 @@ | |||||
| #include "utils/symbolic.h" | #include "utils/symbolic.h" | ||||
| #include "utils/primitive_utils.h" | #include "utils/primitive_utils.h" | ||||
| #include "utils/context/ms_context.h" | #include "utils/context/ms_context.h" | ||||
| #include "debug/info.h" | |||||
| #include "utils/info.h" | |||||
| #include "debug/trace.h" | #include "debug/trace.h" | ||||
| #include "./common.h" | #include "./common.h" | ||||
| @@ -21,7 +21,7 @@ | |||||
| #include <unordered_map> | #include <unordered_map> | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "frontend/operator/ops.h" | #include "frontend/operator/ops.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -21,7 +21,7 @@ | |||||
| #include <algorithm> | #include <algorithm> | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "frontend/optimizer/optimizer_caller.h" | #include "frontend/optimizer/optimizer_caller.h" | ||||
| #include "ir/pattern_matcher.h" | #include "ir/pattern_matcher.h" | ||||
| #include "frontend/operator/ops.h" | #include "frontend/operator/ops.h" | ||||
| @@ -24,7 +24,7 @@ | |||||
| #include <vector> | #include <vector> | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "frontend/optimizer/optimizer_caller.h" | #include "frontend/optimizer/optimizer_caller.h" | ||||
| #include "frontend/optimizer/anf_visitor.h" | #include "frontend/optimizer/anf_visitor.h" | ||||
| #include "frontend/operator/ops.h" | #include "frontend/operator/ops.h" | ||||
| @@ -26,7 +26,7 @@ | |||||
| #include "frontend/optimizer/optimizer.h" | #include "frontend/optimizer/optimizer.h" | ||||
| #include "frontend/optimizer/anf_visitor.h" | #include "frontend/optimizer/anf_visitor.h" | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace opt { | namespace opt { | ||||
| @@ -28,7 +28,7 @@ | |||||
| #include "frontend/optimizer/optimizer.h" | #include "frontend/optimizer/optimizer.h" | ||||
| #include "frontend/optimizer/anf_visitor.h" | #include "frontend/optimizer/anf_visitor.h" | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace opt { | namespace opt { | ||||
| @@ -26,7 +26,7 @@ | |||||
| #include "frontend/optimizer/optimizer.h" | #include "frontend/optimizer/optimizer.h" | ||||
| #include "frontend/optimizer/anf_visitor.h" | #include "frontend/optimizer/anf_visitor.h" | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "frontend/operator/ops.h" | #include "frontend/operator/ops.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -24,7 +24,7 @@ | |||||
| #include <vector> | #include <vector> | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "frontend/optimizer/optimizer_caller.h" | #include "frontend/optimizer/optimizer_caller.h" | ||||
| #include "frontend/optimizer/anf_visitor.h" | #include "frontend/optimizer/anf_visitor.h" | ||||
| #include "frontend/operator/ops.h" | #include "frontend/operator/ops.h" | ||||
| @@ -25,7 +25,7 @@ | |||||
| #include "frontend/optimizer/optimizer.h" | #include "frontend/optimizer/optimizer.h" | ||||
| #include "frontend/optimizer/anf_visitor.h" | #include "frontend/optimizer/anf_visitor.h" | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "frontend/operator/ops.h" | #include "frontend/operator/ops.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -29,7 +29,7 @@ | |||||
| #include "frontend/optimizer/anf_visitor.h" | #include "frontend/optimizer/anf_visitor.h" | ||||
| #include "ir/manager.h" | #include "ir/manager.h" | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "frontend/operator/ops.h" | #include "frontend/operator/ops.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -28,7 +28,7 @@ | |||||
| #include "utils/convert_utils.h" | #include "utils/convert_utils.h" | ||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "debug/info.h" | |||||
| #include "utils/info.h" | |||||
| #include "abstract/abstract_value.h" | #include "abstract/abstract_value.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -23,7 +23,7 @@ | |||||
| #include <algorithm> | #include <algorithm> | ||||
| #include <functional> | #include <functional> | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "ir/param_value.h" | #include "ir/param_value.h" | ||||
| #include "frontend/parallel/costmodel_context.h" | #include "frontend/parallel/costmodel_context.h" | ||||
| #include "frontend/parallel/context.h" | #include "frontend/parallel/context.h" | ||||
| @@ -28,7 +28,7 @@ | |||||
| #include "pipeline/jit/parse/python_adapter.h" | #include "pipeline/jit/parse/python_adapter.h" | ||||
| #include "frontend/operator/ops.h" | #include "frontend/operator/ops.h" | ||||
| #include "frontend/operator/composite/composite.h" | #include "frontend/operator/composite/composite.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "utils/symbolic.h" | #include "utils/symbolic.h" | ||||
| #include "utils/context/ms_context.h" | #include "utils/context/ms_context.h" | ||||
| #include "debug/trace.h" | #include "debug/trace.h" | ||||
| @@ -23,7 +23,7 @@ | |||||
| #include "pipeline/jit/parse/resolve.h" | #include "pipeline/jit/parse/resolve.h" | ||||
| #include "pipeline/jit/parse/parse.h" | #include "pipeline/jit/parse/parse.h" | ||||
| #include "frontend/operator/ops.h" | #include "frontend/operator/ops.h" | ||||
| #include "debug/info.h" | |||||
| #include "utils/info.h" | |||||
| #include "debug/trace.h" | #include "debug/trace.h" | ||||
| #include "pybind11/pybind11.h" | #include "pybind11/pybind11.h" | ||||
| @@ -24,7 +24,7 @@ | |||||
| #include <algorithm> | #include <algorithm> | ||||
| #include <functional> | #include <functional> | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "debug/anf_ir_utils.h" | #include "debug/anf_ir_utils.h" | ||||
| #include "pipeline/jit/parse/parse_base.h" | #include "pipeline/jit/parse/parse_base.h" | ||||
| #include "pipeline/jit/parse/data_converter.h" | #include "pipeline/jit/parse/data_converter.h" | ||||
| @@ -19,7 +19,7 @@ | |||||
| #include <algorithm> | #include <algorithm> | ||||
| #include <unordered_set> | #include <unordered_set> | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "abstract/utils.h" | #include "abstract/utils.h" | ||||
| #include "debug/trace.h" | #include "debug/trace.h" | ||||
| #include "utils/context/ms_context.h" | #include "utils/context/ms_context.h" | ||||
| @@ -28,7 +28,7 @@ | |||||
| #include <vector> | #include <vector> | ||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "pipeline/jit/static_analysis/evaluator.h" | #include "pipeline/jit/static_analysis/evaluator.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -26,7 +26,7 @@ | |||||
| #include "frontend/operator/ops.h" | #include "frontend/operator/ops.h" | ||||
| #include "utils/symbolic.h" | #include "utils/symbolic.h" | ||||
| #include "ir/tensor.h" | #include "ir/tensor.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "./common.h" | #include "./common.h" | ||||
| #include "pipeline/jit/parse/data_converter.h" | #include "pipeline/jit/parse/data_converter.h" | ||||
| #include "debug/draw.h" | #include "debug/draw.h" | ||||
| @@ -14,8 +14,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CORE_IR_PRIMITIVE_PY_H_ | |||||
| #define MINDSPORE_CORE_IR_PRIMITIVE_PY_H_ | |||||
| #ifndef MINDSPORE_CCSRC_UTILS_PRIMITIVE_PY_H_ | |||||
| #define MINDSPORE_CCSRC_UTILS_PRIMITIVE_PY_H_ | |||||
| #include <unordered_map> | #include <unordered_map> | ||||
| #include <vector> | #include <vector> | ||||
| @@ -77,4 +77,4 @@ class PrimitivePy : public Primitive { | |||||
| using PrimitivePyPtr = std::shared_ptr<PrimitivePy>; | using PrimitivePyPtr = std::shared_ptr<PrimitivePy>; | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CORE_IR_PRIMITIVE_PY_H_ | |||||
| #endif // MINDSPORE_CCSRC_UTILS_PRIMITIVE_PY_H_ | |||||
| @@ -14,8 +14,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CORE_IR_TENSOR_PY_H_ | |||||
| #define MINDSPORE_CORE_IR_TENSOR_PY_H_ | |||||
| #ifndef MINDSPORE_CCSRC_UTILS_TENSOR_PY_H_ | |||||
| #define MINDSPORE_CCSRC_UTILS_TENSOR_PY_H_ | |||||
| #include <memory> | #include <memory> | ||||
| #include <string> | #include <string> | ||||
| @@ -108,4 +108,4 @@ class TensorPy { | |||||
| } // namespace tensor | } // namespace tensor | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CORE_IR_TENSOR_PY_H_ | |||||
| #endif // MINDSPORE_CCSRC_UTILS_TENSOR_PY_H_ | |||||
| @@ -30,7 +30,7 @@ | |||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| #include "utils/utils.h" | #include "utils/utils.h" | ||||
| #include "ir/manager.h" | #include "ir/manager.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "frontend/operator/ops.h" | #include "frontend/operator/ops.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -29,7 +29,7 @@ | |||||
| #include "ir/tensor.h" | #include "ir/tensor.h" | ||||
| #include "frontend/operator/ops.h" | #include "frontend/operator/ops.h" | ||||
| #include "ir/manager.h" | #include "ir/manager.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "utils/primitive_py.h" | #include "utils/primitive_py.h" | ||||
| #include "utils/convert_utils.h" | #include "utils/convert_utils.h" | ||||
| #include "utils/primitive_utils.h" | #include "utils/primitive_utils.h" | ||||
| @@ -19,7 +19,7 @@ | |||||
| #include <algorithm> | #include <algorithm> | ||||
| #include "utils/symbolic.h" | #include "utils/symbolic.h" | ||||
| #include "debug/trace.h" | |||||
| #include "utils/trace_base.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace abstract { | namespace abstract { | ||||
| @@ -13,7 +13,8 @@ | |||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CORE_BASE_BASE_REF_UTILS_H | |||||
| #define MINDSPORE_CORE_BASE_BASE_REF_UTILS_H | |||||
| #include <vector> | #include <vector> | ||||
| #include <memory> | #include <memory> | ||||
| @@ -21,9 +22,7 @@ | |||||
| #include "ir/tensor.h" | #include "ir/tensor.h" | ||||
| #include "base/base_ref.h" | #include "base/base_ref.h" | ||||
| #ifndef MINDSPORE_CCSRC_UTILS_BASE_REF_UTILS_H | |||||
| #define MINDSPORE_CCSRC_UTILS_BASE_REF_UTILS_H | |||||
| namespace mindspore { | namespace mindspore { | ||||
| std::vector<tensor::TensorPtr> TransformVectorRefToMultiTensor(const VectorRef &base_ref); | std::vector<tensor::TensorPtr> TransformVectorRefToMultiTensor(const VectorRef &base_ref); | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CCSRC_UTILS_BASE_REF_UTILS_H | |||||
| #endif // MINDSPORE_CORE_BASE_BASE_REF_UTILS_H | |||||
| @@ -30,7 +30,7 @@ | |||||
| #include "base/user_data.h" | #include "base/user_data.h" | ||||
| #include "ir/kernel_info_dev.h" | #include "ir/kernel_info_dev.h" | ||||
| #include "ir/scope.h" | #include "ir/scope.h" | ||||
| #include "debug/info.h" | |||||
| #include "utils/info.h" | |||||
| // A MindSpore ANF IR defined here. | // A MindSpore ANF IR defined here. | ||||
| // with BNF followed: | // with BNF followed: | ||||
| @@ -24,7 +24,6 @@ | |||||
| #include "ir/visitor.h" | #include "ir/visitor.h" | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "base/core_ops.h" | #include "base/core_ops.h" | ||||
| #include "debug/label.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| // namespace to support intermediate representation definition | // namespace to support intermediate representation definition | ||||
| @@ -22,7 +22,7 @@ | |||||
| #include <sstream> | #include <sstream> | ||||
| #include <utility> | #include <utility> | ||||
| #include "debug/trace_base.h" | |||||
| #include "utils/trace_base.h" | |||||
| #include "ir/manager.h" | #include "ir/manager.h" | ||||
| #include "utils/flags.h" | #include "utils/flags.h" | ||||
| #include "utils/ordered_set.h" | #include "utils/ordered_set.h" | ||||
| @@ -33,6 +33,7 @@ | |||||
| #include "utils/ordered_set.h" | #include "utils/ordered_set.h" | ||||
| #include "utils/ordered_map.h" | #include "utils/ordered_map.h" | ||||
| #include "base/base_ref.h" | #include "base/base_ref.h" | ||||
| #include "ir/func_graph_cloner.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| using BaseRefCounterMap = OrderedMap<BaseRef, int, BaseRefHash>; | using BaseRefCounterMap = OrderedMap<BaseRef, int, BaseRefHash>; | ||||
| @@ -420,8 +421,6 @@ size_t NewFgSeenGeneration(); | |||||
| std::shared_ptr<OrderedSet<CNodePtr>> FindRoots(const std::vector<CNodePtr> &segment); | std::shared_ptr<OrderedSet<CNodePtr>> FindRoots(const std::vector<CNodePtr> &segment); | ||||
| // Find the leaf cnodes of a segment of cnodes. | // Find the leaf cnodes of a segment of cnodes. | ||||
| std::shared_ptr<OrderedSet<CNodePtr>> FindLeaves(const std::vector<CNodePtr> &segment); | std::shared_ptr<OrderedSet<CNodePtr>> FindLeaves(const std::vector<CNodePtr> &segment); | ||||
| FuncGraphPtr BasicClone(const FuncGraphPtr &func_graph); | |||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CORE_IR_FUNC_GRAPH_H_ | #endif // MINDSPORE_CORE_IR_FUNC_GRAPH_H_ | ||||
| @@ -14,7 +14,7 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include <algorithm> | #include <algorithm> | ||||
| @@ -23,7 +23,6 @@ | |||||
| #include "base/core_ops.h" | #include "base/core_ops.h" | ||||
| #include "utils/convert_utils_base.h" | #include "utils/convert_utils_base.h" | ||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| #include "utils/profile.h" | |||||
| #include "utils/context/ms_context.h" | #include "utils/context/ms_context.h" | ||||
| #include "ir/graph_utils.h" | #include "ir/graph_utils.h" | ||||
| @@ -14,8 +14,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CCSRC_UTILS_FUNC_GRAPH_CLONER_H_ | |||||
| #define MINDSPORE_CCSRC_UTILS_FUNC_GRAPH_CLONER_H_ | |||||
| #ifndef MINDSPORE_CORE_IR_FUNC_GRAPH_CLONER_H_ | |||||
| #define MINDSPORE_CORE_IR_FUNC_GRAPH_CLONER_H_ | |||||
| #include <functional> | #include <functional> | ||||
| #include <list> | #include <list> | ||||
| @@ -128,6 +128,7 @@ ClonerPtr SpecializerClone(const FuncGraphPtr &func_graph, const TraceInfoPtr &r | |||||
| FuncGraphPtr TransformableClone(const FuncGraphPtr &func_graph, | FuncGraphPtr TransformableClone(const FuncGraphPtr &func_graph, | ||||
| const TraceInfoPtr &relation = std::make_shared<TraceTransform>()); | const TraceInfoPtr &relation = std::make_shared<TraceTransform>()); | ||||
| FuncGraphPtr BasicClone(const FuncGraphPtr &func_graph); | |||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CCSRC_UTILS_FUNC_GRAPH_CLONER_H_ | |||||
| #endif // MINDSPORE_CORE_IR_FUNC_GRAPH_CLONER_H_ | |||||
| @@ -23,9 +23,8 @@ | |||||
| #include "base/core_ops.h" | #include "base/core_ops.h" | ||||
| #include "utils/ordered_set.h" | #include "utils/ordered_set.h" | ||||
| #include "abstract/abstract_value.h" | #include "abstract/abstract_value.h" | ||||
| #include "debug/trace.h" | |||||
| #include "abstract/abstract_function.h" | |||||
| #include "debug/draw.h" | #include "debug/draw.h" | ||||
| #include "debug/label.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| using mindspore::abstract::AbstractFunction; | using mindspore::abstract::AbstractFunction; | ||||
| @@ -28,7 +28,6 @@ | |||||
| #include <deque> | #include <deque> | ||||
| #include <set> | #include <set> | ||||
| #include "debug/label.h" | |||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| #include "utils/context/ms_context.h" | #include "utils/context/ms_context.h" | ||||
| @@ -16,8 +16,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CCSRC_UTILS_GRAPH_UTILS_H_ | |||||
| #define MINDSPORE_CCSRC_UTILS_GRAPH_UTILS_H_ | |||||
| #ifndef MINDSPORE_CORE_IR_GRAPH_UTILS_H_ | |||||
| #define MINDSPORE_CORE_IR_GRAPH_UTILS_H_ | |||||
| #include <unordered_map> | #include <unordered_map> | ||||
| #include <unordered_set> | #include <unordered_set> | ||||
| @@ -32,7 +32,7 @@ | |||||
| #include "ir/primitive.h" | #include "ir/primitive.h" | ||||
| #include "ir/scalar.h" | #include "ir/scalar.h" | ||||
| #include "ir/tensor.h" | #include "ir/tensor.h" | ||||
| #include "debug/label.h" | |||||
| #include "utils/label.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -94,4 +94,4 @@ class FuncGraphIndex { | |||||
| }; | }; | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CCSRC_UTILS_GRAPH_UTILS_H_ | |||||
| #endif // MINDSPORE_CORE_IR_GRAPH_UTILS_H_ | |||||
| @@ -28,7 +28,7 @@ | |||||
| #include "ir/visitor.h" | #include "ir/visitor.h" | ||||
| #include "ir/manager.h" | #include "ir/manager.h" | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "debug/label.h" | |||||
| #include "utils/label.h" | |||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| #include "common/utils.h" | #include "common/utils.h" | ||||
| @@ -13,8 +13,8 @@ | |||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CCSRC_UTILS_ANY_H_ | |||||
| #define MINDSPORE_CCSRC_UTILS_ANY_H_ | |||||
| #ifndef MINDSPORE_CORE_UTILS_ANY_H_ | |||||
| #define MINDSPORE_CORE_UTILS_ANY_H_ | |||||
| #include <iostream> | #include <iostream> | ||||
| #include <string> | #include <string> | ||||
| @@ -211,4 +211,4 @@ bool AnyIsLiteral(const Any &any); | |||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CCSRC_UTILS_ANY_H_ | |||||
| #endif // MINDSPORE_CORE_UTILS_ANY_H_ | |||||
| @@ -14,8 +14,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CCSRC_UTILS_CONVERT_UTILS_BASE_H_ | |||||
| #define MINDSPORE_CCSRC_UTILS_CONVERT_UTILS_BASE_H_ | |||||
| #ifndef MINDSPORE_CORE_UTILS_CONVERT_UTILS_BASE_H_ | |||||
| #define MINDSPORE_CORE_UTILS_CONVERT_UTILS_BASE_H_ | |||||
| #include <limits> | #include <limits> | ||||
| #include <memory> | #include <memory> | ||||
| @@ -129,4 +129,4 @@ inline uint8_t *AddressOffset(void *address, size_t offset) { | |||||
| } | } | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CCSRC_UTILS_CONVERT_UTILS_BASE_H_ | |||||
| #endif // MINDSPORE_CORE_UTILS_CONVERT_UTILS_BASE_H_ | |||||
| @@ -14,8 +14,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CCSRC_UTILS_HASHING_H_ | |||||
| #define MINDSPORE_CCSRC_UTILS_HASHING_H_ | |||||
| #ifndef MINDSPORE_CORE_UTILS_HASHING_H_ | |||||
| #define MINDSPORE_CORE_UTILS_HASHING_H_ | |||||
| #include <initializer_list> | #include <initializer_list> | ||||
| @@ -33,4 +33,4 @@ inline std::size_t hash_combine(const std::initializer_list<std::size_t> &hash_v | |||||
| return hash_sum; | return hash_sum; | ||||
| } | } | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CCSRC_UTILS_HASHING_H_ | |||||
| #endif // MINDSPORE_CORE_UTILS_HASHING_H_ | |||||
| @@ -14,7 +14,7 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "debug/info.h" | |||||
| #include "utils/info.h" | |||||
| #include <utility> | #include <utility> | ||||
| #include <fstream> | #include <fstream> | ||||
| #include <sstream> | #include <sstream> | ||||
| @@ -14,8 +14,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CCSRC_IR_INFO_H_ | |||||
| #define MINDSPORE_CCSRC_IR_INFO_H_ | |||||
| #ifndef MINDSPORE_CORE_UTILS_INFO_H_ | |||||
| #define MINDSPORE_CORE_UTILS_INFO_H_ | |||||
| #include <iostream> | #include <iostream> | ||||
| #include <string> | #include <string> | ||||
| @@ -25,7 +25,7 @@ | |||||
| #include <vector> | #include <vector> | ||||
| #include "base/base.h" | #include "base/base.h" | ||||
| #include "debug/trace_info.h" | |||||
| #include "utils/trace_info.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| // namespace to support intermediate representation definition | // namespace to support intermediate representation definition | ||||
| @@ -232,4 +232,4 @@ class GraphDebugInfo : public DebugInfo { | |||||
| using GraphDebugInfoPtr = std::shared_ptr<GraphDebugInfo>; | using GraphDebugInfoPtr = std::shared_ptr<GraphDebugInfo>; | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CCSRC_IR_INFO_H_ | |||||
| #endif // MINDSPORE_CORE_UTILS_INFO_H_ | |||||
| @@ -14,12 +14,12 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "debug/label.h" | |||||
| #include "utils/label.h" | |||||
| #include <algorithm> | #include <algorithm> | ||||
| #include <sstream> | #include <sstream> | ||||
| #include <utility> | #include <utility> | ||||
| #include "debug/info.h" | |||||
| #include "utils/info.h" | |||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -14,8 +14,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CCSRC_UTILS_LOG_ADAPTER_H_ | |||||
| #define MINDSPORE_CCSRC_UTILS_LOG_ADAPTER_H_ | |||||
| #ifndef MINDSPORE_CORE_UTILS_LOG_ADAPTER_H_ | |||||
| #define MINDSPORE_CORE_UTILS_LOG_ADAPTER_H_ | |||||
| #include <stdarg.h> | #include <stdarg.h> | ||||
| #include <stdint.h> | #include <stdint.h> | ||||
| @@ -201,4 +201,4 @@ class LogWriter { | |||||
| #define MS_ASSERT(f) ((void)0) | #define MS_ASSERT(f) ((void)0) | ||||
| #endif | #endif | ||||
| #endif // MINDSPORE_CCSRC_UTILS_LOG_ADAPTER_H_ | |||||
| #endif // MINDSPORE_CORE_UTILS_LOG_ADAPTER_H_ | |||||
| @@ -14,8 +14,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CCSRC_UTILS_MISC_H_ | |||||
| #define MINDSPORE_CCSRC_UTILS_MISC_H_ | |||||
| #ifndef MINDSPORE_CORE_UTILS_MISC_H_ | |||||
| #define MINDSPORE_CORE_UTILS_MISC_H_ | |||||
| #include <cxxabi.h> | #include <cxxabi.h> | ||||
| #include <list> | #include <list> | ||||
| @@ -35,4 +35,4 @@ extern const int RET_BREAK; | |||||
| extern std::string demangle(const char *name); | extern std::string demangle(const char *name); | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CCSRC_UTILS_MISC_H_ | |||||
| #endif // MINDSPORE_CORE_UTILS_MISC_H_ | |||||
| @@ -14,8 +14,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CCSRC_UTILS_ORDERED_MAP_H_ | |||||
| #define MINDSPORE_CCSRC_UTILS_ORDERED_MAP_H_ | |||||
| #ifndef MINDSPORE_CORE_UTILS_ORDERED_MAP_H_ | |||||
| #define MINDSPORE_CORE_UTILS_ORDERED_MAP_H_ | |||||
| #include <algorithm> | #include <algorithm> | ||||
| #include <unordered_map> | #include <unordered_map> | ||||
| @@ -198,4 +198,4 @@ class OrderedMap { | |||||
| }; | }; | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CCSRC_UTILS_ORDERED_MAP_H_ | |||||
| #endif // MINDSPORE_CORE_UTILS_ORDERED_MAP_H_ | |||||
| @@ -16,8 +16,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CCSRC_UTILS_ORDERED_SET_H_ | |||||
| #define MINDSPORE_CCSRC_UTILS_ORDERED_SET_H_ | |||||
| #ifndef MINDSPORE_CORE_UTILS_ORDERED_SET_H_ | |||||
| #define MINDSPORE_CORE_UTILS_ORDERED_SET_H_ | |||||
| #include <algorithm> | #include <algorithm> | ||||
| #include <unordered_map> | #include <unordered_map> | ||||
| @@ -280,4 +280,4 @@ class OrderedSet { | |||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CCSRC_UTILS_ORDERED_SET_H_ | |||||
| #endif // MINDSPORE_CORE_UTILS_ORDERED_SET_H_ | |||||
| @@ -14,8 +14,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CCSRC_UTILS_OVERLOAD_H_ | |||||
| #define MINDSPORE_CCSRC_UTILS_OVERLOAD_H_ | |||||
| #ifndef MINDSPORE_CORE_UTILS_OVERLOAD_H_ | |||||
| #define MINDSPORE_CORE_UTILS_OVERLOAD_H_ | |||||
| #include <list> | #include <list> | ||||
| #include <utility> | #include <utility> | ||||
| @@ -135,4 +135,4 @@ std::string ToString(const std::map<T1, T2> &map) { | |||||
| } | } | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CCSRC_UTILS_OVERLOAD_H_ | |||||
| #endif // MINDSPORE_CORE_UTILS_OVERLOAD_H_ | |||||
| @@ -14,8 +14,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CCSRC_UTILS_SIGNAL_H_ | |||||
| #define MINDSPORE_CCSRC_UTILS_SIGNAL_H_ | |||||
| #ifndef MINDSPORE_CORE_UTILS_SIGNAL_H_ | |||||
| #define MINDSPORE_CORE_UTILS_SIGNAL_H_ | |||||
| #include <functional> | #include <functional> | ||||
| #include <memory> | #include <memory> | ||||
| @@ -66,4 +66,4 @@ class Signal { | |||||
| }; | }; | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CCSRC_UTILS_EVENT_H_ | |||||
| #endif // MINDSPORE_CORE_UTILS_EVENT_H_ | |||||
| @@ -16,8 +16,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CCSRC_UTILS_SYMBOLIC_H_ | |||||
| #define MINDSPORE_CCSRC_UTILS_SYMBOLIC_H_ | |||||
| #ifndef MINDSPORE_CORE_UTILS_SYMBOLIC_H_ | |||||
| #define MINDSPORE_CORE_UTILS_SYMBOLIC_H_ | |||||
| #include <unordered_map> | #include <unordered_map> | ||||
| #include <memory> | #include <memory> | ||||
| @@ -171,4 +171,4 @@ extern std::shared_ptr<EnvInstance> newenv; | |||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CCSRC_UTILS_SYMBOLIC_H_ | |||||
| #endif // MINDSPORE_CORE_UTILS_SYMBOLIC_H_ | |||||
| @@ -14,7 +14,7 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "debug/trace_base.h" | |||||
| #include "utils/trace_base.h" | |||||
| #include <iostream> | #include <iostream> | ||||
| #include <fstream> | #include <fstream> | ||||
| @@ -13,8 +13,8 @@ | |||||
| * See the License for the specific language governing permissions and | * See the License for the specific language governing permissions and | ||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CCSRC_DEBUG_TRACE_BASE_H_ | |||||
| #define MINDSPORE_CCSRC_DEBUG_TRACE_BASE_H_ | |||||
| #ifndef MINDSPORE_CORE_UTILS_TRACE_BASE_H_ | |||||
| #define MINDSPORE_CORE_UTILS_TRACE_BASE_H_ | |||||
| #include <fstream> | #include <fstream> | ||||
| #include <memory> | #include <memory> | ||||
| @@ -23,7 +23,7 @@ | |||||
| #include <utility> | #include <utility> | ||||
| #include <stack> | #include <stack> | ||||
| #include "debug/info.h" | |||||
| #include "utils/info.h" | |||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "utils/any.h" | #include "utils/any.h" | ||||
| @@ -36,4 +36,4 @@ std::string GetDebugInfo(const DebugInfoPtr &info, const std::string &prefix, | |||||
| } // namespace trace | } // namespace trace | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CCSRC_DEBUG_TRACE_BASE_H_ | |||||
| #endif // MINDSPORE_CORE_UTILS_TRACE_BASE_H_ | |||||
| @@ -14,7 +14,7 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "debug/trace_info.h" | |||||
| #include "utils/trace_info.h" | |||||
| #include <utility> | #include <utility> | ||||
| #include <fstream> | #include <fstream> | ||||
| #include <sstream> | #include <sstream> | ||||
| @@ -14,8 +14,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CCSRC_DEBUG_TRACE_INFO_H_ | |||||
| #define MINDSPORE_CCSRC_DEBUG_TRACE_INFO_H_ | |||||
| #ifndef MINDSPORE_CORE_UTILS_TRACE_INFO_H_ | |||||
| #define MINDSPORE_CORE_UTILS_TRACE_INFO_H_ | |||||
| #include <iostream> | #include <iostream> | ||||
| #include <string> | #include <string> | ||||
| @@ -414,4 +414,4 @@ class TraceCombileLikeGraphs : public TraceInfo { | |||||
| }; | }; | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CCSRC_DEBUG_TRACE_INFO_H_ | |||||
| #endif // MINDSPORE_CORE_UTILS_TRACE_INFO_H_ | |||||
| @@ -14,8 +14,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CCSRC_UTILS_VISIBLE_H_ | |||||
| #define MINDSPORE_CCSRC_UTILS_VISIBLE_H_ | |||||
| #ifndef MINDSPORE_CORE_UTILS_VISIBLE_H_ | |||||
| #define MINDSPORE_CORE_UTILS_VISIBLE_H_ | |||||
| namespace mindspore { | namespace mindspore { | ||||
| // refer to https://gcc.gnu.org/wiki/Visibility | // refer to https://gcc.gnu.org/wiki/Visibility | ||||
| @@ -41,4 +41,4 @@ namespace mindspore { | |||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CCSRC_UTILS_VISIBLE_H_ | |||||
| #endif // MINDSPORE_CORE_UTILS_VISIBLE_H_ | |||||
| @@ -20,7 +20,7 @@ | |||||
| #include "ir/manager.h" | #include "ir/manager.h" | ||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "pipeline/jit/parse/parse.h" | #include "pipeline/jit/parse/parse.h" | ||||
| #include "ir/graph_utils.h" | #include "ir/graph_utils.h" | ||||
| #include "debug/draw.h" | #include "debug/draw.h" | ||||
| @@ -17,12 +17,12 @@ | |||||
| #include "common/py_func_graph_fetcher.h" | #include "common/py_func_graph_fetcher.h" | ||||
| #include "ir/dtype.h" | #include "ir/dtype.h" | ||||
| #include "ir/manager.h" | #include "ir/manager.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "pipeline/jit/parse/parse.h" | #include "pipeline/jit/parse/parse.h" | ||||
| #include "frontend/operator/ops.h" | #include "frontend/operator/ops.h" | ||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| #include "debug/draw.h" | #include "debug/draw.h" | ||||
| #include "debug/label.h" | |||||
| #include "utils/label.h" | |||||
| #include "./common.h" | #include "./common.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -21,7 +21,7 @@ | |||||
| #include "common/py_func_graph_fetcher.h" | #include "common/py_func_graph_fetcher.h" | ||||
| #include "ir/manager.h" | #include "ir/manager.h" | ||||
| #include "ir/value.h" | #include "ir/value.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| #include "ir/graph_utils.h" | #include "ir/graph_utils.h" | ||||
| #include "pipeline/jit/resource.h" | #include "pipeline/jit/resource.h" | ||||
| @@ -18,7 +18,7 @@ | |||||
| #include "common/common_test.h" | #include "common/common_test.h" | ||||
| #include "common/py_func_graph_fetcher.h" | #include "common/py_func_graph_fetcher.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| #include "pipeline/jit/parse/parse.h" | #include "pipeline/jit/parse/parse.h" | ||||
| #include "debug/draw.h" | #include "debug/draw.h" | ||||
| @@ -21,7 +21,7 @@ | |||||
| #include "common/py_func_graph_fetcher.h" | #include "common/py_func_graph_fetcher.h" | ||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "ir/manager.h" | #include "ir/manager.h" | ||||
| #include "ir/value.h" | #include "ir/value.h" | ||||
| #include "frontend/operator/ops.h" | #include "frontend/operator/ops.h" | ||||
| @@ -21,7 +21,7 @@ | |||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "ir/visitor.h" | #include "ir/visitor.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "frontend/optimizer/opt.h" | #include "frontend/optimizer/opt.h" | ||||
| #include "frontend/optimizer/anf_visitor.h" | #include "frontend/optimizer/anf_visitor.h" | ||||
| #include "frontend/optimizer/irpass.h" | #include "frontend/optimizer/irpass.h" | ||||
| @@ -19,7 +19,7 @@ | |||||
| #include "common/py_func_graph_fetcher.h" | #include "common/py_func_graph_fetcher.h" | ||||
| #include "ir/manager.h" | #include "ir/manager.h" | ||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| #include "utils/func_graph_cloner.h" | |||||
| #include "ir/func_graph_cloner.h" | |||||
| #include "pipeline/jit/parse/parse.h" | #include "pipeline/jit/parse/parse.h" | ||||
| #include "ir/graph_utils.h" | #include "ir/graph_utils.h" | ||||
| #include "pipeline/jit/resource.h" | #include "pipeline/jit/resource.h" | ||||