未验证 提交 4744cbc7 编写于 作者: H HongyuJia 提交者: GitHub

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

上级 2b879a69
...@@ -48,7 +48,7 @@ void ClipGradKernel(const Context& dev_ctx, ...@@ -48,7 +48,7 @@ void ClipGradKernel(const Context& dev_ctx,
PD_REGISTER_KERNEL(clip_grad, PD_REGISTER_KERNEL(clip_grad,
OneDNN, OneDNN,
ALL_LAYOUT, ONEDNN,
phi::ClipGradKernel, phi::ClipGradKernel,
float, float,
phi::dtype::bfloat16) {} phi::dtype::bfloat16) {}
...@@ -43,4 +43,4 @@ void ClipKernel(const Context& dev_ctx, ...@@ -43,4 +43,4 @@ void ClipKernel(const Context& dev_ctx,
} // namespace phi } // namespace phi
PD_REGISTER_KERNEL( PD_REGISTER_KERNEL(
clip, OneDNN, ALL_LAYOUT, phi::ClipKernel, float, phi::dtype::bfloat16) {} clip, OneDNN, ONEDNN, phi::ClipKernel, float, phi::dtype::bfloat16) {}
...@@ -78,7 +78,7 @@ void ConcatGradKernel(const Context& dev_ctx, ...@@ -78,7 +78,7 @@ void ConcatGradKernel(const Context& dev_ctx,
PD_REGISTER_KERNEL(concat_grad, PD_REGISTER_KERNEL(concat_grad,
OneDNN, OneDNN,
ALL_LAYOUT, ONEDNN,
phi::ConcatGradKernel, phi::ConcatGradKernel,
float, float,
phi::dtype::bfloat16) {} phi::dtype::bfloat16) {}
...@@ -86,7 +86,7 @@ void ExpandGradKernel(const Context& dev_ctx, ...@@ -86,7 +86,7 @@ void ExpandGradKernel(const Context& dev_ctx,
PD_REGISTER_KERNEL(expand_grad, PD_REGISTER_KERNEL(expand_grad,
OneDNN, OneDNN,
ALL_LAYOUT, ONEDNN,
phi::ExpandGradKernel, phi::ExpandGradKernel,
float, float,
phi::dtype::bfloat16) {} phi::dtype::bfloat16) {}
...@@ -75,9 +75,5 @@ void ExpandKernel(const Context& dev_ctx, ...@@ -75,9 +75,5 @@ void ExpandKernel(const Context& dev_ctx,
} }
} // namespace phi } // namespace phi
PD_REGISTER_KERNEL(expand, PD_REGISTER_KERNEL(
OneDNN, expand, OneDNN, ONEDNN, phi::ExpandKernel, float, phi::dtype::bfloat16) {}
ALL_LAYOUT,
phi::ExpandKernel,
float,
phi::dtype::bfloat16) {}
...@@ -65,7 +65,7 @@ void LogSoftmaxKernel(const Context& dev_ctx, ...@@ -65,7 +65,7 @@ void LogSoftmaxKernel(const Context& dev_ctx,
PD_REGISTER_KERNEL(log_softmax, PD_REGISTER_KERNEL(log_softmax,
OneDNN, OneDNN,
ALL_LAYOUT, ONEDNN,
phi::LogSoftmaxKernel, phi::LogSoftmaxKernel,
float, float,
phi::dtype::bfloat16) {} phi::dtype::bfloat16) {}
...@@ -31,4 +31,4 @@ void Pad3dKernel(const Context& dev_ctx, ...@@ -31,4 +31,4 @@ void Pad3dKernel(const Context& dev_ctx,
} }
} // namespace phi } // namespace phi
PD_REGISTER_KERNEL(pad3d, OneDNN, ALL_LAYOUT, phi::Pad3dKernel, float) {} PD_REGISTER_KERNEL(pad3d, OneDNN, ONEDNN, phi::Pad3dKernel, float) {}
...@@ -34,4 +34,4 @@ void PadKernel(const Context& dev_ctx, ...@@ -34,4 +34,4 @@ void PadKernel(const Context& dev_ctx,
} }
} // namespace phi } // namespace phi
PD_REGISTER_KERNEL(pad, OneDNN, ALL_LAYOUT, phi::PadKernel, float) {} PD_REGISTER_KERNEL(pad, OneDNN, ONEDNN, phi::PadKernel, float) {}
...@@ -80,7 +80,7 @@ void SliceGradRawKernel(const Context& dev_ctx, ...@@ -80,7 +80,7 @@ void SliceGradRawKernel(const Context& dev_ctx,
PD_REGISTER_KERNEL(slice_grad, PD_REGISTER_KERNEL(slice_grad,
OneDNN, OneDNN,
ALL_LAYOUT, ONEDNN,
phi::SliceGradRawKernel, phi::SliceGradRawKernel,
float, float,
phi::dtype::bfloat16) {} phi::dtype::bfloat16) {}
...@@ -101,7 +101,7 @@ void SliceRawKernel(const Context& dev_ctx, ...@@ -101,7 +101,7 @@ void SliceRawKernel(const Context& dev_ctx,
PD_REGISTER_KERNEL(slice, PD_REGISTER_KERNEL(slice,
OneDNN, OneDNN,
ALL_LAYOUT, ONEDNN,
phi::SliceRawKernel, phi::SliceRawKernel,
float, float,
int8_t, int8_t,
......
...@@ -50,4 +50,4 @@ void SoftmaxGradKernel(const Context& dev_ctx, ...@@ -50,4 +50,4 @@ void SoftmaxGradKernel(const Context& dev_ctx,
} // namespace phi } // namespace phi
PD_REGISTER_KERNEL( PD_REGISTER_KERNEL(
softmax_grad, OneDNN, ALL_LAYOUT, phi::SoftmaxGradKernel, float) {} softmax_grad, OneDNN, ONEDNN, phi::SoftmaxGradKernel, float) {}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册