Merge pull request !3035 from ZhangQinghua/mastertags/v0.6.0-beta
| @@ -127,7 +127,7 @@ endif() | |||||
| ## make sub objects | ## make sub objects | ||||
| set(SUB_COMP | set(SUB_COMP | ||||
| transform pre_activate parallel pipeline device kernel common debug gvar ir onnx operator optimizer predict | transform pre_activate parallel pipeline device kernel common debug gvar ir onnx operator optimizer predict | ||||
| pybind_api pynative session utils vm | |||||
| pybind_api pynative session utils vm base abstract | |||||
| ) | ) | ||||
| foreach (_comp ${SUB_COMP}) | foreach (_comp ${SUB_COMP}) | ||||
| @@ -0,0 +1,3 @@ | |||||
| file(GLOB_RECURSE _ABSTRACT_ALL_SRC_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.cc") | |||||
| set_property(SOURCE ${_ABSTRACT_ALL_SRC_FILES} PROPERTY COMPILE_DEFINITIONS SUBMODULE_ID=mindspore::SubModuleId::SM_ABSTRACT) | |||||
| add_library(_mindspore_abstract_obj OBJECT ${_ABSTRACT_ALL_SRC_FILES}) | |||||
| @@ -16,13 +16,12 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include <algorithm> | #include <algorithm> | ||||
| #include "utils/symbolic.h" | #include "utils/symbolic.h" | ||||
| #include "pipeline/static_analysis/static_analysis.h" | |||||
| #include "pipeline/static_analysis/utils.h" | |||||
| #include "abstract/utils.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace abstract { | namespace abstract { | ||||
| @@ -16,8 +16,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef PIPELINE_STATIC_ANALYSIS_ABSTRACT_VALUE_H_ | |||||
| #define PIPELINE_STATIC_ANALYSIS_ABSTRACT_VALUE_H_ | |||||
| #ifndef MINDSPORE_CCSRC_ABSTRACT_ABSTRACT_VALUE_H_ | |||||
| #define MINDSPORE_CCSRC_ABSTRACT_ABSTRACT_VALUE_H_ | |||||
| #include <utility> | #include <utility> | ||||
| #include <vector> | #include <vector> | ||||
| @@ -27,11 +27,11 @@ | |||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| #include "utils/hashing.h" | #include "utils/hashing.h" | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "ir/dtype.h" | #include "ir/dtype.h" | ||||
| #include "ir/value.h" | #include "ir/value.h" | ||||
| #include "ir/tensor.h" | #include "ir/tensor.h" | ||||
| #include "pipeline/static_analysis/dshape.h" | |||||
| #include "abstract/dshape.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace abstract { | namespace abstract { | ||||
| @@ -623,4 +623,4 @@ class AbstractIndexedSlices : public AbstractUndetermined { | |||||
| }; | }; | ||||
| } // namespace abstract | } // namespace abstract | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // PIPELINE_STATIC_ANALYSIS_ABSTRACT_VALUE_H_ | |||||
| #endif // MINDSPORE_CCSRC_ABSTRACT_ABSTRACT_VALUE_H_ | |||||
| @@ -14,7 +14,7 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "pipeline/static_analysis/analysis_context.h" | |||||
| #include "abstract/analysis_context.h" | |||||
| #include <algorithm> | #include <algorithm> | ||||
| @@ -16,14 +16,14 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef PIPELINE_STATIC_ANALYSIS_ANALYSIS_CONTEXT_H_ | |||||
| #define PIPELINE_STATIC_ANALYSIS_ANALYSIS_CONTEXT_H_ | |||||
| #ifndef MINDSPORE_CCSRC_ABSTRACT_ANALYSIS_CONTEXT_H_ | |||||
| #define MINDSPORE_CCSRC_ABSTRACT_ANALYSIS_CONTEXT_H_ | |||||
| #include <memory> | #include <memory> | ||||
| #include <string> | #include <string> | ||||
| #include <unordered_map> | #include <unordered_map> | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "ir/meta_func_graph.h" | #include "ir/meta_func_graph.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -85,4 +85,4 @@ struct ContextEqual { | |||||
| extern const AnalysisContextPtr kDummyAnalysisContext; | extern const AnalysisContextPtr kDummyAnalysisContext; | ||||
| } // namespace abstract | } // namespace abstract | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // PIPELINE_STATIC_ANALYSIS_ANALYSIS_CONTEXT_H_ | |||||
| #endif // MINDSPORE_CCSRC_ABSTRACT_ANALYSIS_CONTEXT_H_ | |||||
| @@ -16,7 +16,7 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "pipeline/static_analysis/dshape.h" | |||||
| #include "abstract/dshape.h" | |||||
| #include <exception> | #include <exception> | ||||
| #include <iostream> | #include <iostream> | ||||
| @@ -16,8 +16,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef PIPELINE_STATIC_ANALYSIS_DSHAPE_H_ | |||||
| #define PIPELINE_STATIC_ANALYSIS_DSHAPE_H_ | |||||
| #ifndef MINDSPORE_CCSRC_ABSTRACT_DSHAPE_H_ | |||||
| #define MINDSPORE_CCSRC_ABSTRACT_DSHAPE_H_ | |||||
| #include <vector> | #include <vector> | ||||
| #include <string> | #include <string> | ||||
| @@ -27,7 +27,7 @@ | |||||
| #include <memory> | #include <memory> | ||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace abstract { | namespace abstract { | ||||
| @@ -132,4 +132,4 @@ using ListShapePtr = std::shared_ptr<ListShape>; | |||||
| } // namespace abstract | } // namespace abstract | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // PIPELINE_STATIC_ANALYSIS_DSHAPE_H_ | |||||
| #endif // MINDSPORE_CCSRC_ABSTRACT_DSHAPE_H_ | |||||
| @@ -14,13 +14,13 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "pipeline/static_analysis/param_validator.h" | |||||
| #include "abstract/param_validator.h" | |||||
| #include <string> | #include <string> | ||||
| #include <sstream> | #include <sstream> | ||||
| #include <memory> | #include <memory> | ||||
| #include "utils/symbolic.h" | #include "utils/symbolic.h" | ||||
| #include "pipeline/static_analysis/utils.h" | |||||
| #include "abstract/utils.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace abstract { | namespace abstract { | ||||
| @@ -14,15 +14,15 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef PIPELINE_STATIC_ANALYSIS_PARAM_VALIDATOR_H_ | |||||
| #define PIPELINE_STATIC_ANALYSIS_PARAM_VALIDATOR_H_ | |||||
| #ifndef MINDSPORE_CCSRC_ABSTRACT_PARAM_VALIDATOR_H_ | |||||
| #define MINDSPORE_CCSRC_ABSTRACT_PARAM_VALIDATOR_H_ | |||||
| #include <memory> | #include <memory> | ||||
| #include <string> | #include <string> | ||||
| #include <utility> | #include <utility> | ||||
| #include <vector> | #include <vector> | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "pipeline/static_analysis/utils.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "abstract/utils.h" | |||||
| #include "utils/any.h" | #include "utils/any.h" | ||||
| #include "ir/primitive.h" | #include "ir/primitive.h" | ||||
| @@ -97,4 +97,4 @@ void CheckArgsSpec(const AbstractBasePtrList &args_list) { | |||||
| } // namespace abstract | } // namespace abstract | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // PIPELINE_STATIC_ANALYSIS_PARAM_VALIDATOR_H_ | |||||
| #endif // MINDSPORE_CCSRC_ABSTRACT_PARAM_VALIDATOR_H_ | |||||
| @@ -16,13 +16,13 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "pipeline/static_analysis/utils.h" | |||||
| #include "abstract/utils.h" | |||||
| #include <string> | #include <string> | ||||
| #include <sstream> | #include <sstream> | ||||
| #include <memory> | #include <memory> | ||||
| #include "utils/symbolic.h" | #include "utils/symbolic.h" | ||||
| #include "pipeline/static_analysis/param_validator.h" | |||||
| #include "abstract/param_validator.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace abstract { | namespace abstract { | ||||
| @@ -16,14 +16,14 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef PIPELINE_STATIC_ANALYSIS_UTILS_H_ | |||||
| #define PIPELINE_STATIC_ANALYSIS_UTILS_H_ | |||||
| #ifndef MINDSPORE_CCSRC_ABSTRACT_UTILS_H_ | |||||
| #define MINDSPORE_CCSRC_ABSTRACT_UTILS_H_ | |||||
| #include <vector> | #include <vector> | ||||
| #include <utility> | #include <utility> | ||||
| #include <memory> | #include <memory> | ||||
| #include <string> | #include <string> | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "utils/any.h" | #include "utils/any.h" | ||||
| #include "utils/misc.h" | #include "utils/misc.h" | ||||
| #include "utils/convert_utils.h" | #include "utils/convert_utils.h" | ||||
| @@ -53,4 +53,4 @@ int GetPositiveAxis(int axis_value, size_t increment); | |||||
| ShapePtr GetBroadcastShape(const std::string &op, const AbstractTensorPtr &tensor_x, const AbstractTensorPtr &tensor_y); | ShapePtr GetBroadcastShape(const std::string &op, const AbstractTensorPtr &tensor_x, const AbstractTensorPtr &tensor_y); | ||||
| } // namespace abstract | } // namespace abstract | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // PIPELINE_STATIC_ANALYSIS_UTILS_H_ | |||||
| #endif // MINDSPORE_CCSRC_ABSTRACT_UTILS_H_ | |||||
| @@ -0,0 +1,3 @@ | |||||
| file(GLOB_RECURSE _BASE_ALL_SRC_FILES RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.cc") | |||||
| set_property(SOURCE ${_BASE_ALL_SRC_FILES} PROPERTY COMPILE_DEFINITIONS SUBMODULE_ID=mindspore::SubModuleId::SM_BASE) | |||||
| add_library(_mindspore_base_obj OBJECT ${_BASE_ALL_SRC_FILES}) | |||||
| @@ -14,7 +14,7 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include <atomic> | #include <atomic> | ||||
| #include <mutex> | #include <mutex> | ||||
| #include <unordered_map> | #include <unordered_map> | ||||
| @@ -14,8 +14,8 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #ifndef MINDSPORE_CCSRC_IR_BASE_H_ | |||||
| #define MINDSPORE_CCSRC_IR_BASE_H_ | |||||
| #ifndef MINDSPORE_CCSRC_BASE_BASE_H_ | |||||
| #define MINDSPORE_CCSRC_BASE_BASE_H_ | |||||
| #include <atomic> | #include <atomic> | ||||
| #include <iostream> | #include <iostream> | ||||
| @@ -149,4 +149,4 @@ struct MS_EXPORT TypeIdManager { | |||||
| }; | }; | ||||
| } // namespace mindspore | } // namespace mindspore | ||||
| #endif // MINDSPORE_CCSRC_IR_BASE_H_ | |||||
| #endif // MINDSPORE_CCSRC_BASE_BASE_H_ | |||||
| @@ -23,8 +23,8 @@ | |||||
| #include "pybind11/pybind11.h" | #include "pybind11/pybind11.h" | ||||
| #include "pybind11/stl.h" | #include "pybind11/stl.h" | ||||
| #include "pipeline/static_analysis/dshape.h" | |||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/dshape.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "pipeline/static_analysis/abstract_function.h" | #include "pipeline/static_analysis/abstract_function.h" | ||||
| #include "pipeline/parse/python_adapter.h" | #include "pipeline/parse/python_adapter.h" | ||||
| #include "pipeline/parse/parse.h" | #include "pipeline/parse/parse.h" | ||||
| @@ -24,7 +24,7 @@ | |||||
| #include <utility> | #include <utility> | ||||
| #include <vector> | #include <vector> | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "debug/trace_info.h" | #include "debug/trace_info.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -24,7 +24,7 @@ | |||||
| #include <utility> | #include <utility> | ||||
| #include <vector> | #include <vector> | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| class TraceInfo; | class TraceInfo; | ||||
| @@ -20,7 +20,7 @@ | |||||
| #include <mutex> | #include <mutex> | ||||
| #include <unordered_map> | #include <unordered_map> | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -26,7 +26,7 @@ | |||||
| #include <unordered_map> | #include <unordered_map> | ||||
| #include <utility> | #include <utility> | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "debug/info.h" | #include "debug/info.h" | ||||
| #include "ir/scope.h" | #include "ir/scope.h" | ||||
| @@ -28,7 +28,7 @@ | |||||
| #include <type_traits> | #include <type_traits> | ||||
| #include <unordered_map> | #include <unordered_map> | ||||
| #include <algorithm> | #include <algorithm> | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "ir/named.h" | #include "ir/named.h" | ||||
| #include "ir/dtype/type.h" | #include "ir/dtype/type.h" | ||||
| @@ -29,7 +29,7 @@ | |||||
| #include <type_traits> | #include <type_traits> | ||||
| #include <unordered_map> | #include <unordered_map> | ||||
| #include <algorithm> | #include <algorithm> | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "ir/named.h" | #include "ir/named.h" | ||||
| #include "ir/dtype/type.h" | #include "ir/dtype/type.h" | ||||
| @@ -29,7 +29,7 @@ | |||||
| #include <type_traits> | #include <type_traits> | ||||
| #include <unordered_map> | #include <unordered_map> | ||||
| #include <algorithm> | #include <algorithm> | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "ir/named.h" | #include "ir/named.h" | ||||
| #include "ir/dtype/type.h" | #include "ir/dtype/type.h" | ||||
| @@ -29,7 +29,7 @@ | |||||
| #include <type_traits> | #include <type_traits> | ||||
| #include <unordered_map> | #include <unordered_map> | ||||
| #include <algorithm> | #include <algorithm> | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "ir/named.h" | #include "ir/named.h" | ||||
| #include "ir/dtype/type.h" | #include "ir/dtype/type.h" | ||||
| @@ -29,7 +29,7 @@ | |||||
| #include <type_traits> | #include <type_traits> | ||||
| #include <unordered_map> | #include <unordered_map> | ||||
| #include <algorithm> | #include <algorithm> | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "ir/named.h" | #include "ir/named.h" | ||||
| #include "ir/dtype/type.h" | #include "ir/dtype/type.h" | ||||
| @@ -32,7 +32,7 @@ | |||||
| #include <unordered_map> | #include <unordered_map> | ||||
| #include <algorithm> | #include <algorithm> | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "ir/named.h" | #include "ir/named.h" | ||||
| #include "ir/dtype/type_id.h" | #include "ir/dtype/type_id.h" | ||||
| @@ -15,7 +15,7 @@ | |||||
| */ | */ | ||||
| #include "ir/dtype/type.h" | #include "ir/dtype/type.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| abstract::AbstractBasePtr Type::ToAbstract() { | abstract::AbstractBasePtr Type::ToAbstract() { | ||||
| @@ -19,7 +19,7 @@ | |||||
| #include <cstdlib> | #include <cstdlib> | ||||
| #include <algorithm> | #include <algorithm> | ||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| TypePtr TypeAnything::DeepCopy() const { return kAnyType; } | TypePtr TypeAnything::DeepCopy() const { return kAnyType; } | ||||
| @@ -19,7 +19,7 @@ | |||||
| #include <cstdlib> | #include <cstdlib> | ||||
| #include <algorithm> | #include <algorithm> | ||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "pybind_api/api_register.h" | #include "pybind_api/api_register.h" | ||||
| #include "pybind_api/export_flags.h" | #include "pybind_api/export_flags.h" | ||||
| @@ -24,7 +24,7 @@ | |||||
| #include "ir/func_graph_cloner.h" | #include "ir/func_graph_cloner.h" | ||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| #include "utils/ordered_set.h" | #include "utils/ordered_set.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "pipeline/static_analysis/static_analysis.h" | #include "pipeline/static_analysis/static_analysis.h" | ||||
| #include "pipeline/static_analysis/abstract_function.h" | #include "pipeline/static_analysis/abstract_function.h" | ||||
| @@ -30,7 +30,7 @@ | |||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "ir/signature.h" | #include "ir/signature.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| // namespace to support intermediate representation definition | // namespace to support intermediate representation definition | ||||
| @@ -22,7 +22,7 @@ | |||||
| #include <memory> | #include <memory> | ||||
| #include <string> | #include <string> | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "ir/dtype.h" | #include "ir/dtype.h" | ||||
| #include "utils/convert_utils.h" | #include "utils/convert_utils.h" | ||||
| #include "utils/hashing.h" | #include "utils/hashing.h" | ||||
| @@ -22,7 +22,7 @@ | |||||
| #include <sstream> | #include <sstream> | ||||
| #include <string> | #include <string> | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace tensor { | namespace tensor { | ||||
| @@ -15,7 +15,7 @@ | |||||
| */ | */ | ||||
| #include "ir/named.h" | #include "ir/named.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| bool Named::operator==(const Value &other) const { | bool Named::operator==(const Value &other) const { | ||||
| @@ -24,9 +24,10 @@ | |||||
| #include <tuple> | #include <tuple> | ||||
| #include "ir/dtype/type.h" | #include "ir/dtype/type.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "parallel/ops_info/operator_info.h" | #include "parallel/ops_info/operator_info.h" | ||||
| #include "utils/base_ref_extends.h" | #include "utils/base_ref_extends.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| // Supported meta type | // Supported meta type | ||||
| enum PrimType { | enum PrimType { | ||||
| @@ -24,13 +24,14 @@ | |||||
| #include <tuple> | #include <tuple> | ||||
| #include <map> | #include <map> | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "utils/misc.h" | #include "utils/misc.h" | ||||
| #include "pybind11/pybind11.h" | #include "pybind11/pybind11.h" | ||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| #include "ir/primitive.h" | #include "ir/primitive.h" | ||||
| #include "ir/signature.h" | #include "ir/signature.h" | ||||
| #include "parallel/ops_info/operator_info.h" | #include "parallel/ops_info/operator_info.h" | ||||
| namespace py = pybind11; | namespace py = pybind11; | ||||
| namespace mindspore { | namespace mindspore { | ||||
| class PrimitivePy : public Primitive { | class PrimitivePy : public Primitive { | ||||
| @@ -27,7 +27,7 @@ | |||||
| #include <utility> | #include <utility> | ||||
| #include <cfloat> | #include <cfloat> | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "ir/dtype.h" | #include "ir/dtype.h" | ||||
| #include "ir/dtype/number.h" | #include "ir/dtype/number.h" | ||||
| @@ -29,7 +29,7 @@ | |||||
| #include <typeinfo> | #include <typeinfo> | ||||
| #include "device/device_address.h" | #include "device/device_address.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace tensor { | namespace tensor { | ||||
| @@ -25,7 +25,7 @@ | |||||
| #include "device/device_address.h" | #include "device/device_address.h" | ||||
| #include "pybind_api/api_register.h" | #include "pybind_api/api_register.h" | ||||
| #include "pybind_api/export_flags.h" | #include "pybind_api/export_flags.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace tensor { | namespace tensor { | ||||
| @@ -25,7 +25,7 @@ | |||||
| #include <sstream> | #include <sstream> | ||||
| #include <utility> | #include <utility> | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "ir/dtype.h" | #include "ir/dtype.h" | ||||
| #include "ir/scalar.h" | #include "ir/scalar.h" | ||||
| @@ -20,7 +20,7 @@ | |||||
| #include <cmath> | #include <cmath> | ||||
| #include <cfloat> | #include <cfloat> | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| using ContextPtr = abstract::AnalysisContextPtr; | using ContextPtr = abstract::AnalysisContextPtr; | ||||
| @@ -18,7 +18,7 @@ | |||||
| #include <string> | #include <string> | ||||
| #include "pybind_api/api_register.h" | #include "pybind_api/api_register.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| // Define python 'RefKey' class. | // Define python 'RefKey' class. | ||||
| @@ -17,7 +17,7 @@ | |||||
| #ifndef MINDSPORE_CCSRC_KERNEL_AKG_GPU_AKG_GPU_KERNEL_BUILD_H_ | #ifndef MINDSPORE_CCSRC_KERNEL_AKG_GPU_AKG_GPU_KERNEL_BUILD_H_ | ||||
| #define MINDSPORE_CCSRC_KERNEL_AKG_GPU_AKG_GPU_KERNEL_BUILD_H_ | #define MINDSPORE_CCSRC_KERNEL_AKG_GPU_AKG_GPU_KERNEL_BUILD_H_ | ||||
| #include "kernel/kernel.h" | #include "kernel/kernel.h" | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace kernel { | namespace kernel { | ||||
| @@ -23,7 +23,7 @@ | |||||
| #include "ir/dtype.h" | #include "ir/dtype.h" | ||||
| #include "utils/utils.h" | #include "utils/utils.h" | ||||
| #include "ir/tensor.h" | #include "ir/tensor.h" | ||||
| #include "pipeline/static_analysis/dshape.h" | |||||
| #include "abstract/dshape.h" | |||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -21,7 +21,7 @@ | |||||
| #include <memory> | #include <memory> | ||||
| #include <vector> | #include <vector> | ||||
| #include "nlohmann/json.hpp" | #include "nlohmann/json.hpp" | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "kernel/oplib/opinfo.h" | #include "kernel/oplib/opinfo.h" | ||||
| // Note: This file is mainly used to adapt the ME front-end operator description and | // Note: This file is mainly used to adapt the ME front-end operator description and | ||||
| // the TBE back-end operator implementation difference | // the TBE back-end operator implementation difference | ||||
| @@ -19,7 +19,7 @@ | |||||
| #include <string> | #include <string> | ||||
| #include "kernel/kernel.h" | #include "kernel/kernel.h" | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "ir/dtype/type.h" | #include "ir/dtype/type.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -24,10 +24,10 @@ | |||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "pipeline/static_analysis/abstract_function.h" | #include "pipeline/static_analysis/abstract_function.h" | ||||
| #include "pipeline/static_analysis/dshape.h" | |||||
| #include "pipeline/static_analysis/param_validator.h" | |||||
| #include "abstract/dshape.h" | |||||
| #include "abstract/param_validator.h" | |||||
| #include "operator/cc_implementations.h" | #include "operator/cc_implementations.h" | ||||
| #include "optimizer/opt.h" | #include "optimizer/opt.h" | ||||
| #include "utils/symbolic.h" | #include "utils/symbolic.h" | ||||
| @@ -18,10 +18,10 @@ | |||||
| #include <algorithm> | #include <algorithm> | ||||
| #include <utility> | #include <utility> | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "pipeline/static_analysis/dshape.h" | |||||
| #include "pipeline/static_analysis/param_validator.h" | |||||
| #include "abstract/dshape.h" | |||||
| #include "abstract/param_validator.h" | |||||
| #include "operator/cc_implementations.h" | #include "operator/cc_implementations.h" | ||||
| #include "optimizer/opt.h" | #include "optimizer/opt.h" | ||||
| #include "utils/symbolic.h" | #include "utils/symbolic.h" | ||||
| @@ -20,7 +20,7 @@ | |||||
| #include <string> | #include <string> | ||||
| #include <memory> | #include <memory> | ||||
| #include "pipeline/static_analysis/param_validator.h" | |||||
| #include "abstract/param_validator.h" | |||||
| #include "optimizer/opt.h" | #include "optimizer/opt.h" | ||||
| #include "pybind_api/api_register.h" | #include "pybind_api/api_register.h" | ||||
| @@ -22,9 +22,9 @@ | |||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "pipeline/static_analysis/abstract_function.h" | #include "pipeline/static_analysis/abstract_function.h" | ||||
| #include "pipeline/static_analysis/dshape.h" | |||||
| #include "abstract/dshape.h" | |||||
| #include "pybind_api/api_register.h" | #include "pybind_api/api_register.h" | ||||
| #include "debug/trace.h" | #include "debug/trace.h" | ||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| @@ -24,10 +24,10 @@ | |||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "pipeline/static_analysis/abstract_function.h" | #include "pipeline/static_analysis/abstract_function.h" | ||||
| #include "pipeline/static_analysis/dshape.h" | |||||
| #include "pipeline/static_analysis/param_validator.h" | |||||
| #include "abstract/dshape.h" | |||||
| #include "abstract/param_validator.h" | |||||
| #include "operator/cc_implementations.h" | #include "operator/cc_implementations.h" | ||||
| #include "optimizer/opt.h" | #include "optimizer/opt.h" | ||||
| #include "utils/context/ms_context.h" | #include "utils/context/ms_context.h" | ||||
| @@ -19,9 +19,9 @@ | |||||
| #include <utility> | #include <utility> | ||||
| #include "./common.h" | #include "./common.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "pipeline/static_analysis/dshape.h" | |||||
| #include "pipeline/static_analysis/param_validator.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "abstract/dshape.h" | |||||
| #include "abstract/param_validator.h" | |||||
| #include "operator/cc_implementations.h" | #include "operator/cc_implementations.h" | ||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "optimizer/opt.h" | #include "optimizer/opt.h" | ||||
| @@ -19,9 +19,9 @@ | |||||
| #include "operator/composite/zip_operation.h" | #include "operator/composite/zip_operation.h" | ||||
| #include <algorithm> | #include <algorithm> | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "pipeline/static_analysis/dshape.h" | |||||
| #include "abstract/dshape.h" | |||||
| #include "operator/cc_implementations.h" | #include "operator/cc_implementations.h" | ||||
| #include "optimizer/opt.h" | #include "optimizer/opt.h" | ||||
| #include "pybind_api/api_register.h" | #include "pybind_api/api_register.h" | ||||
| @@ -16,9 +16,9 @@ | |||||
| #include "pipeline/static_analysis/prim.h" | #include "pipeline/static_analysis/prim.h" | ||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| #include "pipeline/static_analysis/utils.h" | |||||
| #include "abstract/utils.h" | |||||
| #include "operator/cc_implementations.h" | #include "operator/cc_implementations.h" | ||||
| #include "pipeline/static_analysis/param_validator.h" | |||||
| #include "abstract/param_validator.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace abstract { | namespace abstract { | ||||
| @@ -14,10 +14,10 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "pipeline/static_analysis/param_validator.h" | |||||
| #include "abstract/param_validator.h" | |||||
| #include "pipeline/static_analysis/prim.h" | #include "pipeline/static_analysis/prim.h" | ||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| #include "pipeline/static_analysis/utils.h" | |||||
| #include "abstract/utils.h" | |||||
| #include "utils/symbolic.h" | #include "utils/symbolic.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -16,8 +16,8 @@ | |||||
| #include "pipeline/static_analysis/prim.h" | #include "pipeline/static_analysis/prim.h" | ||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| #include "pipeline/static_analysis/utils.h" | |||||
| #include "pipeline/static_analysis/param_validator.h" | |||||
| #include "abstract/utils.h" | |||||
| #include "abstract/param_validator.h" | |||||
| #include "common/utils.h" | #include "common/utils.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -16,8 +16,8 @@ | |||||
| #include "pipeline/static_analysis/prim.h" | #include "pipeline/static_analysis/prim.h" | ||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| #include "pipeline/static_analysis/utils.h" | |||||
| #include "pipeline/static_analysis/param_validator.h" | |||||
| #include "abstract/utils.h" | |||||
| #include "abstract/param_validator.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace abstract { | namespace abstract { | ||||
| @@ -20,9 +20,9 @@ | |||||
| #include "ir/dtype.h" | #include "ir/dtype.h" | ||||
| #include "common/utils.h" | #include "common/utils.h" | ||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| #include "pipeline/static_analysis/param_validator.h" | |||||
| #include "abstract/param_validator.h" | |||||
| #include "pipeline/static_analysis/prim.h" | #include "pipeline/static_analysis/prim.h" | ||||
| #include "pipeline/static_analysis/utils.h" | |||||
| #include "abstract/utils.h" | |||||
| #include "utils/context/ms_context.h" | #include "utils/context/ms_context.h" | ||||
| #include "utils/symbolic.h" | #include "utils/symbolic.h" | ||||
| @@ -14,10 +14,10 @@ | |||||
| * limitations under the License. | * limitations under the License. | ||||
| */ | */ | ||||
| #include "pipeline/static_analysis/param_validator.h" | |||||
| #include "abstract/param_validator.h" | |||||
| #include "pipeline/static_analysis/prim.h" | #include "pipeline/static_analysis/prim.h" | ||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| #include "pipeline/static_analysis/utils.h" | |||||
| #include "abstract/utils.h" | |||||
| #include "utils/symbolic.h" | #include "utils/symbolic.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -17,8 +17,8 @@ | |||||
| */ | */ | ||||
| #include "pipeline/static_analysis/prim.h" | #include "pipeline/static_analysis/prim.h" | ||||
| #include "pipeline/static_analysis/utils.h" | |||||
| #include "pipeline/static_analysis/param_validator.h" | |||||
| #include "abstract/utils.h" | |||||
| #include "abstract/param_validator.h" | |||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| #include "utils/convert_utils.h" | #include "utils/convert_utils.h" | ||||
| #include "ir/tensor_py.h" | #include "ir/tensor_py.h" | ||||
| @@ -24,7 +24,7 @@ | |||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| #include "utils/any.h" | #include "utils/any.h" | ||||
| #include "ir/manager.h" | #include "ir/manager.h" | ||||
| #include "pipeline/static_analysis/dshape.h" | |||||
| #include "abstract/dshape.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| /* namespace to support opt */ | /* namespace to support opt */ | ||||
| @@ -25,7 +25,7 @@ | |||||
| #include "optimizer/optimizer.h" | #include "optimizer/optimizer.h" | ||||
| #include "ir/visitor.h" | #include "ir/visitor.h" | ||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| #include "pipeline/static_analysis/dshape.h" | |||||
| #include "abstract/dshape.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace opt { | namespace opt { | ||||
| @@ -25,7 +25,7 @@ | |||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| #include "optimizer/irpass.h" | #include "optimizer/irpass.h" | ||||
| #include "optimizer/optimizer.h" | #include "optimizer/optimizer.h" | ||||
| #include "pipeline/static_analysis/dshape.h" | |||||
| #include "abstract/dshape.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace opt { | namespace opt { | ||||
| @@ -29,7 +29,7 @@ | |||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "ir/func_graph.h" | #include "ir/func_graph.h" | ||||
| #include "debug/info.h" | #include "debug/info.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace parallel { | namespace parallel { | ||||
| @@ -18,7 +18,7 @@ | |||||
| #define MINDSPORE_CCSRC_PARALLEL_GRAPH_UTIL_NODE_INFO_H_ | #define MINDSPORE_CCSRC_PARALLEL_GRAPH_UTIL_NODE_INFO_H_ | ||||
| #include <string> | #include <string> | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace parallel { | namespace parallel { | ||||
| @@ -26,7 +26,7 @@ | |||||
| #include <vector> | #include <vector> | ||||
| #include "common/utils.h" | #include "common/utils.h" | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "parallel/auto_parallel/costmodel.h" | #include "parallel/auto_parallel/costmodel.h" | ||||
| #include "parallel/auto_parallel/operator_costmodel.h" | #include "parallel/auto_parallel/operator_costmodel.h" | ||||
| #include "parallel/device_manager.h" | #include "parallel/device_manager.h" | ||||
| @@ -30,7 +30,7 @@ | |||||
| #include "pipeline/pass.h" | #include "pipeline/pass.h" | ||||
| #include "pipeline/parse/parse_base.h" | #include "pipeline/parse/parse_base.h" | ||||
| #include "pipeline/parse/data_converter.h" | #include "pipeline/parse/data_converter.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "pipeline/static_analysis/static_analysis.h" | #include "pipeline/static_analysis/static_analysis.h" | ||||
| #include "pipeline/static_analysis/program_specialize.h" | #include "pipeline/static_analysis/program_specialize.h" | ||||
| #include "pipeline/resource.h" | #include "pipeline/resource.h" | ||||
| @@ -23,7 +23,7 @@ | |||||
| #include "ir/manager.h" | #include "ir/manager.h" | ||||
| #include "pipeline/parse/python_adapter.h" | #include "pipeline/parse/python_adapter.h" | ||||
| #include "pipeline/parse/parse_base.h" | #include "pipeline/parse/parse_base.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| // forward declaration of ResourceBase | // forward declaration of ResourceBase | ||||
| @@ -29,7 +29,7 @@ | |||||
| #include "transform/graph_builder.h" | #include "transform/graph_builder.h" | ||||
| #include "transform/graph_runner.h" | #include "transform/graph_runner.h" | ||||
| #include "debug/draw.h" | #include "debug/draw.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace pipeline { | namespace pipeline { | ||||
| @@ -19,7 +19,7 @@ | |||||
| #include <unordered_map> | #include <unordered_map> | ||||
| #include <vector> | #include <vector> | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "ir/manager.h" | #include "ir/manager.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -18,7 +18,6 @@ | |||||
| #include <vector> | #include <vector> | ||||
| #include "pipeline/static_analysis/analysis_context.h" | |||||
| #include "pipeline/static_analysis/static_analysis.h" | #include "pipeline/static_analysis/static_analysis.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -22,8 +22,8 @@ | |||||
| #include <memory> | #include <memory> | ||||
| #include <string> | #include <string> | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "pipeline/static_analysis/analysis_context.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "abstract/analysis_context.h" | |||||
| #include "ir/meta_func_graph.h" | #include "ir/meta_func_graph.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -20,7 +20,7 @@ | |||||
| #include <unordered_set> | #include <unordered_set> | ||||
| #include "ir/func_graph_cloner.h" | #include "ir/func_graph_cloner.h" | ||||
| #include "pipeline/static_analysis/utils.h" | |||||
| #include "abstract/utils.h" | |||||
| #include "debug/trace.h" | #include "debug/trace.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -29,7 +29,7 @@ | |||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| #include "operator/composite/do_signature.h" | #include "operator/composite/do_signature.h" | ||||
| #include "operator/prim_to_function.h" | #include "operator/prim_to_function.h" | ||||
| #include "pipeline/static_analysis/utils.h" | |||||
| #include "abstract/utils.h" | |||||
| #include "utils/symbolic.h" | #include "utils/symbolic.h" | ||||
| #include "./common.h" | #include "./common.h" | ||||
| #include "pipeline/resource.h" | #include "pipeline/resource.h" | ||||
| @@ -38,7 +38,7 @@ | |||||
| #include "utils/convert_utils.h" | #include "utils/convert_utils.h" | ||||
| #include "utils/context/ms_context.h" | #include "utils/context/ms_context.h" | ||||
| #include "pipeline/parse/data_converter.h" | #include "pipeline/parse/data_converter.h" | ||||
| #include "pipeline/static_analysis/param_validator.h" | |||||
| #include "abstract/param_validator.h" | |||||
| #include "common/utils.h" | #include "common/utils.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -21,7 +21,7 @@ | |||||
| #include <algorithm> | #include <algorithm> | ||||
| #include <set> | #include <set> | ||||
| #include "pipeline/static_analysis/utils.h" | |||||
| #include "abstract/utils.h" | |||||
| #include "pipeline/static_analysis/prim.h" | #include "pipeline/static_analysis/prim.h" | ||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| #include "utils/symbolic.h" | #include "utils/symbolic.h" | ||||
| @@ -34,7 +34,7 @@ | |||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "ir/primitive_py.h" | #include "ir/primitive_py.h" | ||||
| #include "pipeline/static_analysis/analysis_context.h" | |||||
| #include "abstract/analysis_context.h" | |||||
| #include "pipeline/static_analysis/abstract_function.h" | #include "pipeline/static_analysis/abstract_function.h" | ||||
| #include "pipeline/parse/parse.h" | #include "pipeline/parse/parse.h" | ||||
| @@ -20,7 +20,7 @@ | |||||
| #include "ir/primitive.h" | #include "ir/primitive.h" | ||||
| #include "utils/utils.h" | #include "utils/utils.h" | ||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "pre_activate/common/helper.h" | #include "pre_activate/common/helper.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -20,7 +20,7 @@ | |||||
| #include "ir/primitive.h" | #include "ir/primitive.h" | ||||
| #include "utils/utils.h" | #include "utils/utils.h" | ||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "pre_activate/common/helper.h" | #include "pre_activate/common/helper.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -22,7 +22,7 @@ | |||||
| #include "session/anf_runtime_algorithm.h" | #include "session/anf_runtime_algorithm.h" | ||||
| #include "ir/primitive.h" | #include "ir/primitive.h" | ||||
| #include "utils/utils.h" | #include "utils/utils.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "pre_activate/common/helper.h" | #include "pre_activate/common/helper.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -19,7 +19,7 @@ | |||||
| #include "session/anf_runtime_algorithm.h" | #include "session/anf_runtime_algorithm.h" | ||||
| #include "ir/primitive.h" | #include "ir/primitive.h" | ||||
| #include "utils/utils.h" | #include "utils/utils.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "pre_activate/common/helper.h" | #include "pre_activate/common/helper.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -17,7 +17,7 @@ | |||||
| #define MINDSPORE_CCSRC_PRE_ACTIVATE_COMMON_FUSION_ID_ALLOCATOR_H_ | #define MINDSPORE_CCSRC_PRE_ACTIVATE_COMMON_FUSION_ID_ALLOCATOR_H_ | ||||
| #include <memory> | #include <memory> | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace opt { | namespace opt { | ||||
| @@ -34,7 +34,7 @@ | |||||
| #include <utility> | #include <utility> | ||||
| #include "pre_activate/common/visit.h" | #include "pre_activate/common/visit.h" | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| #include "utils/base_ref.h" | #include "utils/base_ref.h" | ||||
| @@ -26,7 +26,7 @@ | |||||
| #include <string> | #include <string> | ||||
| #include <memory> | #include <memory> | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "utils/base_ref.h" | #include "utils/base_ref.h" | ||||
| // namespace to support utils definition | // namespace to support utils definition | ||||
| @@ -20,7 +20,7 @@ | |||||
| #include "ir/primitive.h" | #include "ir/primitive.h" | ||||
| #include "utils/context/ms_context.h" | #include "utils/context/ms_context.h" | ||||
| #include "utils/utils.h" | #include "utils/utils.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "pre_activate/common/helper.h" | #include "pre_activate/common/helper.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -27,7 +27,7 @@ | |||||
| #include "pybind11/pybind11.h" | #include "pybind11/pybind11.h" | ||||
| #include "ir/primitive_py.h" | #include "ir/primitive_py.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace pynative { | namespace pynative { | ||||
| @@ -25,7 +25,7 @@ | |||||
| #include <memory> | #include <memory> | ||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "ir/dtype.h" | #include "ir/dtype.h" | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "ir/primitive.h" | #include "ir/primitive.h" | ||||
| #include "device/device_address.h" | #include "device/device_address.h" | ||||
| #include "kernel/kernel.h" | #include "kernel/kernel.h" | ||||
| @@ -25,7 +25,7 @@ | |||||
| #include <cfloat> | #include <cfloat> | ||||
| #include "pybind11/pybind11.h" | #include "pybind11/pybind11.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "pipeline/parse/parse.h" | #include "pipeline/parse/parse.h" | ||||
| #include "pipeline/parse/parse_base.h" | #include "pipeline/parse/parse_base.h" | ||||
| #include "ir/value.h" | #include "ir/value.h" | ||||
| @@ -28,7 +28,7 @@ | |||||
| #include "utils/convert_utils_base.h" | #include "utils/convert_utils_base.h" | ||||
| #include "utils/any.h" | #include "utils/any.h" | ||||
| #include "utils/base_ref.h" | #include "utils/base_ref.h" | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| namespace py = pybind11; | namespace py = pybind11; | ||||
| @@ -24,7 +24,7 @@ | |||||
| #include "ir/tensor.h" | #include "ir/tensor.h" | ||||
| #include "ir/param_value.h" | #include "ir/param_value.h" | ||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "proto/onnx.pb.h" | #include "proto/onnx.pb.h" | ||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| @@ -157,6 +157,7 @@ static std::string ExceptionTypeToString(ExceptionType type) { | |||||
| static const char *GetSubModuleName(SubModuleId module_id) { | static const char *GetSubModuleName(SubModuleId module_id) { | ||||
| static const char *sub_module_names[NUM_SUBMODUES] = { | static const char *sub_module_names[NUM_SUBMODUES] = { | ||||
| "UNKNOWN", // SM_UNKNOWN | "UNKNOWN", // SM_UNKNOWN | ||||
| "BASE", // SM_BASE | |||||
| "ANALYZER", // SM_ANALYZER | "ANALYZER", // SM_ANALYZER | ||||
| "COMMON", // SM_COMMON | "COMMON", // SM_COMMON | ||||
| "DEBUG", // SM_DEBUG | "DEBUG", // SM_DEBUG | ||||
| @@ -176,6 +177,7 @@ static const char *GetSubModuleName(SubModuleId module_id) { | |||||
| "SESSION", // SM_SESSION | "SESSION", // SM_SESSION | ||||
| "UTILS", // SM_UTILS | "UTILS", // SM_UTILS | ||||
| "VM" // SM_VM | "VM" // SM_VM | ||||
| "ABSTRACT" // SM_ABSTRACT | |||||
| }; | }; | ||||
| return sub_module_names[module_id % NUM_SUBMODUES]; | return sub_module_names[module_id % NUM_SUBMODUES]; | ||||
| @@ -100,6 +100,7 @@ enum MsLogLevel : int { DEBUG = 0, INFO, WARNING, ERROR, EXCEPTION }; | |||||
| enum SubModuleId : int { | enum SubModuleId : int { | ||||
| SM_UNKNOWN = 0, // unknown submodule | SM_UNKNOWN = 0, // unknown submodule | ||||
| SM_BASE, // base | |||||
| SM_ANALYZER, // static analyzer | SM_ANALYZER, // static analyzer | ||||
| SM_COMMON, // common | SM_COMMON, // common | ||||
| SM_DEBUG, // debug | SM_DEBUG, // debug | ||||
| @@ -119,6 +120,7 @@ enum SubModuleId : int { | |||||
| SM_SESSION, // session | SM_SESSION, // session | ||||
| SM_UTILS, // utils | SM_UTILS, // utils | ||||
| SM_VM, // VM | SM_VM, // VM | ||||
| SM_ABSTRACT, // abstract | |||||
| NUM_SUBMODUES // number of submodules | NUM_SUBMODUES // number of submodules | ||||
| }; | }; | ||||
| @@ -26,7 +26,7 @@ | |||||
| #include <string> | #include <string> | ||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "utils/any.h" | #include "utils/any.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -26,7 +26,7 @@ | |||||
| #include <string> | #include <string> | ||||
| #include <vector> | #include <vector> | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #ifdef ENABLE_GE | #ifdef ENABLE_GE | ||||
| #include "transform/convert.h" | #include "transform/convert.h" | ||||
| #endif | #endif | ||||
| @@ -51,6 +51,8 @@ else() | |||||
| endif() | endif() | ||||
| file(GLOB_RECURSE MINDSPORE_SRC_LIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} | file(GLOB_RECURSE MINDSPORE_SRC_LIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} | ||||
| "../../../mindspore/ccsrc/base/*.cc" | |||||
| "../../../mindspore/ccsrc/abstract/*.cc" | |||||
| "../../../mindspore/ccsrc/ir/*.cc" | "../../../mindspore/ccsrc/ir/*.cc" | ||||
| "../../../mindspore/ccsrc/common/*.cc" | "../../../mindspore/ccsrc/common/*.cc" | ||||
| "../../../mindspore/ccsrc/utils/*.cc" | "../../../mindspore/ccsrc/utils/*.cc" | ||||
| @@ -19,7 +19,7 @@ | |||||
| #include "common/common_test.h" | #include "common/common_test.h" | ||||
| #include "pipeline/static_analysis/static_analysis.h" | #include "pipeline/static_analysis/static_analysis.h" | ||||
| #include "pipeline/static_analysis/utils.h" | |||||
| #include "abstract/utils.h" | |||||
| #include "pipeline/static_analysis/prim.h" | #include "pipeline/static_analysis/prim.h" | ||||
| #include "pipeline/parse/parse.h" | #include "pipeline/parse/parse.h" | ||||
| #include "pipeline/parse/resolve.h" | #include "pipeline/parse/resolve.h" | ||||
| @@ -18,7 +18,7 @@ | |||||
| #include "common/common_test.h" | #include "common/common_test.h" | ||||
| #include "pipeline/static_analysis/dshape.h" | |||||
| #include "abstract/dshape.h" | |||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -13,7 +13,7 @@ | |||||
| * 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. | ||||
| */ | */ | ||||
| #include "pipeline/static_analysis/utils.h" | |||||
| #include "abstract/utils.h" | |||||
| #include "common/common_test.h" | #include "common/common_test.h" | ||||
| #include "pipeline/static_analysis/static_analysis.h" | #include "pipeline/static_analysis/static_analysis.h" | ||||
| @@ -17,7 +17,7 @@ | |||||
| #include "common/common_test.h" | #include "common/common_test.h" | ||||
| #include "utils/any.h" | #include "utils/any.h" | ||||
| #include "ir/base.h" | |||||
| #include "base/base.h" | |||||
| #include "ir/anf.h" | #include "ir/anf.h" | ||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| @@ -21,7 +21,7 @@ | |||||
| #include "common/common_test.h" | #include "common/common_test.h" | ||||
| #include "ir/value.h" | #include "ir/value.h" | ||||
| #include "pipeline/static_analysis/abstract_value.h" | |||||
| #include "abstract/abstract_value.h" | |||||
| #include "utils/log_adapter.h" | #include "utils/log_adapter.h" | ||||
| namespace mindspore { | namespace mindspore { | ||||
| @@ -20,7 +20,7 @@ | |||||
| #include "common/py_func_graph_fetcher.h" | #include "common/py_func_graph_fetcher.h" | ||||
| #include "pipeline/static_analysis/prim.h" | #include "pipeline/static_analysis/prim.h" | ||||
| #include "operator/ops.h" | #include "operator/ops.h" | ||||
| #include "pipeline/static_analysis/utils.h" | |||||
| #include "abstract/utils.h" | |||||
| namespace mindspore { | namespace mindspore { | ||||
| namespace abstract { | namespace abstract { | ||||