Skip to content

Commit

Permalink
[CPU] zero-point fix
Browse files Browse the repository at this point in the history
  • Loading branch information
eshoguli committed Jul 14, 2023
1 parent 325d02b commit 1f294b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/plugins/intel_cpu/src/graph_optimizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -756,8 +756,10 @@ void GraphOptimizer::FuseConvolutionAndZeroPoints(Graph &graph) {
return false;
}

auto subtractArg0 = parent0->getParentEdgesAtPort(0)[0]->getParent();
if (subtractArg0->getOriginalOutputPrecisionAtPort(0) != Precision::U8)
const auto& parentEdge = parent0->getParentEdgeAt(0);
const auto& subtractArg0 = parentEdge->getParent();
const size_t portNum = parentEdge->getInputNum();
if (subtractArg0->getOriginalOutputPrecisionAtPort(portNum) != Precision::U8)
return false;

auto zeroPointsConstant = dynamic_cast<node::Input*>(subtractArg1.get());
Expand Down

0 comments on commit 1f294b0

Please sign in to comment.