Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
magicwindyyd
mindspore
提交
f65586ce
M
mindspore
项目概览
magicwindyyd
/
mindspore
与 Fork 源项目一致
Fork自
MindSpore / mindspore
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindspore
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f65586ce
编写于
7月 14, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
7月 14, 2020
浏览文件
操作
浏览文件
下载
差异文件
!3035 Refactoring for base and abstract types.
Merge pull request !3035 from ZhangQinghua/master
上级
8871f06f
87715ed1
变更
100
隐藏空白更改
内联
并排
Showing
100 changed file
with
150 addition
and
138 deletion
+150
-138
mindspore/ccsrc/CMakeLists.txt
mindspore/ccsrc/CMakeLists.txt
+1
-1
mindspore/ccsrc/abstract/CMakeLists.txt
mindspore/ccsrc/abstract/CMakeLists.txt
+3
-0
mindspore/ccsrc/abstract/abstract_value.cc
mindspore/ccsrc/abstract/abstract_value.cc
+2
-3
mindspore/ccsrc/abstract/abstract_value.h
mindspore/ccsrc/abstract/abstract_value.h
+5
-5
mindspore/ccsrc/abstract/analysis_context.cc
mindspore/ccsrc/abstract/analysis_context.cc
+1
-1
mindspore/ccsrc/abstract/analysis_context.h
mindspore/ccsrc/abstract/analysis_context.h
+4
-4
mindspore/ccsrc/abstract/dshape.cc
mindspore/ccsrc/abstract/dshape.cc
+1
-1
mindspore/ccsrc/abstract/dshape.h
mindspore/ccsrc/abstract/dshape.h
+4
-4
mindspore/ccsrc/abstract/param_validator.cc
mindspore/ccsrc/abstract/param_validator.cc
+2
-2
mindspore/ccsrc/abstract/param_validator.h
mindspore/ccsrc/abstract/param_validator.h
+5
-5
mindspore/ccsrc/abstract/utils.cc
mindspore/ccsrc/abstract/utils.cc
+2
-2
mindspore/ccsrc/abstract/utils.h
mindspore/ccsrc/abstract/utils.h
+4
-4
mindspore/ccsrc/base/CMakeLists.txt
mindspore/ccsrc/base/CMakeLists.txt
+3
-0
mindspore/ccsrc/base/base.cc
mindspore/ccsrc/base/base.cc
+1
-1
mindspore/ccsrc/base/base.h
mindspore/ccsrc/base/base.h
+3
-3
mindspore/ccsrc/common.h
mindspore/ccsrc/common.h
+2
-2
mindspore/ccsrc/debug/info.h
mindspore/ccsrc/debug/info.h
+1
-1
mindspore/ccsrc/debug/trace_info.h
mindspore/ccsrc/debug/trace_info.h
+1
-1
mindspore/ccsrc/gvar/typeid_manager.cc
mindspore/ccsrc/gvar/typeid_manager.cc
+1
-1
mindspore/ccsrc/ir/anf.h
mindspore/ccsrc/ir/anf.h
+1
-1
mindspore/ccsrc/ir/dtype.h
mindspore/ccsrc/ir/dtype.h
+1
-1
mindspore/ccsrc/ir/dtype/container.h
mindspore/ccsrc/ir/dtype/container.h
+1
-1
mindspore/ccsrc/ir/dtype/empty.h
mindspore/ccsrc/ir/dtype/empty.h
+1
-1
mindspore/ccsrc/ir/dtype/number.h
mindspore/ccsrc/ir/dtype/number.h
+1
-1
mindspore/ccsrc/ir/dtype/ref.h
mindspore/ccsrc/ir/dtype/ref.h
+1
-1
mindspore/ccsrc/ir/dtype/type.h
mindspore/ccsrc/ir/dtype/type.h
+1
-1
mindspore/ccsrc/ir/dtype/type_extends.cc
mindspore/ccsrc/ir/dtype/type_extends.cc
+1
-1
mindspore/ccsrc/ir/dtype_extends.cc
mindspore/ccsrc/ir/dtype_extends.cc
+1
-1
mindspore/ccsrc/ir/dtype_py.cc
mindspore/ccsrc/ir/dtype_py.cc
+1
-1
mindspore/ccsrc/ir/func_graph_extends.cc
mindspore/ccsrc/ir/func_graph_extends.cc
+1
-1
mindspore/ccsrc/ir/meta_func_graph.h
mindspore/ccsrc/ir/meta_func_graph.h
+1
-1
mindspore/ccsrc/ir/meta_tensor.h
mindspore/ccsrc/ir/meta_tensor.h
+1
-1
mindspore/ccsrc/ir/meta_tensor_extends.cc
mindspore/ccsrc/ir/meta_tensor_extends.cc
+1
-1
mindspore/ccsrc/ir/named.cc
mindspore/ccsrc/ir/named.cc
+1
-1
mindspore/ccsrc/ir/primitive.h
mindspore/ccsrc/ir/primitive.h
+2
-1
mindspore/ccsrc/ir/primitive_py.h
mindspore/ccsrc/ir/primitive_py.h
+2
-1
mindspore/ccsrc/ir/scalar.h
mindspore/ccsrc/ir/scalar.h
+1
-1
mindspore/ccsrc/ir/tensor.cc
mindspore/ccsrc/ir/tensor.cc
+1
-1
mindspore/ccsrc/ir/tensor_py.cc
mindspore/ccsrc/ir/tensor_py.cc
+1
-1
mindspore/ccsrc/ir/value.h
mindspore/ccsrc/ir/value.h
+1
-1
mindspore/ccsrc/ir/value_extends.cc
mindspore/ccsrc/ir/value_extends.cc
+1
-1
mindspore/ccsrc/ir/value_py.cc
mindspore/ccsrc/ir/value_py.cc
+1
-1
mindspore/ccsrc/kernel/akg/gpu/akg_gpu_kernel_build.h
mindspore/ccsrc/kernel/akg/gpu/akg_gpu_kernel_build.h
+1
-1
mindspore/ccsrc/kernel/kernel.h
mindspore/ccsrc/kernel/kernel.h
+1
-1
mindspore/ccsrc/kernel/tbe/tbe_adapter.h
mindspore/ccsrc/kernel/tbe/tbe_adapter.h
+1
-1
mindspore/ccsrc/kernel/tbe/tbe_convert_utils.h
mindspore/ccsrc/kernel/tbe/tbe_convert_utils.h
+1
-1
mindspore/ccsrc/operator/composite/composite.cc
mindspore/ccsrc/operator/composite/composite.cc
+3
-3
mindspore/ccsrc/operator/composite/do_signature.cc
mindspore/ccsrc/operator/composite/do_signature.cc
+3
-3
mindspore/ccsrc/operator/composite/list_append_operation.cc
mindspore/ccsrc/operator/composite/list_append_operation.cc
+1
-1
mindspore/ccsrc/operator/composite/map.cc
mindspore/ccsrc/operator/composite/map.cc
+2
-2
mindspore/ccsrc/operator/composite/multitype_funcgraph.cc
mindspore/ccsrc/operator/composite/multitype_funcgraph.cc
+3
-3
mindspore/ccsrc/operator/composite/unpack_call.cc
mindspore/ccsrc/operator/composite/unpack_call.cc
+3
-3
mindspore/ccsrc/operator/composite/zip_operation.cc
mindspore/ccsrc/operator/composite/zip_operation.cc
+2
-2
mindspore/ccsrc/operator/prim_arrays.cc
mindspore/ccsrc/operator/prim_arrays.cc
+2
-2
mindspore/ccsrc/operator/prim_debug.cc
mindspore/ccsrc/operator/prim_debug.cc
+2
-2
mindspore/ccsrc/operator/prim_maths.cc
mindspore/ccsrc/operator/prim_maths.cc
+2
-2
mindspore/ccsrc/operator/prim_nn.cc
mindspore/ccsrc/operator/prim_nn.cc
+2
-2
mindspore/ccsrc/operator/prim_others.cc
mindspore/ccsrc/operator/prim_others.cc
+2
-2
mindspore/ccsrc/operator/prim_statement.cc
mindspore/ccsrc/operator/prim_statement.cc
+2
-2
mindspore/ccsrc/operator/prim_structures.cc
mindspore/ccsrc/operator/prim_structures.cc
+2
-2
mindspore/ccsrc/optimizer/clean.h
mindspore/ccsrc/optimizer/clean.h
+1
-1
mindspore/ccsrc/optimizer/irpass/reduce_eliminate.h
mindspore/ccsrc/optimizer/irpass/reduce_eliminate.h
+1
-1
mindspore/ccsrc/optimizer/irpass/reshape_eliminate.h
mindspore/ccsrc/optimizer/irpass/reshape_eliminate.h
+1
-1
mindspore/ccsrc/parallel/context.h
mindspore/ccsrc/parallel/context.h
+1
-1
mindspore/ccsrc/parallel/graph_util/node_info.h
mindspore/ccsrc/parallel/graph_util/node_info.h
+1
-1
mindspore/ccsrc/parallel/ops_info/operator_info.h
mindspore/ccsrc/parallel/ops_info/operator_info.h
+1
-1
mindspore/ccsrc/pipeline/action.cc
mindspore/ccsrc/pipeline/action.cc
+1
-1
mindspore/ccsrc/pipeline/parse/resolve.h
mindspore/ccsrc/pipeline/parse/resolve.h
+1
-1
mindspore/ccsrc/pipeline/pipeline_ge.cc
mindspore/ccsrc/pipeline/pipeline_ge.cc
+1
-1
mindspore/ccsrc/pipeline/remove_value_node_dup.h
mindspore/ccsrc/pipeline/remove_value_node_dup.h
+1
-1
mindspore/ccsrc/pipeline/static_analysis/abstract_function.cc
...spore/ccsrc/pipeline/static_analysis/abstract_function.cc
+0
-1
mindspore/ccsrc/pipeline/static_analysis/abstract_function.h
mindspore/ccsrc/pipeline/static_analysis/abstract_function.h
+2
-2
mindspore/ccsrc/pipeline/static_analysis/evaluator.cc
mindspore/ccsrc/pipeline/static_analysis/evaluator.cc
+1
-1
mindspore/ccsrc/pipeline/static_analysis/prim.cc
mindspore/ccsrc/pipeline/static_analysis/prim.cc
+2
-2
mindspore/ccsrc/pipeline/static_analysis/static_analysis.cc
mindspore/ccsrc/pipeline/static_analysis/static_analysis.cc
+1
-1
mindspore/ccsrc/pipeline/static_analysis/static_analysis.h
mindspore/ccsrc/pipeline/static_analysis/static_analysis.h
+1
-1
mindspore/ccsrc/pre_activate/ascend/ir_fusion/batchnorm_to_bninfer.cc
...src/pre_activate/ascend/ir_fusion/batchnorm_to_bninfer.cc
+1
-1
mindspore/ccsrc/pre_activate/ascend/ir_fusion/batchnormgrad_to_bninfergrad.cc
...activate/ascend/ir_fusion/batchnormgrad_to_bninfergrad.cc
+1
-1
mindspore/ccsrc/pre_activate/ascend/ir_fusion/confusion_mul_grad_fusion.cc
...re_activate/ascend/ir_fusion/confusion_mul_grad_fusion.cc
+1
-1
mindspore/ccsrc/pre_activate/ascend/ir_fusion/derelu_fusion.cc
...pore/ccsrc/pre_activate/ascend/ir_fusion/derelu_fusion.cc
+1
-1
mindspore/ccsrc/pre_activate/common/fusion_id_allocator.h
mindspore/ccsrc/pre_activate/common/fusion_id_allocator.h
+1
-1
mindspore/ccsrc/pre_activate/common/pattern_engine.h
mindspore/ccsrc/pre_activate/common/pattern_engine.h
+1
-1
mindspore/ccsrc/pre_activate/common/visit.h
mindspore/ccsrc/pre_activate/common/visit.h
+1
-1
mindspore/ccsrc/pre_activate/pass/const_to_attr_strided_slice_grad.cc
...src/pre_activate/pass/const_to_attr_strided_slice_grad.cc
+1
-1
mindspore/ccsrc/pynative/base.h
mindspore/ccsrc/pynative/base.h
+1
-1
mindspore/ccsrc/session/anf_runtime_algorithm.h
mindspore/ccsrc/session/anf_runtime_algorithm.h
+1
-1
mindspore/ccsrc/utils/convert_utils.cc
mindspore/ccsrc/utils/convert_utils.cc
+1
-1
mindspore/ccsrc/utils/convert_utils.h
mindspore/ccsrc/utils/convert_utils.h
+1
-1
mindspore/ccsrc/utils/load_onnx/anf_model_parser.cc
mindspore/ccsrc/utils/load_onnx/anf_model_parser.cc
+1
-1
mindspore/ccsrc/utils/log_adapter.cc
mindspore/ccsrc/utils/log_adapter.cc
+2
-0
mindspore/ccsrc/utils/log_adapter.h
mindspore/ccsrc/utils/log_adapter.h
+2
-0
mindspore/ccsrc/utils/symbolic.h
mindspore/ccsrc/utils/symbolic.h
+1
-1
mindspore/ccsrc/vm/transform.cc
mindspore/ccsrc/vm/transform.cc
+1
-1
tests/ut/cpp/CMakeLists.txt
tests/ut/cpp/CMakeLists.txt
+2
-0
tests/ut/cpp/abstract/abstract_test.cc
tests/ut/cpp/abstract/abstract_test.cc
+1
-1
tests/ut/cpp/abstract/dshape_test.cc
tests/ut/cpp/abstract/dshape_test.cc
+1
-1
tests/ut/cpp/abstract/utils_test.cc
tests/ut/cpp/abstract/utils_test.cc
+1
-1
tests/ut/cpp/base/base_test.cc
tests/ut/cpp/base/base_test.cc
+1
-1
tests/ut/cpp/ir/value_test.cc
tests/ut/cpp/ir/value_test.cc
+1
-1
tests/ut/cpp/pipeline/static_analysis/data_test.cc
tests/ut/cpp/pipeline/static_analysis/data_test.cc
+1
-1
未找到文件。
mindspore/ccsrc/CMakeLists.txt
浏览文件 @
f65586ce
...
...
@@ -127,7 +127,7 @@ endif()
## make sub objects
set
(
SUB_COMP
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
}
)
...
...
mindspore/ccsrc/abstract/CMakeLists.txt
0 → 100644
浏览文件 @
f65586ce
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
}
)
mindspore/ccsrc/
pipeline/static_analysis
/abstract_value.cc
→
mindspore/ccsrc/
abstract
/abstract_value.cc
浏览文件 @
f65586ce
...
...
@@ -16,13 +16,12 @@
* limitations under the License.
*/
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
#include <algorithm>
#include "utils/symbolic.h"
#include "pipeline/static_analysis/static_analysis.h"
#include "pipeline/static_analysis/utils.h"
#include "abstract/utils.h"
namespace
mindspore
{
namespace
abstract
{
...
...
mindspore/ccsrc/
pipeline/static_analysis
/abstract_value.h
→
mindspore/ccsrc/
abstract
/abstract_value.h
浏览文件 @
f65586ce
...
...
@@ -16,8 +16,8 @@
* 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 <vector>
...
...
@@ -27,11 +27,11 @@
#include "utils/log_adapter.h"
#include "utils/hashing.h"
#include "
ir
/base.h"
#include "
base
/base.h"
#include "ir/dtype.h"
#include "ir/value.h"
#include "ir/tensor.h"
#include "
pipeline/static_analysis
/dshape.h"
#include "
abstract
/dshape.h"
namespace
mindspore
{
namespace
abstract
{
...
...
@@ -623,4 +623,4 @@ class AbstractIndexedSlices : public AbstractUndetermined {
};
}
// namespace abstract
}
// namespace mindspore
#endif //
PIPELINE_STATIC_ANALYSIS
_ABSTRACT_VALUE_H_
#endif //
MINDSPORE_CCSRC_ABSTRACT
_ABSTRACT_VALUE_H_
mindspore/ccsrc/
pipeline/static_analysis
/analysis_context.cc
→
mindspore/ccsrc/
abstract
/analysis_context.cc
浏览文件 @
f65586ce
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
#include "
pipeline/static_analysis
/analysis_context.h"
#include "
abstract
/analysis_context.h"
#include <algorithm>
...
...
mindspore/ccsrc/
pipeline/static_analysis
/analysis_context.h
→
mindspore/ccsrc/
abstract
/analysis_context.h
浏览文件 @
f65586ce
...
...
@@ -16,14 +16,14 @@
* 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 <string>
#include <unordered_map>
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
#include "ir/meta_func_graph.h"
namespace
mindspore
{
...
...
@@ -85,4 +85,4 @@ struct ContextEqual {
extern
const
AnalysisContextPtr
kDummyAnalysisContext
;
}
// namespace abstract
}
// namespace mindspore
#endif //
PIPELINE_STATIC_ANALYSIS
_ANALYSIS_CONTEXT_H_
#endif //
MINDSPORE_CCSRC_ABSTRACT
_ANALYSIS_CONTEXT_H_
mindspore/ccsrc/
pipeline/static_analysis
/dshape.cc
→
mindspore/ccsrc/
abstract
/dshape.cc
浏览文件 @
f65586ce
...
...
@@ -16,7 +16,7 @@
* limitations under the License.
*/
#include "
pipeline/static_analysis
/dshape.h"
#include "
abstract
/dshape.h"
#include <exception>
#include <iostream>
...
...
mindspore/ccsrc/
pipeline/static_analysis
/dshape.h
→
mindspore/ccsrc/
abstract
/dshape.h
浏览文件 @
f65586ce
...
...
@@ -16,8 +16,8 @@
* 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 <string>
...
...
@@ -27,7 +27,7 @@
#include <memory>
#include "utils/log_adapter.h"
#include "
ir
/base.h"
#include "
base
/base.h"
namespace
mindspore
{
namespace
abstract
{
...
...
@@ -132,4 +132,4 @@ using ListShapePtr = std::shared_ptr<ListShape>;
}
// namespace abstract
}
// namespace mindspore
#endif //
PIPELINE_STATIC_ANALYSIS
_DSHAPE_H_
#endif //
MINDSPORE_CCSRC_ABSTRACT
_DSHAPE_H_
mindspore/ccsrc/
pipeline/static_analysis
/param_validator.cc
→
mindspore/ccsrc/
abstract
/param_validator.cc
浏览文件 @
f65586ce
...
...
@@ -14,13 +14,13 @@
* limitations under the License.
*/
#include "
pipeline/static_analysis
/param_validator.h"
#include "
abstract
/param_validator.h"
#include <string>
#include <sstream>
#include <memory>
#include "utils/symbolic.h"
#include "
pipeline/static_analysis
/utils.h"
#include "
abstract
/utils.h"
namespace
mindspore
{
namespace
abstract
{
...
...
mindspore/ccsrc/
pipeline/static_analysis
/param_validator.h
→
mindspore/ccsrc/
abstract
/param_validator.h
浏览文件 @
f65586ce
...
...
@@ -14,15 +14,15 @@
* 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 <string>
#include <utility>
#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 "ir/primitive.h"
...
...
@@ -97,4 +97,4 @@ void CheckArgsSpec(const AbstractBasePtrList &args_list) {
}
// namespace abstract
}
// namespace mindspore
#endif //
PIPELINE_STATIC_ANALYSIS
_PARAM_VALIDATOR_H_
#endif //
MINDSPORE_CCSRC_ABSTRACT
_PARAM_VALIDATOR_H_
mindspore/ccsrc/
pipeline/static_analysis
/utils.cc
→
mindspore/ccsrc/
abstract
/utils.cc
浏览文件 @
f65586ce
...
...
@@ -16,13 +16,13 @@
* limitations under the License.
*/
#include "
pipeline/static_analysis
/utils.h"
#include "
abstract
/utils.h"
#include <string>
#include <sstream>
#include <memory>
#include "utils/symbolic.h"
#include "
pipeline/static_analysis
/param_validator.h"
#include "
abstract
/param_validator.h"
namespace
mindspore
{
namespace
abstract
{
...
...
mindspore/ccsrc/
pipeline/static_analysis
/utils.h
→
mindspore/ccsrc/
abstract
/utils.h
浏览文件 @
f65586ce
...
...
@@ -16,14 +16,14 @@
* 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 <utility>
#include <memory>
#include <string>
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
#include "utils/any.h"
#include "utils/misc.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
);
}
// namespace abstract
}
// namespace mindspore
#endif //
PIPELINE_STATIC_ANALYSIS
_UTILS_H_
#endif //
MINDSPORE_CCSRC_ABSTRACT
_UTILS_H_
mindspore/ccsrc/base/CMakeLists.txt
0 → 100644
浏览文件 @
f65586ce
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
}
)
mindspore/ccsrc/
ir
/base.cc
→
mindspore/ccsrc/
base
/base.cc
浏览文件 @
f65586ce
...
...
@@ -14,7 +14,7 @@
* limitations under the License.
*/
#include "
ir
/base.h"
#include "
base
/base.h"
#include <atomic>
#include <mutex>
#include <unordered_map>
...
...
mindspore/ccsrc/
ir
/base.h
→
mindspore/ccsrc/
base
/base.h
浏览文件 @
f65586ce
...
...
@@ -14,8 +14,8 @@
* 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 <iostream>
...
...
@@ -149,4 +149,4 @@ struct MS_EXPORT TypeIdManager {
};
}
// namespace mindspore
#endif // MINDSPORE_CCSRC_
IR
_BASE_H_
#endif // MINDSPORE_CCSRC_
BASE
_BASE_H_
mindspore/ccsrc/common.h
浏览文件 @
f65586ce
...
...
@@ -23,8 +23,8 @@
#include "pybind11/pybind11.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/parse/python_adapter.h"
#include "pipeline/parse/parse.h"
...
...
mindspore/ccsrc/debug/info.h
浏览文件 @
f65586ce
...
...
@@ -24,7 +24,7 @@
#include <utility>
#include <vector>
#include "
ir
/base.h"
#include "
base
/base.h"
#include "debug/trace_info.h"
namespace
mindspore
{
...
...
mindspore/ccsrc/debug/trace_info.h
浏览文件 @
f65586ce
...
...
@@ -24,7 +24,7 @@
#include <utility>
#include <vector>
#include "
ir
/base.h"
#include "
base
/base.h"
namespace
mindspore
{
class
TraceInfo
;
...
...
mindspore/ccsrc/gvar/typeid_manager.cc
浏览文件 @
f65586ce
...
...
@@ -20,7 +20,7 @@
#include <mutex>
#include <unordered_map>
#include "
ir
/base.h"
#include "
base
/base.h"
namespace
mindspore
{
...
...
mindspore/ccsrc/ir/anf.h
浏览文件 @
f65586ce
...
...
@@ -26,7 +26,7 @@
#include <unordered_map>
#include <utility>
#include "
ir
/base.h"
#include "
base
/base.h"
#include "debug/info.h"
#include "ir/scope.h"
...
...
mindspore/ccsrc/ir/dtype.h
浏览文件 @
f65586ce
...
...
@@ -28,7 +28,7 @@
#include <type_traits>
#include <unordered_map>
#include <algorithm>
#include "
ir
/base.h"
#include "
base
/base.h"
#include "ir/named.h"
#include "ir/dtype/type.h"
...
...
mindspore/ccsrc/ir/dtype/container.h
浏览文件 @
f65586ce
...
...
@@ -29,7 +29,7 @@
#include <type_traits>
#include <unordered_map>
#include <algorithm>
#include "
ir
/base.h"
#include "
base
/base.h"
#include "ir/named.h"
#include "ir/dtype/type.h"
...
...
mindspore/ccsrc/ir/dtype/empty.h
浏览文件 @
f65586ce
...
...
@@ -29,7 +29,7 @@
#include <type_traits>
#include <unordered_map>
#include <algorithm>
#include "
ir
/base.h"
#include "
base
/base.h"
#include "ir/named.h"
#include "ir/dtype/type.h"
...
...
mindspore/ccsrc/ir/dtype/number.h
浏览文件 @
f65586ce
...
...
@@ -29,7 +29,7 @@
#include <type_traits>
#include <unordered_map>
#include <algorithm>
#include "
ir
/base.h"
#include "
base
/base.h"
#include "ir/named.h"
#include "ir/dtype/type.h"
...
...
mindspore/ccsrc/ir/dtype/ref.h
浏览文件 @
f65586ce
...
...
@@ -29,7 +29,7 @@
#include <type_traits>
#include <unordered_map>
#include <algorithm>
#include "
ir
/base.h"
#include "
base
/base.h"
#include "ir/named.h"
#include "ir/dtype/type.h"
...
...
mindspore/ccsrc/ir/dtype/type.h
浏览文件 @
f65586ce
...
...
@@ -32,7 +32,7 @@
#include <unordered_map>
#include <algorithm>
#include "
ir
/base.h"
#include "
base
/base.h"
#include "ir/named.h"
#include "ir/dtype/type_id.h"
...
...
mindspore/ccsrc/ir/dtype/type_extends.cc
浏览文件 @
f65586ce
...
...
@@ -15,7 +15,7 @@
*/
#include "ir/dtype/type.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
namespace
mindspore
{
abstract
::
AbstractBasePtr
Type
::
ToAbstract
()
{
...
...
mindspore/ccsrc/ir/dtype_extends.cc
浏览文件 @
f65586ce
...
...
@@ -19,7 +19,7 @@
#include <cstdlib>
#include <algorithm>
#include "utils/log_adapter.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
namespace
mindspore
{
TypePtr
TypeAnything
::
DeepCopy
()
const
{
return
kAnyType
;
}
...
...
mindspore/ccsrc/ir/dtype_py.cc
浏览文件 @
f65586ce
...
...
@@ -19,7 +19,7 @@
#include <cstdlib>
#include <algorithm>
#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/export_flags.h"
...
...
mindspore/ccsrc/ir/func_graph_extends.cc
浏览文件 @
f65586ce
...
...
@@ -24,7 +24,7 @@
#include "ir/func_graph_cloner.h"
#include "operator/ops.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/abstract_function.h"
...
...
mindspore/ccsrc/ir/meta_func_graph.h
浏览文件 @
f65586ce
...
...
@@ -30,7 +30,7 @@
#include "ir/anf.h"
#include "ir/func_graph.h"
#include "ir/signature.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
namespace
mindspore
{
// namespace to support intermediate representation definition
...
...
mindspore/ccsrc/ir/meta_tensor.h
浏览文件 @
f65586ce
...
...
@@ -22,7 +22,7 @@
#include <memory>
#include <string>
#include "
ir
/base.h"
#include "
base
/base.h"
#include "ir/dtype.h"
#include "utils/convert_utils.h"
#include "utils/hashing.h"
...
...
mindspore/ccsrc/ir/meta_tensor_extends.cc
浏览文件 @
f65586ce
...
...
@@ -22,7 +22,7 @@
#include <sstream>
#include <string>
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
namespace
mindspore
{
namespace
tensor
{
...
...
mindspore/ccsrc/ir/named.cc
浏览文件 @
f65586ce
...
...
@@ -15,7 +15,7 @@
*/
#include "ir/named.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
namespace
mindspore
{
bool
Named
::
operator
==
(
const
Value
&
other
)
const
{
...
...
mindspore/ccsrc/ir/primitive.h
浏览文件 @
f65586ce
...
...
@@ -24,9 +24,10 @@
#include <tuple>
#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 "utils/base_ref_extends.h"
namespace
mindspore
{
// Supported meta type
enum
PrimType
{
...
...
mindspore/ccsrc/ir/primitive_py.h
浏览文件 @
f65586ce
...
...
@@ -24,13 +24,14 @@
#include <tuple>
#include <map>
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
#include "utils/misc.h"
#include "pybind11/pybind11.h"
#include "utils/log_adapter.h"
#include "ir/primitive.h"
#include "ir/signature.h"
#include "parallel/ops_info/operator_info.h"
namespace
py
=
pybind11
;
namespace
mindspore
{
class
PrimitivePy
:
public
Primitive
{
...
...
mindspore/ccsrc/ir/scalar.h
浏览文件 @
f65586ce
...
...
@@ -27,7 +27,7 @@
#include <utility>
#include <cfloat>
#include "
ir
/base.h"
#include "
base
/base.h"
#include "ir/dtype.h"
#include "ir/dtype/number.h"
...
...
mindspore/ccsrc/ir/tensor.cc
浏览文件 @
f65586ce
...
...
@@ -29,7 +29,7 @@
#include <typeinfo>
#include "device/device_address.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
namespace
mindspore
{
namespace
tensor
{
...
...
mindspore/ccsrc/ir/tensor_py.cc
浏览文件 @
f65586ce
...
...
@@ -25,7 +25,7 @@
#include "device/device_address.h"
#include "pybind_api/api_register.h"
#include "pybind_api/export_flags.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
namespace
mindspore
{
namespace
tensor
{
...
...
mindspore/ccsrc/ir/value.h
浏览文件 @
f65586ce
...
...
@@ -25,7 +25,7 @@
#include <sstream>
#include <utility>
#include "
ir
/base.h"
#include "
base
/base.h"
#include "ir/anf.h"
#include "ir/dtype.h"
#include "ir/scalar.h"
...
...
mindspore/ccsrc/ir/value_extends.cc
浏览文件 @
f65586ce
...
...
@@ -20,7 +20,7 @@
#include <cmath>
#include <cfloat>
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
namespace
mindspore
{
using
ContextPtr
=
abstract
::
AnalysisContextPtr
;
...
...
mindspore/ccsrc/ir/value_py.cc
浏览文件 @
f65586ce
...
...
@@ -18,7 +18,7 @@
#include <string>
#include "pybind_api/api_register.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
namespace
mindspore
{
// Define python 'RefKey' class.
...
...
mindspore/ccsrc/kernel/akg/gpu/akg_gpu_kernel_build.h
浏览文件 @
f65586ce
...
...
@@ -17,7 +17,7 @@
#ifndef 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 "
ir
/base.h"
#include "
base
/base.h"
namespace
mindspore
{
namespace
kernel
{
...
...
mindspore/ccsrc/kernel/kernel.h
浏览文件 @
f65586ce
...
...
@@ -23,7 +23,7 @@
#include "ir/dtype.h"
#include "utils/utils.h"
#include "ir/tensor.h"
#include "
pipeline/static_analysis
/dshape.h"
#include "
abstract
/dshape.h"
#include "utils/log_adapter.h"
namespace
mindspore
{
...
...
mindspore/ccsrc/kernel/tbe/tbe_adapter.h
浏览文件 @
f65586ce
...
...
@@ -21,7 +21,7 @@
#include <memory>
#include <vector>
#include "nlohmann/json.hpp"
#include "
ir
/base.h"
#include "
base
/base.h"
#include "kernel/oplib/opinfo.h"
// Note: This file is mainly used to adapt the ME front-end operator description and
// the TBE back-end operator implementation difference
...
...
mindspore/ccsrc/kernel/tbe/tbe_convert_utils.h
浏览文件 @
f65586ce
...
...
@@ -19,7 +19,7 @@
#include <string>
#include "kernel/kernel.h"
#include "
ir
/base.h"
#include "
base
/base.h"
#include "ir/dtype/type.h"
namespace
mindspore
{
...
...
mindspore/ccsrc/operator/composite/composite.cc
浏览文件 @
f65586ce
...
...
@@ -24,10 +24,10 @@
#include "ir/anf.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
/dshape.h"
#include "
pipeline/static_analysis
/param_validator.h"
#include "
abstract
/dshape.h"
#include "
abstract
/param_validator.h"
#include "operator/cc_implementations.h"
#include "optimizer/opt.h"
#include "utils/symbolic.h"
...
...
mindspore/ccsrc/operator/composite/do_signature.cc
浏览文件 @
f65586ce
...
...
@@ -18,10 +18,10 @@
#include <algorithm>
#include <utility>
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.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 "optimizer/opt.h"
#include "utils/symbolic.h"
...
...
mindspore/ccsrc/operator/composite/list_append_operation.cc
浏览文件 @
f65586ce
...
...
@@ -20,7 +20,7 @@
#include <string>
#include <memory>
#include "
pipeline/static_analysis
/param_validator.h"
#include "
abstract
/param_validator.h"
#include "optimizer/opt.h"
#include "pybind_api/api_register.h"
...
...
mindspore/ccsrc/operator/composite/map.cc
浏览文件 @
f65586ce
...
...
@@ -22,9 +22,9 @@
#include "ir/anf.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
/dshape.h"
#include "
abstract
/dshape.h"
#include "pybind_api/api_register.h"
#include "debug/trace.h"
#include "operator/ops.h"
...
...
mindspore/ccsrc/operator/composite/multitype_funcgraph.cc
浏览文件 @
f65586ce
...
...
@@ -24,10 +24,10 @@
#include "ir/anf.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
/dshape.h"
#include "
pipeline/static_analysis
/param_validator.h"
#include "
abstract
/dshape.h"
#include "
abstract
/param_validator.h"
#include "operator/cc_implementations.h"
#include "optimizer/opt.h"
#include "utils/context/ms_context.h"
...
...
mindspore/ccsrc/operator/composite/unpack_call.cc
浏览文件 @
f65586ce
...
...
@@ -19,9 +19,9 @@
#include <utility>
#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 "ir/anf.h"
#include "optimizer/opt.h"
...
...
mindspore/ccsrc/operator/composite/zip_operation.cc
浏览文件 @
f65586ce
...
...
@@ -19,9 +19,9 @@
#include "operator/composite/zip_operation.h"
#include <algorithm>
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
#include "ir/anf.h"
#include "
pipeline/static_analysis
/dshape.h"
#include "
abstract
/dshape.h"
#include "operator/cc_implementations.h"
#include "optimizer/opt.h"
#include "pybind_api/api_register.h"
...
...
mindspore/ccsrc/operator/prim_arrays.cc
浏览文件 @
f65586ce
...
...
@@ -16,9 +16,9 @@
#include "pipeline/static_analysis/prim.h"
#include "operator/ops.h"
#include "
pipeline/static_analysis
/utils.h"
#include "
abstract
/utils.h"
#include "operator/cc_implementations.h"
#include "
pipeline/static_analysis
/param_validator.h"
#include "
abstract
/param_validator.h"
namespace
mindspore
{
namespace
abstract
{
...
...
mindspore/ccsrc/operator/prim_debug.cc
浏览文件 @
f65586ce
...
...
@@ -14,10 +14,10 @@
* limitations under the License.
*/
#include "
pipeline/static_analysis
/param_validator.h"
#include "
abstract
/param_validator.h"
#include "pipeline/static_analysis/prim.h"
#include "operator/ops.h"
#include "
pipeline/static_analysis
/utils.h"
#include "
abstract
/utils.h"
#include "utils/symbolic.h"
namespace
mindspore
{
...
...
mindspore/ccsrc/operator/prim_maths.cc
浏览文件 @
f65586ce
...
...
@@ -16,8 +16,8 @@
#include "pipeline/static_analysis/prim.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"
namespace
mindspore
{
...
...
mindspore/ccsrc/operator/prim_nn.cc
浏览文件 @
f65586ce
...
...
@@ -16,8 +16,8 @@
#include "pipeline/static_analysis/prim.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
abstract
{
...
...
mindspore/ccsrc/operator/prim_others.cc
浏览文件 @
f65586ce
...
...
@@ -20,9 +20,9 @@
#include "ir/dtype.h"
#include "common/utils.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
/utils.h"
#include "
abstract
/utils.h"
#include "utils/context/ms_context.h"
#include "utils/symbolic.h"
...
...
mindspore/ccsrc/operator/prim_statement.cc
浏览文件 @
f65586ce
...
...
@@ -14,10 +14,10 @@
* limitations under the License.
*/
#include "
pipeline/static_analysis
/param_validator.h"
#include "
abstract
/param_validator.h"
#include "pipeline/static_analysis/prim.h"
#include "operator/ops.h"
#include "
pipeline/static_analysis
/utils.h"
#include "
abstract
/utils.h"
#include "utils/symbolic.h"
namespace
mindspore
{
...
...
mindspore/ccsrc/operator/prim_structures.cc
浏览文件 @
f65586ce
...
...
@@ -17,8 +17,8 @@
*/
#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 "utils/convert_utils.h"
#include "ir/tensor_py.h"
...
...
mindspore/ccsrc/optimizer/clean.h
浏览文件 @
f65586ce
...
...
@@ -24,7 +24,7 @@
#include "operator/ops.h"
#include "utils/any.h"
#include "ir/manager.h"
#include "
pipeline/static_analysis
/dshape.h"
#include "
abstract
/dshape.h"
namespace
mindspore
{
/* namespace to support opt */
...
...
mindspore/ccsrc/optimizer/irpass/reduce_eliminate.h
浏览文件 @
f65586ce
...
...
@@ -25,7 +25,7 @@
#include "optimizer/optimizer.h"
#include "ir/visitor.h"
#include "operator/ops.h"
#include "
pipeline/static_analysis
/dshape.h"
#include "
abstract
/dshape.h"
namespace
mindspore
{
namespace
opt
{
...
...
mindspore/ccsrc/optimizer/irpass/reshape_eliminate.h
浏览文件 @
f65586ce
...
...
@@ -25,7 +25,7 @@
#include "operator/ops.h"
#include "optimizer/irpass.h"
#include "optimizer/optimizer.h"
#include "
pipeline/static_analysis
/dshape.h"
#include "
abstract
/dshape.h"
namespace
mindspore
{
namespace
opt
{
...
...
mindspore/ccsrc/parallel/context.h
浏览文件 @
f65586ce
...
...
@@ -29,7 +29,7 @@
#include "ir/anf.h"
#include "ir/func_graph.h"
#include "debug/info.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
namespace
mindspore
{
namespace
parallel
{
...
...
mindspore/ccsrc/parallel/graph_util/node_info.h
浏览文件 @
f65586ce
...
...
@@ -18,7 +18,7 @@
#define MINDSPORE_CCSRC_PARALLEL_GRAPH_UTIL_NODE_INFO_H_
#include <string>
#include "
ir
/base.h"
#include "
base
/base.h"
namespace
mindspore
{
namespace
parallel
{
...
...
mindspore/ccsrc/parallel/ops_info/operator_info.h
浏览文件 @
f65586ce
...
...
@@ -26,7 +26,7 @@
#include <vector>
#include "common/utils.h"
#include "
ir
/base.h"
#include "
base
/base.h"
#include "parallel/auto_parallel/costmodel.h"
#include "parallel/auto_parallel/operator_costmodel.h"
#include "parallel/device_manager.h"
...
...
mindspore/ccsrc/pipeline/action.cc
浏览文件 @
f65586ce
...
...
@@ -30,7 +30,7 @@
#include "pipeline/pass.h"
#include "pipeline/parse/parse_base.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/program_specialize.h"
#include "pipeline/resource.h"
...
...
mindspore/ccsrc/pipeline/parse/resolve.h
浏览文件 @
f65586ce
...
...
@@ -23,7 +23,7 @@
#include "ir/manager.h"
#include "pipeline/parse/python_adapter.h"
#include "pipeline/parse/parse_base.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
#include "utils/log_adapter.h"
// forward declaration of ResourceBase
...
...
mindspore/ccsrc/pipeline/pipeline_ge.cc
浏览文件 @
f65586ce
...
...
@@ -29,7 +29,7 @@
#include "transform/graph_builder.h"
#include "transform/graph_runner.h"
#include "debug/draw.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
namespace
mindspore
{
namespace
pipeline
{
...
...
mindspore/ccsrc/pipeline/remove_value_node_dup.h
浏览文件 @
f65586ce
...
...
@@ -19,7 +19,7 @@
#include <unordered_map>
#include <vector>
#include "
ir
/base.h"
#include "
base
/base.h"
#include "ir/manager.h"
namespace
mindspore
{
...
...
mindspore/ccsrc/pipeline/static_analysis/abstract_function.cc
浏览文件 @
f65586ce
...
...
@@ -18,7 +18,6 @@
#include <vector>
#include "pipeline/static_analysis/analysis_context.h"
#include "pipeline/static_analysis/static_analysis.h"
namespace
mindspore
{
...
...
mindspore/ccsrc/pipeline/static_analysis/abstract_function.h
浏览文件 @
f65586ce
...
...
@@ -22,8 +22,8 @@
#include <memory>
#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"
namespace
mindspore
{
...
...
mindspore/ccsrc/pipeline/static_analysis/evaluator.cc
浏览文件 @
f65586ce
...
...
@@ -20,7 +20,7 @@
#include <unordered_set>
#include "ir/func_graph_cloner.h"
#include "
pipeline/static_analysis
/utils.h"
#include "
abstract
/utils.h"
#include "debug/trace.h"
namespace
mindspore
{
...
...
mindspore/ccsrc/pipeline/static_analysis/prim.cc
浏览文件 @
f65586ce
...
...
@@ -29,7 +29,7 @@
#include "operator/ops.h"
#include "operator/composite/do_signature.h"
#include "operator/prim_to_function.h"
#include "
pipeline/static_analysis
/utils.h"
#include "
abstract
/utils.h"
#include "utils/symbolic.h"
#include "./common.h"
#include "pipeline/resource.h"
...
...
@@ -38,7 +38,7 @@
#include "utils/convert_utils.h"
#include "utils/context/ms_context.h"
#include "pipeline/parse/data_converter.h"
#include "
pipeline/static_analysis
/param_validator.h"
#include "
abstract
/param_validator.h"
#include "common/utils.h"
namespace
mindspore
{
...
...
mindspore/ccsrc/pipeline/static_analysis/static_analysis.cc
浏览文件 @
f65586ce
...
...
@@ -21,7 +21,7 @@
#include <algorithm>
#include <set>
#include "
pipeline/static_analysis
/utils.h"
#include "
abstract
/utils.h"
#include "pipeline/static_analysis/prim.h"
#include "operator/ops.h"
#include "utils/symbolic.h"
...
...
mindspore/ccsrc/pipeline/static_analysis/static_analysis.h
浏览文件 @
f65586ce
...
...
@@ -34,7 +34,7 @@
#include "utils/log_adapter.h"
#include "ir/anf.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/parse/parse.h"
...
...
mindspore/ccsrc/pre_activate/ascend/ir_fusion/batchnorm_to_bninfer.cc
浏览文件 @
f65586ce
...
...
@@ -20,7 +20,7 @@
#include "ir/primitive.h"
#include "utils/utils.h"
#include "operator/ops.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
#include "pre_activate/common/helper.h"
namespace
mindspore
{
...
...
mindspore/ccsrc/pre_activate/ascend/ir_fusion/batchnormgrad_to_bninfergrad.cc
浏览文件 @
f65586ce
...
...
@@ -20,7 +20,7 @@
#include "ir/primitive.h"
#include "utils/utils.h"
#include "operator/ops.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
#include "pre_activate/common/helper.h"
namespace
mindspore
{
...
...
mindspore/ccsrc/pre_activate/ascend/ir_fusion/confusion_mul_grad_fusion.cc
浏览文件 @
f65586ce
...
...
@@ -22,7 +22,7 @@
#include "session/anf_runtime_algorithm.h"
#include "ir/primitive.h"
#include "utils/utils.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
#include "pre_activate/common/helper.h"
namespace
mindspore
{
...
...
mindspore/ccsrc/pre_activate/ascend/ir_fusion/derelu_fusion.cc
浏览文件 @
f65586ce
...
...
@@ -19,7 +19,7 @@
#include "session/anf_runtime_algorithm.h"
#include "ir/primitive.h"
#include "utils/utils.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
#include "pre_activate/common/helper.h"
namespace
mindspore
{
...
...
mindspore/ccsrc/pre_activate/common/fusion_id_allocator.h
浏览文件 @
f65586ce
...
...
@@ -17,7 +17,7 @@
#define MINDSPORE_CCSRC_PRE_ACTIVATE_COMMON_FUSION_ID_ALLOCATOR_H_
#include <memory>
#include "
ir
/base.h"
#include "
base
/base.h"
namespace
mindspore
{
namespace
opt
{
...
...
mindspore/ccsrc/pre_activate/common/pattern_engine.h
浏览文件 @
f65586ce
...
...
@@ -34,7 +34,7 @@
#include <utility>
#include "pre_activate/common/visit.h"
#include "
ir
/base.h"
#include "
base
/base.h"
#include "utils/log_adapter.h"
#include "utils/base_ref.h"
...
...
mindspore/ccsrc/pre_activate/common/visit.h
浏览文件 @
f65586ce
...
...
@@ -26,7 +26,7 @@
#include <string>
#include <memory>
#include "
ir
/base.h"
#include "
base
/base.h"
#include "utils/base_ref.h"
// namespace to support utils definition
...
...
mindspore/ccsrc/pre_activate/pass/const_to_attr_strided_slice_grad.cc
浏览文件 @
f65586ce
...
...
@@ -20,7 +20,7 @@
#include "ir/primitive.h"
#include "utils/context/ms_context.h"
#include "utils/utils.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
#include "pre_activate/common/helper.h"
namespace
mindspore
{
...
...
mindspore/ccsrc/pynative/base.h
浏览文件 @
f65586ce
...
...
@@ -27,7 +27,7 @@
#include "pybind11/pybind11.h"
#include "ir/primitive_py.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
namespace
mindspore
{
namespace
pynative
{
...
...
mindspore/ccsrc/session/anf_runtime_algorithm.h
浏览文件 @
f65586ce
...
...
@@ -25,7 +25,7 @@
#include <memory>
#include "ir/anf.h"
#include "ir/dtype.h"
#include "
ir
/base.h"
#include "
base
/base.h"
#include "ir/primitive.h"
#include "device/device_address.h"
#include "kernel/kernel.h"
...
...
mindspore/ccsrc/utils/convert_utils.cc
浏览文件 @
f65586ce
...
...
@@ -25,7 +25,7 @@
#include <cfloat>
#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_base.h"
#include "ir/value.h"
...
...
mindspore/ccsrc/utils/convert_utils.h
浏览文件 @
f65586ce
...
...
@@ -28,7 +28,7 @@
#include "utils/convert_utils_base.h"
#include "utils/any.h"
#include "utils/base_ref.h"
#include "
ir
/base.h"
#include "
base
/base.h"
#include "ir/anf.h"
namespace
py
=
pybind11
;
...
...
mindspore/ccsrc/utils/load_onnx/anf_model_parser.cc
浏览文件 @
f65586ce
...
...
@@ -24,7 +24,7 @@
#include "ir/tensor.h"
#include "ir/param_value.h"
#include "operator/ops.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
#include "proto/onnx.pb.h"
#include "utils/log_adapter.h"
...
...
mindspore/ccsrc/utils/log_adapter.cc
浏览文件 @
f65586ce
...
...
@@ -157,6 +157,7 @@ static std::string ExceptionTypeToString(ExceptionType type) {
static
const
char
*
GetSubModuleName
(
SubModuleId
module_id
)
{
static
const
char
*
sub_module_names
[
NUM_SUBMODUES
]
=
{
"UNKNOWN"
,
// SM_UNKNOWN
"BASE"
,
// SM_BASE
"ANALYZER"
,
// SM_ANALYZER
"COMMON"
,
// SM_COMMON
"DEBUG"
,
// SM_DEBUG
...
...
@@ -176,6 +177,7 @@ static const char *GetSubModuleName(SubModuleId module_id) {
"SESSION"
,
// SM_SESSION
"UTILS"
,
// SM_UTILS
"VM"
// SM_VM
"ABSTRACT"
// SM_ABSTRACT
};
return
sub_module_names
[
module_id
%
NUM_SUBMODUES
];
...
...
mindspore/ccsrc/utils/log_adapter.h
浏览文件 @
f65586ce
...
...
@@ -100,6 +100,7 @@ enum MsLogLevel : int { DEBUG = 0, INFO, WARNING, ERROR, EXCEPTION };
enum
SubModuleId
:
int
{
SM_UNKNOWN
=
0
,
// unknown submodule
SM_BASE
,
// base
SM_ANALYZER
,
// static analyzer
SM_COMMON
,
// common
SM_DEBUG
,
// debug
...
...
@@ -119,6 +120,7 @@ enum SubModuleId : int {
SM_SESSION
,
// session
SM_UTILS
,
// utils
SM_VM
,
// VM
SM_ABSTRACT
,
// abstract
NUM_SUBMODUES
// number of submodules
};
...
...
mindspore/ccsrc/utils/symbolic.h
浏览文件 @
f65586ce
...
...
@@ -26,7 +26,7 @@
#include <string>
#include "ir/anf.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
#include "utils/any.h"
namespace
mindspore
{
...
...
mindspore/ccsrc/vm/transform.cc
浏览文件 @
f65586ce
...
...
@@ -26,7 +26,7 @@
#include <string>
#include <vector>
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
#ifdef ENABLE_GE
#include "transform/convert.h"
#endif
...
...
tests/ut/cpp/CMakeLists.txt
浏览文件 @
f65586ce
...
...
@@ -51,6 +51,8 @@ else()
endif
()
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/common/*.cc"
"../../../mindspore/ccsrc/utils/*.cc"
...
...
tests/ut/cpp/
pipeline/static_analysis
/abstract_test.cc
→
tests/ut/cpp/
abstract
/abstract_test.cc
浏览文件 @
f65586ce
...
...
@@ -19,7 +19,7 @@
#include "common/common_test.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/parse/parse.h"
#include "pipeline/parse/resolve.h"
...
...
tests/ut/cpp/
pipeline/static_analysis
/dshape_test.cc
→
tests/ut/cpp/
abstract
/dshape_test.cc
浏览文件 @
f65586ce
...
...
@@ -18,7 +18,7 @@
#include "common/common_test.h"
#include "
pipeline/static_analysis
/dshape.h"
#include "
abstract
/dshape.h"
#include "utils/log_adapter.h"
namespace
mindspore
{
...
...
tests/ut/cpp/
pipeline/static_analysis
/utils_test.cc
→
tests/ut/cpp/
abstract
/utils_test.cc
浏览文件 @
f65586ce
...
...
@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "
pipeline/static_analysis
/utils.h"
#include "
abstract
/utils.h"
#include "common/common_test.h"
#include "pipeline/static_analysis/static_analysis.h"
...
...
tests/ut/cpp/
ir
/base_test.cc
→
tests/ut/cpp/
base
/base_test.cc
浏览文件 @
f65586ce
...
...
@@ -17,7 +17,7 @@
#include "common/common_test.h"
#include "utils/any.h"
#include "
ir
/base.h"
#include "
base
/base.h"
#include "ir/anf.h"
#include "utils/log_adapter.h"
...
...
tests/ut/cpp/ir/value_test.cc
浏览文件 @
f65586ce
...
...
@@ -21,7 +21,7 @@
#include "common/common_test.h"
#include "ir/value.h"
#include "
pipeline/static_analysis
/abstract_value.h"
#include "
abstract
/abstract_value.h"
#include "utils/log_adapter.h"
namespace
mindspore
{
...
...
tests/ut/cpp/pipeline/static_analysis/data_test.cc
浏览文件 @
f65586ce
...
...
@@ -20,7 +20,7 @@
#include "common/py_func_graph_fetcher.h"
#include "pipeline/static_analysis/prim.h"
#include "operator/ops.h"
#include "
pipeline/static_analysis
/utils.h"
#include "
abstract
/utils.h"
namespace
mindspore
{
namespace
abstract
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录