From 157d91c7a1433ad982b00b1c2546a7771764af1e Mon Sep 17 00:00:00 2001 From: Hyukjin Jeong Date: Mon, 30 Dec 2024 10:48:38 +0900 Subject: [PATCH] [luci] Remove redundant exception This removes a redundant exception. ONE-DCO-1.0-Signed-off-by: Hyukjin Jeong --- compiler/luci/pass/src/PropagateQParamBackwardPass.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/compiler/luci/pass/src/PropagateQParamBackwardPass.cpp b/compiler/luci/pass/src/PropagateQParamBackwardPass.cpp index da115b06dcf..363840e2430 100644 --- a/compiler/luci/pass/src/PropagateQParamBackwardPass.cpp +++ b/compiler/luci/pass/src/PropagateQParamBackwardPass.cpp @@ -98,9 +98,6 @@ void overwrite_quantparam(const luci::CircleNode *source, luci::CircleNode *targ auto quantparam = std::make_unique(); 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;