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

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

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