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