Remove redundant exception tizen
authorHyukjin Jeong <hj1.jeong@samsung.com>
Mon, 30 Dec 2024 01:48:38 +0000 (10:48 +0900)
committerChunseok Lee <chunseok.lee@samsung.com>
Mon, 30 Dec 2024 02:28:06 +0000 (11:28 +0900)
This removes a redundant exception.

ONE-DCO-1.0-Signed-off-by: Hyukjin Jeong <hj1.jeong@samsung.com>

compiler/luci/pass/src/PropagateQParamBackwardPass.cpp

index 18617e3b77bcf94921ffa64d693b8c3b240f8c43..a2e407b352a01efce430caa62c80b77a7669d938 100644 (file)
@@ -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;