Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
magicwindyyd
mindspore
提交
68ba6532
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看板
提交
68ba6532
编写于
8月 15, 2020
作者:
Y
yao_yf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add field in stra ckpt
上级
cbb4363f
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
3 addition
and
5 deletion
+3
-5
mindspore/ccsrc/frontend/parallel/strategy_checkpoint/parallel_strategy_checkpoint.cc
...allel/strategy_checkpoint/parallel_strategy_checkpoint.cc
+1
-0
mindspore/ccsrc/utils/node_strategy.proto
mindspore/ccsrc/utils/node_strategy.proto
+1
-0
model_zoo/official/recommend/wide_and_deep/src/wide_and_deep.py
...zoo/official/recommend/wide_and_deep/src/wide_and_deep.py
+1
-5
未找到文件。
mindspore/ccsrc/frontend/parallel/strategy_checkpoint/parallel_strategy_checkpoint.cc
浏览文件 @
68ba6532
...
@@ -129,6 +129,7 @@ Status StrategyCheckpoint::Save(const StrategyMap &strategy_map, const TensorInf
...
@@ -129,6 +129,7 @@ Status StrategyCheckpoint::Save(const StrategyMap &strategy_map, const TensorInf
param_split_shape
->
add_dim
(
dim_pair
.
first
);
param_split_shape
->
add_dim
(
dim_pair
.
first
);
indices_offset
->
add_dim
(
dim_pair
.
second
);
indices_offset
->
add_dim
(
dim_pair
.
second
);
}
}
parallel_layouts
->
set_field
(
tensor_layout
.
get_field_size
());
}
}
std
::
fstream
output
(
save_file_
,
std
::
ios
::
out
|
std
::
ios
::
trunc
|
std
::
ios
::
binary
);
std
::
fstream
output
(
save_file_
,
std
::
ios
::
out
|
std
::
ios
::
trunc
|
std
::
ios
::
binary
);
...
...
mindspore/ccsrc/utils/node_strategy.proto
浏览文件 @
68ba6532
...
@@ -53,6 +53,7 @@ message ParallelLayouts {
...
@@ -53,6 +53,7 @@ message ParallelLayouts {
repeated
TensorMap
tensor_map
=
2
;
repeated
TensorMap
tensor_map
=
2
;
repeated
ParamSplitShape
param_split_shape
=
3
;
repeated
ParamSplitShape
param_split_shape
=
3
;
repeated
IndicesOffset
indices_offset
=
4
;
repeated
IndicesOffset
indices_offset
=
4
;
required
int32
field
=
5
;
}
}
message
ParallelLayoutItem
{
message
ParallelLayoutItem
{
...
...
model_zoo/official/recommend/wide_and_deep/src/wide_and_deep.py
浏览文件 @
68ba6532
...
@@ -161,13 +161,9 @@ class WideDeepModel(nn.Cell):
...
@@ -161,13 +161,9 @@ class WideDeepModel(nn.Cell):
self
.
layer_dims
=
self
.
deep_layer_dims_list
+
[
1
]
self
.
layer_dims
=
self
.
deep_layer_dims_list
+
[
1
]
self
.
all_dim_list
=
[
self
.
deep_input_dims
]
+
self
.
layer_dims
self
.
all_dim_list
=
[
self
.
deep_input_dims
]
+
self
.
layer_dims
init_acts
=
[(
'Wide_w'
,
[
self
.
vocab_size
,
1
],
self
.
emb_init
),
init_acts
=
[(
'Wide_b'
,
[
1
],
self
.
emb_init
)]
(
'V_l2'
,
[
self
.
vocab_size
,
self
.
emb_dim
],
self
.
emb_init
),
(
'Wide_b'
,
[
1
],
self
.
emb_init
)]
var_map
=
init_var_dict
(
self
.
init_args
,
init_acts
)
var_map
=
init_var_dict
(
self
.
init_args
,
init_acts
)
self
.
wide_w
=
var_map
[
"Wide_w"
]
self
.
wide_b
=
var_map
[
"Wide_b"
]
self
.
wide_b
=
var_map
[
"Wide_b"
]
self
.
embedding_table
=
var_map
[
"V_l2"
]
if
parameter_server
:
if
parameter_server
:
self
.
wide_w
.
set_param_ps
()
self
.
wide_w
.
set_param_ps
()
self
.
embedding_table
.
set_param_ps
()
self
.
embedding_table
.
set_param_ps
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录