summaryrefslogtreecommitdiff
path: root/compiler/luci-interpreter/src/loader/nodes/Tanh.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/luci-interpreter/src/loader/nodes/Tanh.cpp')
-rw-r--r--compiler/luci-interpreter/src/loader/nodes/Tanh.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/luci-interpreter/src/loader/nodes/Tanh.cpp b/compiler/luci-interpreter/src/loader/nodes/Tanh.cpp
index f4255291b..a58ef60a8 100644
--- a/compiler/luci-interpreter/src/loader/nodes/Tanh.cpp
+++ b/compiler/luci-interpreter/src/loader/nodes/Tanh.cpp
@@ -24,9 +24,7 @@ namespace luci_interpreter
std::unique_ptr<Kernel> build_kernel_CircleTanh(const luci::CircleNode *circle_node,
KernelBuilderHelper &helper)
{
- const auto *node = dynamic_cast<const luci::CircleTanh *>(circle_node);
- if (node == nullptr)
- throw std::runtime_error("wrong builder for operation");
+ const auto *node = loco::must_cast<const luci::CircleTanh *>(circle_node);
assert(node->arity() == 1);
const Tensor *input = helper.getInputTensor(node->x());