Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
f5df46e1
P
Paddle
项目概览
PaddlePaddle
/
Paddle
1 年多 前同步成功
通知
2302
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f5df46e1
编写于
11月 17, 2017
作者:
T
tensor-tang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename all Mkldnn to MKLDNN
上级
ba868854
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
6 addition
and
6 deletion
+6
-6
paddle/gserver/layers/MKLDNNLayer.cpp
paddle/gserver/layers/MKLDNNLayer.cpp
+1
-1
paddle/gserver/tests/CMakeLists.txt
paddle/gserver/tests/CMakeLists.txt
+1
-1
paddle/gserver/tests/MKLDNNTester.h
paddle/gserver/tests/MKLDNNTester.h
+1
-1
python/paddle/trainer/config_parser.py
python/paddle/trainer/config_parser.py
+3
-3
未找到文件。
paddle/gserver/layers/MKLDNNLayer.cpp
浏览文件 @
f5df46e1
...
@@ -21,7 +21,7 @@ namespace paddle {
...
@@ -21,7 +21,7 @@ namespace paddle {
bool
MKLDNNLayer
::
init
(
const
LayerMap
&
layerMap
,
bool
MKLDNNLayer
::
init
(
const
LayerMap
&
layerMap
,
const
ParameterMap
&
parameterMap
)
{
const
ParameterMap
&
parameterMap
)
{
CHECK
(
FLAGS_use_mkldnn
)
<<
"M
kldnn
Layers only support use_mkldnn."
CHECK
(
FLAGS_use_mkldnn
)
<<
"M
KLDNN
Layers only support use_mkldnn."
<<
"Please set WITH_MKL=ON "
<<
"Please set WITH_MKL=ON "
<<
"and set use_mkldnn=True"
;
<<
"and set use_mkldnn=True"
;
CHECK
(
!
useGpu_
)
<<
"Do not support GPU yet"
;
CHECK
(
!
useGpu_
)
<<
"Do not support GPU yet"
;
...
...
paddle/gserver/tests/CMakeLists.txt
浏览文件 @
f5df46e1
...
@@ -29,7 +29,7 @@ gserver_test(test_KmaxSeqScore)
...
@@ -29,7 +29,7 @@ gserver_test(test_KmaxSeqScore)
gserver_test
(
test_Expand
)
gserver_test
(
test_Expand
)
gserver_test
(
test_MaxPoolingWithMaskOutput
)
gserver_test
(
test_MaxPoolingWithMaskOutput
)
########## test_M
kldnn
layers and activations ##########
########## test_M
KLDNN
layers and activations ##########
if
(
WITH_MKLDNN
)
if
(
WITH_MKLDNN
)
add_unittest_without_exec
(
test_MKLDNN
add_unittest_without_exec
(
test_MKLDNN
test_MKLDNN.cpp
test_MKLDNN.cpp
...
...
paddle/gserver/tests/MKLDNNTester.h
浏览文件 @
f5df46e1
...
@@ -23,7 +23,7 @@ limitations under the License. */
...
@@ -23,7 +23,7 @@ limitations under the License. */
namespace
paddle
{
namespace
paddle
{
/**
/**
* @brief test the functionality of M
kldnnlayer
s
* @brief test the functionality of M
KLDNNlayers and MKLDNNActivation
s
* refer to paddle original function
* refer to paddle original function
*/
*/
class
MKLDNNTester
{
class
MKLDNNTester
{
...
...
python/paddle/trainer/config_parser.py
浏览文件 @
f5df46e1
...
@@ -1826,7 +1826,7 @@ class FCLayer(LayerBase):
...
@@ -1826,7 +1826,7 @@ class FCLayer(LayerBase):
self
.
layer_type
=
'mkldnn_fc'
self
.
layer_type
=
'mkldnn_fc'
config_assert
(
config_assert
(
len
(
inputs
)
==
1
,
len
(
inputs
)
==
1
,
"M
kldnn
FCLayer support one and only one input!"
)
"M
KLDNN
FCLayer support one and only one input!"
)
super
(
FCLayer
,
self
).
__init__
(
super
(
FCLayer
,
self
).
__init__
(
name
,
self
.
layer_type
,
size
,
inputs
=
inputs
,
**
xargs
)
name
,
self
.
layer_type
,
size
,
inputs
=
inputs
,
**
xargs
)
for
input_index
in
xrange
(
len
(
self
.
inputs
)):
for
input_index
in
xrange
(
len
(
self
.
inputs
)):
...
@@ -1837,7 +1837,7 @@ class FCLayer(LayerBase):
...
@@ -1837,7 +1837,7 @@ class FCLayer(LayerBase):
sparse
=
format
==
"csr"
or
format
==
"csc"
sparse
=
format
==
"csr"
or
format
==
"csc"
if
use_mkldnn
:
if
use_mkldnn
:
config_assert
(
not
sparse
,
config_assert
(
not
sparse
,
"M
kldnn
FCLayer do not support sparse format yet"
)
"M
KLDNN
FCLayer do not support sparse format yet"
)
if
use_mkldnn_wgt
:
if
use_mkldnn_wgt
:
dims
=
[
self
.
config
.
size
,
input_layer
.
size
]
dims
=
[
self
.
config
.
size
,
input_layer
.
size
]
if
sparse
:
if
sparse
:
...
@@ -1853,7 +1853,7 @@ class FCLayer(LayerBase):
...
@@ -1853,7 +1853,7 @@ class FCLayer(LayerBase):
@
config_layer
(
'mkldnn_fc'
)
@
config_layer
(
'mkldnn_fc'
)
class
M
kldnn
FcLayer
(
FCLayer
):
class
M
KLDNN
FcLayer
(
FCLayer
):
layer_type
=
'mkldnn_fc'
layer_type
=
'mkldnn_fc'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录