Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d3b15a9

Browse files
liubo-intelazhai219
authored andcommittedDec 3, 2024··
[FIX] fix cpu convolution qdq testcase fail issue when using scratchpad
1 parent 6bdd320 commit d3b15a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/common/primitive_desc.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ struct primitive_desc_t : public c_compatible {
174174
&& !attr()->weights_zero_points_.has_default_values())
175175
return arg_usage_t::input;
176176
if ((arg & (DNNL_ARG_ATTR_ZERO_POINTS | DNNL_ARG_DST))
177-
&& !attr()->output_compensations_.has_default_values())
177+
&& !attr()->output_compensations_.has_default_values()
178+
&& arg != DNNL_ARG_SCRATCHPAD)
178179
return arg_usage_t::input;
179180
if ((arg == (DNNL_ARG_ATTR_SCALES | DNNL_ARG_SRC_0))
180181
&& !attr()->scales_.get(DNNL_ARG_SRC_0).defined())

0 commit comments

Comments
 (0)
Please sign in to comment.