未验证 提交 8727bb7c 编写于 作者: L lidanqing 提交者: GitHub

Revert "Revert md-in-tensor refactoring (#43564)" (#43598)

This reverts commit 1ec626b1.
上级 393e6fea
...@@ -47,12 +47,8 @@ class SoftmaxMKLDNNHandler ...@@ -47,12 +47,8 @@ class SoftmaxMKLDNNHandler
platform::errors::InvalidArgument( platform::errors::InvalidArgument(
"The shape of input and output tensor must be identical.")); "The shape of input and output tensor must be identical."));
auto softmax_tz = phi::vectorize(input->dims()); this->AcquireForwardPrimitiveDescriptor(prop_kind::forward_scoring,
auto md = memory::desc(softmax_tz, platform::MKLDNNGetDataType<T>(), input->mem_desc(), axis);
input->format());
this->AcquireForwardPrimitiveDescriptor(prop_kind::forward_scoring, md,
axis);
} }
SoftmaxMKLDNNHandler(const framework::ExecutionContext& ctx, SoftmaxMKLDNNHandler(const framework::ExecutionContext& ctx,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册