未验证 提交 23d9e947 编写于 作者: S Sylwester Fraczek 提交者: GitHub

fix use of implicitly deleted constructor (#38225)

上级 0e9597d5
...@@ -151,8 +151,7 @@ class MatMulMKLDNNHandler ...@@ -151,8 +151,7 @@ class MatMulMKLDNNHandler
MatMulMKLDNNHandler(const dnnl::engine engine, const ExecutionContext& ctx, MatMulMKLDNNHandler(const dnnl::engine engine, const ExecutionContext& ctx,
float scale) float scale)
: paddle::platform::MKLDNNHandlerNoCachingT<XT, dnnl::matmul>( : paddle::platform::MKLDNNHandlerNoCachingT<XT, dnnl::matmul>(
engine, ctx.GetPlace()), engine, ctx.GetPlace()) {
matmul_dims_(GetMatmulDims(ctx)) {
dnnl::primitive_attr attr; dnnl::primitive_attr attr;
float scale_out = ComputeOutputScale(ctx); float scale_out = ComputeOutputScale(ctx);
if (scale_out != 1.0f) { if (scale_out != 1.0f) {
...@@ -160,6 +159,7 @@ class MatMulMKLDNNHandler ...@@ -160,6 +159,7 @@ class MatMulMKLDNNHandler
attr.set_output_scales(tensor_wide_scale, {scale_out}); attr.set_output_scales(tensor_wide_scale, {scale_out});
} }
auto matmul_dims_ = GetMatmulDims(ctx);
auto x_md = memory::desc(matmul_dims_.x_dims, MKLDNNGetDataType<XT>(), auto x_md = memory::desc(matmul_dims_.x_dims, MKLDNNGetDataType<XT>(),
matmul_dims_.x_strides); matmul_dims_.x_strides);
auto y_md = memory::desc(matmul_dims_.y_dims, MKLDNNGetDataType<YT>(), auto y_md = memory::desc(matmul_dims_.y_dims, MKLDNNGetDataType<YT>(),
...@@ -419,7 +419,6 @@ class MatMulMKLDNNHandler ...@@ -419,7 +419,6 @@ class MatMulMKLDNNHandler
} }
private: private:
MatMulDims matmul_dims_;
uint32_t x_offset_; uint32_t x_offset_;
uint32_t y_offset_; uint32_t y_offset_;
uint32_t out_offset_; uint32_t out_offset_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册