diff options
Diffstat (limited to 'compiler/luci-interpreter/src/loader/nodes/LogicalOr.cpp')
-rw-r--r-- | compiler/luci-interpreter/src/loader/nodes/LogicalOr.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/luci-interpreter/src/loader/nodes/LogicalOr.cpp b/compiler/luci-interpreter/src/loader/nodes/LogicalOr.cpp index 50566bb30..a416cb401 100644 --- a/compiler/luci-interpreter/src/loader/nodes/LogicalOr.cpp +++ b/compiler/luci-interpreter/src/loader/nodes/LogicalOr.cpp @@ -24,9 +24,7 @@ namespace luci_interpreter std::unique_ptr<Kernel> build_kernel_CircleLogicalOr(const luci::CircleNode *circle_node, KernelBuilderHelper &helper) { - const auto *node = dynamic_cast<const luci::CircleLogicalOr *>(circle_node); - if (node == nullptr) - throw std::runtime_error("wrong builder for operation"); + const auto *node = loco::must_cast<const luci::CircleLogicalOr *>(circle_node); assert(node->arity() == 2); const Tensor *input1 = helper.getInputTensor(node->x()); |