Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OPTHREE
Paddle
提交
abee2210
P
Paddle
项目概览
OPTHREE
/
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,发现更多精彩内容 >>
未验证
提交
abee2210
编写于
9月 30, 2022
作者:
H
HongyuJia
提交者:
GitHub
9月 30, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
change mkldnn kernel layout, ALL_LAYOUT->ONEDNN (#46629)
上级
b7b231a6
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
13 addition
and
13 deletion
+13
-13
paddle/fluid/framework/ir/mkldnn/mkldnn_conv_bn_fuse_pass_tester.cc
...id/framework/ir/mkldnn/mkldnn_conv_bn_fuse_pass_tester.cc
+1
-1
paddle/fluid/framework/ir/mkldnn/mkldnn_inplace_pass_tester.cc
...e/fluid/framework/ir/mkldnn/mkldnn_inplace_pass_tester.cc
+2
-2
paddle/fluid/imperative/tests/test_prepare_op.cc
paddle/fluid/imperative/tests/test_prepare_op.cc
+1
-1
paddle/fluid/operators/mkldnn/test_mkldnn_caching.cc
paddle/fluid/operators/mkldnn/test_mkldnn_caching.cc
+1
-1
paddle/fluid/operators/mkldnn/test_mkldnn_op_inplace.cc
paddle/fluid/operators/mkldnn/test_mkldnn_op_inplace.cc
+1
-1
paddle/fluid/operators/mkldnn/test_mkldnn_op_nhwc.cc
paddle/fluid/operators/mkldnn/test_mkldnn_op_nhwc.cc
+2
-2
paddle/phi/kernels/onednn/activation_grad_kernel.cc
paddle/phi/kernels/onednn/activation_grad_kernel.cc
+2
-2
paddle/phi/kernels/onednn/activation_kernel.cc
paddle/phi/kernels/onednn/activation_kernel.cc
+2
-2
paddle/phi/kernels/onednn/shape_kernel.cc
paddle/phi/kernels/onednn/shape_kernel.cc
+1
-1
未找到文件。
paddle/fluid/framework/ir/mkldnn/mkldnn_conv_bn_fuse_pass_tester.cc
浏览文件 @
abee2210
...
...
@@ -38,7 +38,7 @@ USE_OP_DEVICE_KERNEL(conv2d_transpose, MKLDNN);
USE_OP_ITSELF
(
elementwise_add
);
USE_OP_DEVICE_KERNEL
(
elementwise_add
,
MKLDNN
);
USE_OP_ITSELF
(
gelu
);
PD_DECLARE_KERNEL
(
gelu
,
OneDNN
,
ALL_LAYOUT
);
PD_DECLARE_KERNEL
(
gelu
,
OneDNN
,
ONEDNN
);
PD_DECLARE_ARG_MAPPING_FN
(
gelu
);
namespace
paddle
{
...
...
paddle/fluid/framework/ir/mkldnn/mkldnn_inplace_pass_tester.cc
浏览文件 @
abee2210
...
...
@@ -27,11 +27,11 @@ USE_OP_DEVICE_KERNEL(softmax, MKLDNN);
USE_OP_ITSELF
(
elementwise_add
);
USE_OP_DEVICE_KERNEL
(
elementwise_add
,
MKLDNN
);
USE_OP_ITSELF
(
leaky_relu
);
PD_DECLARE_KERNEL
(
leaky_relu
,
OneDNN
,
ALL_LAYOUT
);
PD_DECLARE_KERNEL
(
leaky_relu
,
OneDNN
,
ONEDNN
);
USE_OP_ITSELF
(
gelu
);
USE_OP_ITSELF
(
relu
);
USE_OP_ITSELF
(
tanh
);
PD_DECLARE_KERNEL
(
tanh
,
OneDNN
,
ALL_LAYOUT
);
PD_DECLARE_KERNEL
(
tanh
,
OneDNN
,
ONEDNN
);
PD_DECLARE_ARG_MAPPING_FN
(
gelu
);
namespace
paddle
{
...
...
paddle/fluid/imperative/tests/test_prepare_op.cc
浏览文件 @
abee2210
...
...
@@ -259,5 +259,5 @@ TEST(test_prepare_op, test_prepare_data_cpu_mkldnn) {
USE_OP_ITSELF
(
split
);
USE_OP_ITSELF
(
relu
);
#ifdef PADDLE_WITH_MKLDNN
PD_DECLARE_KERNEL
(
relu
,
OneDNN
,
ALL_LAYOUT
);
PD_DECLARE_KERNEL
(
relu
,
OneDNN
,
ONEDNN
);
#endif
paddle/fluid/operators/mkldnn/test_mkldnn_caching.cc
浏览文件 @
abee2210
...
...
@@ -32,7 +32,7 @@ USE_OP_DEVICE_KERNEL(elementwise_add, MKLDNN);
USE_OP_ITSELF
(
elementwise_mul
);
USE_OP_DEVICE_KERNEL
(
elementwise_mul
,
MKLDNN
);
USE_OP_ITSELF
(
relu
);
PD_DECLARE_KERNEL
(
relu
,
OneDNN
,
ALL_LAYOUT
);
PD_DECLARE_KERNEL
(
relu
,
OneDNN
,
ONEDNN
);
USE_OP_ITSELF
(
softmax
);
USE_OP_DEVICE_KERNEL
(
softmax
,
MKLDNN
);
USE_OP_ITSELF
(
conv2d
);
...
...
paddle/fluid/operators/mkldnn/test_mkldnn_op_inplace.cc
浏览文件 @
abee2210
...
...
@@ -30,7 +30,7 @@
USE_OP_ITSELF
(
elementwise_add
);
USE_OP_DEVICE_KERNEL
(
elementwise_add
,
MKLDNN
);
USE_OP_ITSELF
(
relu
);
PD_DECLARE_KERNEL
(
relu
,
OneDNN
,
ALL_LAYOUT
);
PD_DECLARE_KERNEL
(
relu
,
OneDNN
,
ONEDNN
);
USE_OP_ITSELF
(
softmax
);
USE_OP_DEVICE_KERNEL
(
softmax
,
MKLDNN
);
...
...
paddle/fluid/operators/mkldnn/test_mkldnn_op_nhwc.cc
浏览文件 @
abee2210
...
...
@@ -30,11 +30,11 @@
USE_OP_ITSELF
(
pool2d
);
USE_OP_DEVICE_KERNEL
(
pool2d
,
MKLDNN
);
USE_OP_ITSELF
(
relu
);
PD_DECLARE_KERNEL
(
relu
,
OneDNN
,
ALL_LAYOUT
);
PD_DECLARE_KERNEL
(
relu
,
OneDNN
,
ONEDNN
);
USE_OP_ITSELF
(
transpose
);
USE_OP_DEVICE_KERNEL
(
transpose
,
MKLDNN
);
USE_OP_ITSELF
(
shape
);
PD_DECLARE_KERNEL
(
shape
,
OneDNN
,
ALL_LAYOUT
);
PD_DECLARE_KERNEL
(
shape
,
OneDNN
,
ONEDNN
);
USE_OP_ITSELF
(
crop
);
USE_OP_DEVICE_KERNEL
(
crop
,
CPU
);
...
...
paddle/phi/kernels/onednn/activation_grad_kernel.cc
浏览文件 @
abee2210
...
...
@@ -260,14 +260,14 @@ void Relu6GradKernel(const Context& dev_ctx,
PD_REGISTER_KERNEL
(
relu_grad
,
OneDNN
,
ALL_LAYOUT
,
ONEDNN
,
phi
::
ReluGradKernel
,
float
,
phi
::
dtype
::
bfloat16
)
{}
#define PD_REGISTER_ACTIVATION_GRAD_KERNEL(name, func) \
PD_REGISTER_KERNEL( \
name, OneDNN,
ALL_LAYOUT
, phi::func, float, phi::dtype::bfloat16) {}
name, OneDNN,
ONEDNN
, phi::func, float, phi::dtype::bfloat16) {}
PD_REGISTER_ACTIVATION_GRAD_KERNEL
(
abs_grad
,
AbsGradKernel
)
PD_REGISTER_ACTIVATION_GRAD_KERNEL
(
elu_grad
,
EluGradKernel
)
...
...
paddle/phi/kernels/onednn/activation_kernel.cc
浏览文件 @
abee2210
...
...
@@ -192,11 +192,11 @@ void Relu6Kernel(const Context& dev_ctx,
}
// namespace phi
PD_REGISTER_KERNEL
(
round
,
OneDNN
,
ALL_LAYOUT
,
phi
::
RoundKernel
,
float
)
{}
PD_REGISTER_KERNEL
(
round
,
OneDNN
,
ONEDNN
,
phi
::
RoundKernel
,
float
)
{}
#define PD_REGISTER_ACTIVATION_KERNEL(name, func) \
PD_REGISTER_KERNEL( \
name, OneDNN,
ALL_LAYOUT
, phi::func, float, phi::dtype::bfloat16) {}
name, OneDNN,
ONEDNN
, phi::func, float, phi::dtype::bfloat16) {}
PD_REGISTER_ACTIVATION_KERNEL
(
abs
,
AbsKernel
)
PD_REGISTER_ACTIVATION_KERNEL
(
elu
,
EluKernel
)
...
...
paddle/phi/kernels/onednn/shape_kernel.cc
浏览文件 @
abee2210
...
...
@@ -51,7 +51,7 @@ void ShapeKernel(const Context& dev_ctx,
PD_REGISTER_KERNEL
(
shape
,
OneDNN
,
ALL_LAYOUT
,
ONEDNN
,
phi
::
ShapeKernel
,
float
,
phi
::
dtype
::
bfloat16
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录