Skip to content

Commit

Permalink
[luci] Copy qparam to circle output (Samsung#12855)
Browse files Browse the repository at this point in the history
This supports copying qparam to circle output.

ONE-DCO-1.0-Signed-off-by: Hyukjin Jeong <[email protected]>
  • Loading branch information
jinevening authored Apr 9, 2024
1 parent 6de58be commit 57351d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler/luci/pass/src/CopyQuantParamPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ bool CopyQuantParamPass::run(loco::Graph *g)

copy_quantparam(nodes.src, nodes.dst);

if (auto output = dynamic_cast<luci::CircleOutput *>(nodes.dst))
{
auto from_node = loco::must_cast<luci::CircleNode *>(output->from());
copy_quantparam(output, from_node);
}

INFO(l) << "Quantparam of " << src << " is copied to " << dst << std::endl;
}

Expand Down

0 comments on commit 57351d0

Please sign in to comment.