Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
溜达小灰鼠
Paddle
提交
86a9434c
P
Paddle
项目概览
溜达小灰鼠
/
Paddle
与 Fork 源项目一致
Fork自
PaddlePaddle / Paddle
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
86a9434c
编写于
9月 25, 2017
作者:
T
tensor-tang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename script and modify comments
上级
bea39f63
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
17 addition
and
16 deletion
+17
-16
benchmark/paddle/image/run_mkldnn.sh
benchmark/paddle/image/run_mkldnn.sh
+15
-14
paddle/trainer/tests/test_CompareTwoNets.cpp
paddle/trainer/tests/test_CompareTwoNets.cpp
+2
-2
未找到文件。
benchmark/paddle/image/run
.
mkldnn.sh
→
benchmark/paddle/image/run
_
mkldnn.sh
浏览文件 @
86a9434c
...
...
@@ -7,16 +7,17 @@ export KMP_AFFINITY="granularity=fine,compact,0,0"
function
train
()
{
topology
=
$1
bs
=
$2
thread
=
1
if
[
$3
]
;
then
thread
=
$3
fi
if
[
$thread
-eq
1
]
;
then
use_mkldnn
=
1
use_mkldnn
=
$3
if
[
$3
==
"True"
]
;
then
use_mkldnn
=
$3
thread
=
1
log
=
"logs/
${
topology
}
-mkldnn-
${
bs
}
.log"
else
use_mkldnn
=
0
elif
[
$3
==
"False"
]
;
then
use_mkldnn
=
$3
thread
=
`
nproc
`
log
=
"logs/
${
topology
}
-
${
thread
}
mklml-
${
bs
}
.log"
else
echo
"Wrong input
$3
, use True or False."
fi
args
=
"batch_size=
${
bs
}
"
config
=
"
${
topology
}
.py"
...
...
@@ -40,11 +41,11 @@ fi
#========= mkldnn =========#
# vgg
train vgg 64
train vgg 128
train vgg 256
train vgg 64
True
train vgg 128
True
train vgg 256
True
#========== mklml ===========#
train vgg 64
16
train vgg 128
16
train vgg 256
16
train vgg 64
False
train vgg 128
False
train vgg 256
False
paddle/trainer/tests/test_CompareTwoNets.cpp
浏览文件 @
86a9434c
...
...
@@ -33,8 +33,8 @@ DECLARE_string(nics);
DEFINE_string
(
config_file_a
,
""
,
"config of one network to compare"
);
DEFINE_string
(
config_file_b
,
""
,
"config of another network to compare"
);
DEFINE_bool
(
use_mkldnn_a
,
false
,
"whether to use mkldnn to run
network
"
);
DEFINE_bool
(
use_mkldnn_b
,
false
,
"whether to use mkldnn to run
network
"
);
DEFINE_bool
(
use_mkldnn_a
,
false
,
"whether to use mkldnn to run
config_file_a
"
);
DEFINE_bool
(
use_mkldnn_b
,
false
,
"whether to use mkldnn to run
config_file_b
"
);
DEFINE_bool
(
need_high_accuracy
,
false
,
"whether need to run in double accuracy"
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录