From 35ebf2b4036fa94c43de0a9385dcb0c43cc139f7 Mon Sep 17 00:00:00 2001 From: YuanRisheng Date: Mon, 5 Dec 2022 19:44:41 +0800 Subject: [PATCH] fix onednn bugs (#48714) --- paddle/fluid/framework/operator.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/fluid/framework/operator.cc b/paddle/fluid/framework/operator.cc index b294779837..8e9753e1d7 100644 --- a/paddle/fluid/framework/operator.cc +++ b/paddle/fluid/framework/operator.cc @@ -3260,6 +3260,7 @@ void OperatorWithKernel::BuildPhiKernelContext( #if defined(PADDLE_WITH_MKLDNN) || defined(PADDLE_WITH_CUDA) auto& runtime_attrs = RuntimeAttrs(); for (const auto& attr_iter : runtime_attrs) { + need_prepare_phi_data_ = true; auto& attr_name = attr_iter.first; auto& attr = attr_iter.second; auto attr_propertys = paddle::operators::GetExtraAttrProperties(attr_name); -- GitLab