Skip to content

Commit

Permalink
[luci] Remove redundant exception (#14504)
Browse files Browse the repository at this point in the history
This removes a redundant exception.

ONE-DCO-1.0-Signed-off-by: Hyukjin Jeong <[email protected]>
  • Loading branch information
jinevening authored Dec 30, 2024
1 parent d2680f8 commit 518bd72
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions compiler/luci/pass/src/PropagateQParamBackwardPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,6 @@ void overwrite_quantparam(const luci::CircleNode *source, luci::CircleNode *targ
auto quantparam = std::make_unique<luci::CircleQuantParam>();
target->quantparam(std::move(quantparam));
target_qparam = target->quantparam();

if (target_qparam == nullptr)
throw std::runtime_error("Creating new quant param failed");
}
target_qparam->min = source_qparam->min;
target_qparam->max = source_qparam->max;
Expand Down

0 comments on commit 518bd72

Please sign in to comment.