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