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