Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
magicwindyyd
mindspore
提交
37338813
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看板
提交
37338813
编写于
7月 06, 2020
作者:
Y
yao_yf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
skip strategy ckpt save for reshape
上级
51f8ffab
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
5 addition
and
1 deletion
+5
-1
mindspore/ccsrc/parallel/auto_parallel/graph_costmodel.cc
mindspore/ccsrc/parallel/auto_parallel/graph_costmodel.cc
+0
-1
mindspore/ccsrc/parallel/ops_info/ops_utils.h
mindspore/ccsrc/parallel/ops_info/ops_utils.h
+1
-0
mindspore/ccsrc/parallel/step_parallel.cc
mindspore/ccsrc/parallel/step_parallel.cc
+3
-0
mindspore/ccsrc/parallel/strategy_checkpoint/parallel_strategy_checkpoint.cc
...allel/strategy_checkpoint/parallel_strategy_checkpoint.cc
+1
-0
未找到文件。
mindspore/ccsrc/parallel/auto_parallel/graph_costmodel.cc
浏览文件 @
37338813
...
...
@@ -41,7 +41,6 @@ bool FULLY_USE_DEVICES = DEFAULT_FULLY_USE_DEVICES;
bool
ELEMENTWISE_OP_STRA_FOLLOW
=
DEFAULT_ELEMENTWISE_OP_STRA_FOLLOW
;
bool
MULTI_SUBGRAPHS
=
DEFAULT_IS_MULTI_SUBGRAPHS
;
int32_t
RUN_PHASE
=
DEFAULT_RUN_PHASE
;
constexpr
char
RESHAPEINFO
[]
=
"ReshapeInfo"
;
void
CostGraph
::
SetDeviceMemoryAndCostParameter
()
{
MS_EXCEPTION_IF_NULL
(
CostModelContext
::
GetInstance
());
...
...
mindspore/ccsrc/parallel/ops_info/ops_utils.h
浏览文件 @
37338813
...
...
@@ -65,6 +65,7 @@ constexpr char STEP_PARALLEL_END[] = "step_parallel_end";
constexpr
char
STEP_AUTO_PARALLEL_BEGIN
[]
=
"step_auto_parallel_begin.dot"
;
constexpr
char
REQUIRES_GRAD
[]
=
"requires_grad"
;
constexpr
char
PARAM_NAME
[]
=
"name"
;
constexpr
char
RESHAPEINFO
[]
=
"ReshapeInfo"
;
constexpr
char
RELU_TYPE
[]
=
"relu"
;
constexpr
char
RELU6_TYPE
[]
=
"relu6"
;
...
...
mindspore/ccsrc/parallel/step_parallel.cc
浏览文件 @
37338813
...
...
@@ -2120,6 +2120,9 @@ void CheckpointStrategy(const FuncGraphPtr &func_graph) {
MS_EXCEPTION_IF_NULL
(
prim
);
OperatorInfoPtr
operator_info
=
cnode
->
operator_info
();
if
(
operator_info
)
{
if
(
operator_info
->
name
().
find
(
RESHAPEINFO
)
!=
std
::
string
::
npos
)
{
continue
;
}
StrategyPtr
strategyPtr
=
operator_info
->
strategy
();
MS_EXCEPTION_IF_NULL
(
node
->
scope
());
stra_map
[
param_name
]
=
strategyPtr
;
...
...
mindspore/ccsrc/parallel/strategy_checkpoint/parallel_strategy_checkpoint.cc
浏览文件 @
37338813
...
...
@@ -93,6 +93,7 @@ Status StrategyCheckpoint::Save(const StrategyMap &strategy_map) {
parallel_strategy_item
->
set_node_name
(
node_stra
.
first
);
straspb
::
ParallelStrategys
*
parallel_strategys
=
parallel_strategy_item
->
mutable_parallel_strategys
();
MS_EXCEPTION_IF_NULL
(
parallel_strategys
);
MS_EXCEPTION_IF_NULL
(
node_stra
.
second
);
parallel_strategys
->
set_stage
(
IntToUint
(
node_stra
.
second
->
GetInputStage
()));
for
(
auto
&
dims
:
node_stra
.
second
->
GetInputDim
())
{
straspb
::
ParallelStrategy
*
parallel_strategy
=
parallel_strategys
->
add_parallel_strategy
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录