Skip to content

Commit f7e7c95

Browse files
committed
cpu: conv: int8 gemm: fix dangling pointer issue
1 parent 40ed63d commit f7e7c95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpu/gemm_x8s8s32x_convolution.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ struct _gemm_x8s8s32x_convolution_fwd_t: public cpu_primitive_t {
122122
_gemm_x8s8s32x_convolution_fwd_t(const pd_t *apd, const input_vector &inputs,
123123
const output_vector &outputs)
124124
: cpu_primitive_t(apd, inputs, outputs, true) {
125-
pp_ker_ = new pp_ker_t(apd);
125+
pp_ker_ = new pp_ker_t(this->pd());
126126
}
127127
~_gemm_x8s8s32x_convolution_fwd_t() {
128128
delete pp_ker_;

0 commit comments

Comments
 (0)