Skip to content

Commit ae64fc4

Browse files
authored
[CPU] FC dynamic quantization condition update (#34653)
### Details: - *unapplicable when ic < dq group size* ### Tickets: - *CVS-181774* ### AI Assistance: - *AI assistance used: yes* - *copilot add debug info when create primitive descriptor and check onednn on why primitive descriptor not created. Provide several possibility and human analyze and select the real one*
1 parent d29bb10 commit ae64fc4

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/plugins/intel_cpu/src/nodes/executors/dnnl/dnnl_fullyconnected_primitive.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,13 @@ static bool useDynamicQuantizationImpl(size_t dqGroupSize,
198198
}
199199

200200
MemoryCPtr scalesPtr = memory.count(ARG_WEI | ARG_ATTR_SCALES) ? memory.at(ARG_WEI | ARG_ATTR_SCALES) : nullptr;
201-
int ic = weightsDesc->getShape().getStaticDims()[1];
201+
size_t ic = weightsDesc->getShape().getStaticDims()[1];
202202

203-
if (ic < static_cast<int>(simdWidth)) {
203+
if (ic < simdWidth) {
204+
return false;
205+
}
206+
207+
if (ic < dqGroupSize) {
204208
return false;
205209
}
206210

0 commit comments

Comments
 (0)