From 21d4fa0280eb4e081de489bbcf40ece7977ae669 Mon Sep 17 00:00:00 2001 From: YuanRisheng Date: Tue, 15 Nov 2022 19:41:19 +0800 Subject: [PATCH] fix onednn bugs, test=document_fix (#48013) --- paddle/fluid/operators/mkldnn/layer_norm_mkldnn_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/mkldnn/layer_norm_mkldnn_op.cc b/paddle/fluid/operators/mkldnn/layer_norm_mkldnn_op.cc index dee65287724..1cee039640f 100644 --- a/paddle/fluid/operators/mkldnn/layer_norm_mkldnn_op.cc +++ b/paddle/fluid/operators/mkldnn/layer_norm_mkldnn_op.cc @@ -52,7 +52,7 @@ class LayerNormOneDNNHandler if (scaleshift) { return this->AcquireMemoryFromPrimitive( this->fwd_pd_->weights_desc(), - platform::to_void_cast(scaleshift->data())); + phi::funcs::to_void_cast(scaleshift->data())); } else { const unsigned int C = phi::vectorize(scale->dims())[0]; -- GitLab