Skip to content

Commit

Permalink
Fix reduce skip check
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorDuplensky committed Dec 10, 2024
1 parent 81cd164 commit 9e170ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/intel_cpu/src/nodes/reduce.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2097,7 +2097,7 @@ void Reduce::initSupportedPrimitiveDescriptors() {
}

bool Reduce::canBeSkipped() const {
return getSelectedPrimitiveDescriptor()->hasZeroInputDimsAtPort(REDUCE_DATA);
return getSelectedPrimitiveDescriptor()->hasZeroOutputDimsAtPort(0);
}

bool Reduce::isExecutable() const {
Expand Down

0 comments on commit 9e170ae

Please sign in to comment.