未验证 提交 22e81907 编写于 作者: H HongyuJia 提交者: GitHub

change mkldnn kernel layout, ALL_LAYOUT->ONEDNN (#46626)

上级 4744cbc7
...@@ -34,9 +34,5 @@ void MaxRawKernel(const Context& dev_ctx, ...@@ -34,9 +34,5 @@ void MaxRawKernel(const Context& dev_ctx,
} }
} // namespace phi } // namespace phi
PD_REGISTER_KERNEL(max_raw, PD_REGISTER_KERNEL(
OneDNN, max_raw, OneDNN, ONEDNN, phi::MaxRawKernel, float, phi::dtype::bfloat16) {}
ALL_LAYOUT,
phi::MaxRawKernel,
float,
phi::dtype::bfloat16) {}
...@@ -55,7 +55,7 @@ void MeanGradKernel(const Context& dev_ctx, ...@@ -55,7 +55,7 @@ void MeanGradKernel(const Context& dev_ctx,
PD_REGISTER_KERNEL(mean_grad, PD_REGISTER_KERNEL(mean_grad,
OneDNN, OneDNN,
ALL_LAYOUT, ONEDNN,
phi::MeanGradKernel, phi::MeanGradKernel,
float, float,
phi::dtype::bfloat16) {} phi::dtype::bfloat16) {}
...@@ -34,9 +34,6 @@ void MeanRawKernel(const Context& dev_ctx, ...@@ -34,9 +34,6 @@ void MeanRawKernel(const Context& dev_ctx,
} }
} // namespace phi } // namespace phi
PD_REGISTER_KERNEL(mean_raw, PD_REGISTER_KERNEL(
OneDNN, mean_raw, OneDNN, ONEDNN, phi::MeanRawKernel, float, phi::dtype::bfloat16) {
ALL_LAYOUT, }
phi::MeanRawKernel,
float,
phi::dtype::bfloat16) {}
...@@ -35,9 +35,5 @@ void MinRawKernel(const Context& dev_ctx, ...@@ -35,9 +35,5 @@ void MinRawKernel(const Context& dev_ctx,
} // namespace phi } // namespace phi
PD_REGISTER_KERNEL(min_raw, PD_REGISTER_KERNEL(
OneDNN, min_raw, OneDNN, ONEDNN, phi::MinRawKernel, float, phi::dtype::bfloat16) {}
ALL_LAYOUT,
phi::MinRawKernel,
float,
phi::dtype::bfloat16) {}
...@@ -39,9 +39,6 @@ void SumGradKernel(const Context& dev_ctx, ...@@ -39,9 +39,6 @@ void SumGradKernel(const Context& dev_ctx,
} }
} // namespace phi } // namespace phi
PD_REGISTER_KERNEL(sum_grad, PD_REGISTER_KERNEL(
OneDNN, sum_grad, OneDNN, ONEDNN, phi::SumGradKernel, float, phi::dtype::bfloat16) {
ALL_LAYOUT, }
phi::SumGradKernel,
float,
phi::dtype::bfloat16) {}
...@@ -35,9 +35,5 @@ void SumRawKernel(const Context& dev_ctx, ...@@ -35,9 +35,5 @@ void SumRawKernel(const Context& dev_ctx,
} }
} // namespace phi } // namespace phi
PD_REGISTER_KERNEL(sum_raw, PD_REGISTER_KERNEL(
OneDNN, sum_raw, OneDNN, ONEDNN, phi::SumRawKernel, float, phi::dtype::bfloat16) {}
ALL_LAYOUT,
phi::SumRawKernel,
float,
phi::dtype::bfloat16) {}
...@@ -48,7 +48,7 @@ PD_REGISTER_KERNEL(max, KPS, ALL_LAYOUT, phi::MaxKernel, float) {} ...@@ -48,7 +48,7 @@ PD_REGISTER_KERNEL(max, KPS, ALL_LAYOUT, phi::MaxKernel, float) {}
#if defined(PADDLE_WITH_MKLDNN) #if defined(PADDLE_WITH_MKLDNN)
PD_REGISTER_KERNEL( PD_REGISTER_KERNEL(
max, OneDNN, ALL_LAYOUT, phi::MaxKernel, float, phi::dtype::bfloat16) {} max, OneDNN, ONEDNN, phi::MaxKernel, float, phi::dtype::bfloat16) {}
#endif #endif
#if defined(PADDLE_WITH_XPU) #if defined(PADDLE_WITH_XPU)
......
...@@ -53,7 +53,7 @@ PD_REGISTER_KERNEL(mean, KPS, ALL_LAYOUT, phi::MeanKernel, float) {} ...@@ -53,7 +53,7 @@ PD_REGISTER_KERNEL(mean, KPS, ALL_LAYOUT, phi::MeanKernel, float) {}
#if defined(PADDLE_WITH_MKLDNN) #if defined(PADDLE_WITH_MKLDNN)
PD_REGISTER_KERNEL( PD_REGISTER_KERNEL(
mean, OneDNN, ALL_LAYOUT, phi::MeanKernel, float, phi::dtype::bfloat16) {} mean, OneDNN, ONEDNN, phi::MeanKernel, float, phi::dtype::bfloat16) {}
#endif #endif
#if defined(PADDLE_WITH_XPU) #if defined(PADDLE_WITH_XPU)
......
...@@ -48,7 +48,7 @@ PD_REGISTER_KERNEL(min, KPS, ALL_LAYOUT, phi::MinKernel, float) {} ...@@ -48,7 +48,7 @@ PD_REGISTER_KERNEL(min, KPS, ALL_LAYOUT, phi::MinKernel, float) {}
#if defined(PADDLE_WITH_MKLDNN) #if defined(PADDLE_WITH_MKLDNN)
PD_REGISTER_KERNEL( PD_REGISTER_KERNEL(
min, OneDNN, ALL_LAYOUT, phi::MinKernel, float, phi::dtype::bfloat16) {} min, OneDNN, ONEDNN, phi::MinKernel, float, phi::dtype::bfloat16) {}
#endif #endif
#if defined(PADDLE_WITH_XPU) #if defined(PADDLE_WITH_XPU)
......
...@@ -81,7 +81,7 @@ PD_REGISTER_KERNEL(sum, KPS, ALL_LAYOUT, phi::SumKernel, float) { ...@@ -81,7 +81,7 @@ PD_REGISTER_KERNEL(sum, KPS, ALL_LAYOUT, phi::SumKernel, float) {
#if defined(PADDLE_WITH_MKLDNN) #if defined(PADDLE_WITH_MKLDNN)
PD_REGISTER_KERNEL( PD_REGISTER_KERNEL(
sum, OneDNN, ALL_LAYOUT, phi::SumKernel, float, phi::dtype::bfloat16) {} sum, OneDNN, ONEDNN, phi::SumKernel, float, phi::dtype::bfloat16) {}
#endif #endif
#if defined(PADDLE_WITH_XPU) #if defined(PADDLE_WITH_XPU)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册