!3779 decoupling core and debug

Merge pull request !3779 from liubuyu/master
This commit is contained in:
mindspore-ci-bot 2020-07-31 12:46:08 +08:00 committed by Gitee
commit 6e23d76b1e
70 changed files with 112 additions and 124 deletions

View File

@ -32,7 +32,7 @@
#include "vm/segment_runner.h"
#include "debug/draw.h"
#include "debug/anf_ir_dump.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
namespace mindspore {
namespace opt {

View File

@ -33,7 +33,7 @@
#include "vm/segment_runner.h"
#include "debug/draw.h"
#include "debug/anf_ir_dump.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
namespace mindspore {
namespace opt {

View File

@ -33,7 +33,7 @@
#include "common/utils.h"
#include "ir/dtype.h"
#include "ir/anf.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#if (ENABLE_CPU && (ENABLE_D || ENABLE_GPU))
#include "frontend/parallel/ps/worker.h"
#include "frontend/parallel/ps/common.h"

View File

@ -3,10 +3,6 @@ set(_DEBUG_SRC_LIST
"${CMAKE_CURRENT_SOURCE_DIR}/anf_ir_utils.cc"
"${CMAKE_CURRENT_SOURCE_DIR}/draw.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"
)

View File

@ -36,7 +36,7 @@
#include "utils/ordered_set.h"
#include "utils/utils.h"
#include "debug/trace.h"
#include "debug/label.h"
#include "utils/label.h"
#include "utils/context/ms_context.h"
#include "frontend/operator/ops.h"

View File

@ -23,7 +23,6 @@
#include <vector>
#include <string>
#include "pybind11/pybind11.h"
#include "ir/meta_func_graph.h"
#include "ir/param_value.h"
#include "ir/primitive.h"
@ -32,8 +31,6 @@
#include "frontend/operator/composite/composite.h"
#include "ir/tensor.h"
namespace py = pybind11;
namespace mindspore {
// namespace to support debug utils

View File

@ -23,8 +23,8 @@
#include <utility>
#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/func_graph.h"
#include "pipeline/jit/static_analysis/static_analysis.h"

View File

@ -22,8 +22,8 @@
#include "ir/anf.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 "pipeline/jit/resource.h"
#include "pipeline/jit/parse/parse.h"

View File

@ -27,7 +27,7 @@
#include "ir/anf.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 "frontend/optimizer/ad/adjoint.h"
#include "frontend/operator/ops.h"

View File

@ -16,7 +16,7 @@
#include "frontend/optimizer/ad/grad.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/symbolic.h"
#include "ir/graph_utils.h"

View File

@ -22,7 +22,7 @@
#include "ir/anf.h"
#include "utils/primitive_py.h"
#include "ir/meta_func_graph.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#include "ir/manager.h"
#include "pipeline/jit/resource.h"
#include "pipeline/jit/parse/parse.h"
@ -33,7 +33,7 @@
#include "utils/symbolic.h"
#include "utils/primitive_utils.h"
#include "utils/context/ms_context.h"
#include "debug/info.h"
#include "utils/info.h"
#include "debug/trace.h"
#include "./common.h"

View File

@ -21,7 +21,7 @@
#include <unordered_map>
#include "ir/func_graph.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#include "frontend/operator/ops.h"
namespace mindspore {

View File

@ -21,7 +21,7 @@
#include <algorithm>
#include "ir/func_graph.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#include "frontend/optimizer/optimizer_caller.h"
#include "ir/pattern_matcher.h"
#include "frontend/operator/ops.h"

View File

@ -24,7 +24,7 @@
#include <vector>
#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/anf_visitor.h"
#include "frontend/operator/ops.h"

View File

@ -26,7 +26,7 @@
#include "frontend/optimizer/optimizer.h"
#include "frontend/optimizer/anf_visitor.h"
#include "ir/func_graph.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
namespace mindspore {
namespace opt {

View File

@ -28,7 +28,7 @@
#include "frontend/optimizer/optimizer.h"
#include "frontend/optimizer/anf_visitor.h"
#include "ir/func_graph.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
namespace mindspore {
namespace opt {

View File

@ -26,7 +26,7 @@
#include "frontend/optimizer/optimizer.h"
#include "frontend/optimizer/anf_visitor.h"
#include "ir/func_graph.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#include "frontend/operator/ops.h"
namespace mindspore {

View File

@ -24,7 +24,7 @@
#include <vector>
#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/anf_visitor.h"
#include "frontend/operator/ops.h"

View File

@ -25,7 +25,7 @@
#include "frontend/optimizer/optimizer.h"
#include "frontend/optimizer/anf_visitor.h"
#include "ir/func_graph.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#include "frontend/operator/ops.h"
namespace mindspore {

View File

@ -29,7 +29,7 @@
#include "frontend/optimizer/anf_visitor.h"
#include "ir/manager.h"
#include "ir/func_graph.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#include "frontend/operator/ops.h"
namespace mindspore {

View File

@ -28,7 +28,7 @@
#include "utils/convert_utils.h"
#include "ir/anf.h"
#include "ir/func_graph.h"
#include "debug/info.h"
#include "utils/info.h"
#include "abstract/abstract_value.h"
namespace mindspore {

View File

@ -23,7 +23,7 @@
#include <algorithm>
#include <functional>
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#include "ir/param_value.h"
#include "frontend/parallel/costmodel_context.h"
#include "frontend/parallel/context.h"

View File

@ -28,7 +28,7 @@
#include "pipeline/jit/parse/python_adapter.h"
#include "frontend/operator/ops.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/context/ms_context.h"
#include "debug/trace.h"

View File

@ -23,7 +23,7 @@
#include "pipeline/jit/parse/resolve.h"
#include "pipeline/jit/parse/parse.h"
#include "frontend/operator/ops.h"
#include "debug/info.h"
#include "utils/info.h"
#include "debug/trace.h"
#include "pybind11/pybind11.h"

View File

@ -24,7 +24,7 @@
#include <algorithm>
#include <functional>
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#include "debug/anf_ir_utils.h"
#include "pipeline/jit/parse/parse_base.h"
#include "pipeline/jit/parse/data_converter.h"

View File

@ -19,7 +19,7 @@
#include <algorithm>
#include <unordered_set>
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#include "abstract/utils.h"
#include "debug/trace.h"
#include "utils/context/ms_context.h"

View File

@ -28,7 +28,7 @@
#include <vector>
#include "ir/anf.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#include "pipeline/jit/static_analysis/evaluator.h"
namespace mindspore {

View File

@ -26,7 +26,7 @@
#include "frontend/operator/ops.h"
#include "utils/symbolic.h"
#include "ir/tensor.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#include "./common.h"
#include "pipeline/jit/parse/data_converter.h"
#include "debug/draw.h"

View File

@ -14,8 +14,8 @@
* 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 <vector>
@ -77,4 +77,4 @@ class PrimitivePy : public Primitive {
using PrimitivePyPtr = std::shared_ptr<PrimitivePy>;
} // namespace mindspore
#endif // MINDSPORE_CORE_IR_PRIMITIVE_PY_H_
#endif // MINDSPORE_CCSRC_UTILS_PRIMITIVE_PY_H_

View File

@ -14,8 +14,8 @@
* 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 <string>
@ -108,4 +108,4 @@ class TensorPy {
} // namespace tensor
} // namespace mindspore
#endif // MINDSPORE_CORE_IR_TENSOR_PY_H_
#endif // MINDSPORE_CCSRC_UTILS_TENSOR_PY_H_

View File

@ -30,7 +30,7 @@
#include "utils/log_adapter.h"
#include "utils/utils.h"
#include "ir/manager.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#include "frontend/operator/ops.h"
namespace mindspore {

View File

@ -29,7 +29,7 @@
#include "ir/tensor.h"
#include "frontend/operator/ops.h"
#include "ir/manager.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#include "utils/primitive_py.h"
#include "utils/convert_utils.h"
#include "utils/primitive_utils.h"

View File

@ -19,7 +19,7 @@
#include <algorithm>
#include "utils/symbolic.h"
#include "debug/trace.h"
#include "utils/trace_base.h"
namespace mindspore {
namespace abstract {

View File

@ -13,7 +13,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef MINDSPORE_CORE_BASE_BASE_REF_UTILS_H
#define MINDSPORE_CORE_BASE_BASE_REF_UTILS_H
#include <vector>
#include <memory>
@ -21,9 +22,7 @@
#include "ir/tensor.h"
#include "base/base_ref.h"
#ifndef MINDSPORE_CCSRC_UTILS_BASE_REF_UTILS_H
#define MINDSPORE_CCSRC_UTILS_BASE_REF_UTILS_H
namespace mindspore {
std::vector<tensor::TensorPtr> TransformVectorRefToMultiTensor(const VectorRef &base_ref);
} // namespace mindspore
#endif // MINDSPORE_CCSRC_UTILS_BASE_REF_UTILS_H
#endif // MINDSPORE_CORE_BASE_BASE_REF_UTILS_H

View File

@ -30,7 +30,7 @@
#include "base/user_data.h"
#include "ir/kernel_info_dev.h"
#include "ir/scope.h"
#include "debug/info.h"
#include "utils/info.h"
// A MindSpore ANF IR defined here.
// with BNF followed:

View File

@ -24,7 +24,6 @@
#include "ir/visitor.h"
#include "ir/func_graph.h"
#include "base/core_ops.h"
#include "debug/label.h"
namespace mindspore {
// namespace to support intermediate representation definition

View File

@ -22,7 +22,7 @@
#include <sstream>
#include <utility>
#include "debug/trace_base.h"
#include "utils/trace_base.h"
#include "ir/manager.h"
#include "utils/flags.h"
#include "utils/ordered_set.h"

View File

@ -33,6 +33,7 @@
#include "utils/ordered_set.h"
#include "utils/ordered_map.h"
#include "base/base_ref.h"
#include "ir/func_graph_cloner.h"
namespace mindspore {
using BaseRefCounterMap = OrderedMap<BaseRef, int, BaseRefHash>;
@ -420,8 +421,6 @@ size_t NewFgSeenGeneration();
std::shared_ptr<OrderedSet<CNodePtr>> FindRoots(const std::vector<CNodePtr> &segment);
// Find the leaf cnodes of a segment of cnodes.
std::shared_ptr<OrderedSet<CNodePtr>> FindLeaves(const std::vector<CNodePtr> &segment);
FuncGraphPtr BasicClone(const FuncGraphPtr &func_graph);
} // namespace mindspore
#endif // MINDSPORE_CORE_IR_FUNC_GRAPH_H_

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#include <algorithm>
@ -23,7 +23,6 @@
#include "base/core_ops.h"
#include "utils/convert_utils_base.h"
#include "utils/log_adapter.h"
#include "utils/profile.h"
#include "utils/context/ms_context.h"
#include "ir/graph_utils.h"

View File

@ -14,8 +14,8 @@
* 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 <list>
@ -128,6 +128,7 @@ ClonerPtr SpecializerClone(const FuncGraphPtr &func_graph, const TraceInfoPtr &r
FuncGraphPtr TransformableClone(const FuncGraphPtr &func_graph,
const TraceInfoPtr &relation = std::make_shared<TraceTransform>());
FuncGraphPtr BasicClone(const FuncGraphPtr &func_graph);
} // namespace mindspore
#endif // MINDSPORE_CCSRC_UTILS_FUNC_GRAPH_CLONER_H_
#endif // MINDSPORE_CORE_IR_FUNC_GRAPH_CLONER_H_

View File

@ -23,9 +23,8 @@
#include "base/core_ops.h"
#include "utils/ordered_set.h"
#include "abstract/abstract_value.h"
#include "debug/trace.h"
#include "abstract/abstract_function.h"
#include "debug/draw.h"
#include "debug/label.h"
namespace mindspore {
using mindspore::abstract::AbstractFunction;

View File

@ -28,7 +28,6 @@
#include <deque>
#include <set>
#include "debug/label.h"
#include "ir/func_graph.h"
#include "utils/log_adapter.h"
#include "utils/context/ms_context.h"

View File

@ -16,8 +16,8 @@
* 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_set>
@ -32,7 +32,7 @@
#include "ir/primitive.h"
#include "ir/scalar.h"
#include "ir/tensor.h"
#include "debug/label.h"
#include "utils/label.h"
namespace mindspore {
@ -94,4 +94,4 @@ class FuncGraphIndex {
};
} // namespace mindspore
#endif // MINDSPORE_CCSRC_UTILS_GRAPH_UTILS_H_
#endif // MINDSPORE_CORE_IR_GRAPH_UTILS_H_

View File

@ -28,7 +28,7 @@
#include "ir/visitor.h"
#include "ir/manager.h"
#include "ir/func_graph.h"
#include "debug/label.h"
#include "utils/label.h"
#include "utils/log_adapter.h"
#include "common/utils.h"

View File

@ -13,8 +13,8 @@
* See the License for the specific language governing permissions and
* 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 <string>
@ -211,4 +211,4 @@ bool AnyIsLiteral(const Any &any);
} // namespace mindspore
#endif // MINDSPORE_CCSRC_UTILS_ANY_H_
#endif // MINDSPORE_CORE_UTILS_ANY_H_

View File

@ -14,8 +14,8 @@
* 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 <memory>
@ -129,4 +129,4 @@ inline uint8_t *AddressOffset(void *address, size_t offset) {
}
} // namespace mindspore
#endif // MINDSPORE_CCSRC_UTILS_CONVERT_UTILS_BASE_H_
#endif // MINDSPORE_CORE_UTILS_CONVERT_UTILS_BASE_H_

View File

@ -14,8 +14,8 @@
* 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>
@ -33,4 +33,4 @@ inline std::size_t hash_combine(const std::initializer_list<std::size_t> &hash_v
return hash_sum;
}
} // namespace mindspore
#endif // MINDSPORE_CCSRC_UTILS_HASHING_H_
#endif // MINDSPORE_CORE_UTILS_HASHING_H_

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
#include "debug/info.h"
#include "utils/info.h"
#include <utility>
#include <fstream>
#include <sstream>

View File

@ -14,8 +14,8 @@
* 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 <string>
@ -25,7 +25,7 @@
#include <vector>
#include "base/base.h"
#include "debug/trace_info.h"
#include "utils/trace_info.h"
namespace mindspore {
// namespace to support intermediate representation definition
@ -232,4 +232,4 @@ class GraphDebugInfo : public DebugInfo {
using GraphDebugInfoPtr = std::shared_ptr<GraphDebugInfo>;
} // namespace mindspore
#endif // MINDSPORE_CCSRC_IR_INFO_H_
#endif // MINDSPORE_CORE_UTILS_INFO_H_

View File

@ -14,12 +14,12 @@
* limitations under the License.
*/
#include "debug/label.h"
#include "utils/label.h"
#include <algorithm>
#include <sstream>
#include <utility>
#include "debug/info.h"
#include "utils/info.h"
#include "ir/func_graph.h"
namespace mindspore {

View File

@ -14,8 +14,8 @@
* 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 <stdint.h>
@ -201,4 +201,4 @@ class LogWriter {
#define MS_ASSERT(f) ((void)0)
#endif
#endif // MINDSPORE_CCSRC_UTILS_LOG_ADAPTER_H_
#endif // MINDSPORE_CORE_UTILS_LOG_ADAPTER_H_

View File

@ -14,8 +14,8 @@
* 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 <list>
@ -35,4 +35,4 @@ extern const int RET_BREAK;
extern std::string demangle(const char *name);
} // namespace mindspore
#endif // MINDSPORE_CCSRC_UTILS_MISC_H_
#endif // MINDSPORE_CORE_UTILS_MISC_H_

View File

@ -14,8 +14,8 @@
* 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 <unordered_map>
@ -198,4 +198,4 @@ class OrderedMap {
};
} // namespace mindspore
#endif // MINDSPORE_CCSRC_UTILS_ORDERED_MAP_H_
#endif // MINDSPORE_CORE_UTILS_ORDERED_MAP_H_

View File

@ -16,8 +16,8 @@
* 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 <unordered_map>
@ -280,4 +280,4 @@ class OrderedSet {
} // namespace mindspore
#endif // MINDSPORE_CCSRC_UTILS_ORDERED_SET_H_
#endif // MINDSPORE_CORE_UTILS_ORDERED_SET_H_

View File

@ -14,8 +14,8 @@
* 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 <utility>
@ -135,4 +135,4 @@ std::string ToString(const std::map<T1, T2> &map) {
}
} // namespace mindspore
#endif // MINDSPORE_CCSRC_UTILS_OVERLOAD_H_
#endif // MINDSPORE_CORE_UTILS_OVERLOAD_H_

View File

@ -14,8 +14,8 @@
* 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 <memory>
@ -66,4 +66,4 @@ class Signal {
};
} // namespace mindspore
#endif // MINDSPORE_CCSRC_UTILS_EVENT_H_
#endif // MINDSPORE_CORE_UTILS_EVENT_H_

View File

@ -16,8 +16,8 @@
* 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 <memory>
@ -171,4 +171,4 @@ extern std::shared_ptr<EnvInstance> newenv;
} // namespace mindspore
#endif // MINDSPORE_CCSRC_UTILS_SYMBOLIC_H_
#endif // MINDSPORE_CORE_UTILS_SYMBOLIC_H_

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
#include "debug/trace_base.h"
#include "utils/trace_base.h"
#include <iostream>
#include <fstream>

View File

@ -13,8 +13,8 @@
* See the License for the specific language governing permissions and
* 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 <memory>
@ -23,7 +23,7 @@
#include <utility>
#include <stack>
#include "debug/info.h"
#include "utils/info.h"
#include "ir/anf.h"
#include "ir/func_graph.h"
#include "utils/any.h"
@ -36,4 +36,4 @@ std::string GetDebugInfo(const DebugInfoPtr &info, const std::string &prefix,
} // namespace trace
} // namespace mindspore
#endif // MINDSPORE_CCSRC_DEBUG_TRACE_BASE_H_
#endif // MINDSPORE_CORE_UTILS_TRACE_BASE_H_

View File

@ -14,7 +14,7 @@
* limitations under the License.
*/
#include "debug/trace_info.h"
#include "utils/trace_info.h"
#include <utility>
#include <fstream>
#include <sstream>

View File

@ -14,8 +14,8 @@
* 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 <string>
@ -414,4 +414,4 @@ class TraceCombileLikeGraphs : public TraceInfo {
};
} // namespace mindspore
#endif // MINDSPORE_CCSRC_DEBUG_TRACE_INFO_H_
#endif // MINDSPORE_CORE_UTILS_TRACE_INFO_H_

View File

@ -14,8 +14,8 @@
* 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 {
// refer to https://gcc.gnu.org/wiki/Visibility
@ -41,4 +41,4 @@ namespace mindspore {
} // namespace mindspore
#endif // MINDSPORE_CCSRC_UTILS_VISIBLE_H_
#endif // MINDSPORE_CORE_UTILS_VISIBLE_H_

View File

@ -20,7 +20,7 @@
#include "ir/manager.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 "ir/graph_utils.h"
#include "debug/draw.h"

View File

@ -17,12 +17,12 @@
#include "common/py_func_graph_fetcher.h"
#include "ir/dtype.h"
#include "ir/manager.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#include "pipeline/jit/parse/parse.h"
#include "frontend/operator/ops.h"
#include "utils/log_adapter.h"
#include "debug/draw.h"
#include "debug/label.h"
#include "utils/label.h"
#include "./common.h"
namespace mindspore {

View File

@ -21,7 +21,7 @@
#include "common/py_func_graph_fetcher.h"
#include "ir/manager.h"
#include "ir/value.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#include "utils/log_adapter.h"
#include "ir/graph_utils.h"
#include "pipeline/jit/resource.h"

View File

@ -18,7 +18,7 @@
#include "common/common_test.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 "pipeline/jit/parse/parse.h"
#include "debug/draw.h"

View File

@ -21,7 +21,7 @@
#include "common/py_func_graph_fetcher.h"
#include "ir/anf.h"
#include "ir/func_graph.h"
#include "utils/func_graph_cloner.h"
#include "ir/func_graph_cloner.h"
#include "ir/manager.h"
#include "ir/value.h"
#include "frontend/operator/ops.h"

View File

@ -21,7 +21,7 @@
#include "ir/anf.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/anf_visitor.h"
#include "frontend/optimizer/irpass.h"

View File

@ -19,7 +19,7 @@
#include "common/py_func_graph_fetcher.h"
#include "ir/manager.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 "ir/graph_utils.h"
#include "pipeline/jit/resource.h"