Imported Upstream version 1.25.0
[platform/core/ml/nnfw.git] / compiler / luci / partition / src / Nodes / CircleGelu.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd. All Rights Reserved
+ * Copyright (c) 2023 Samsung Electronics Co., Ltd. All Rights Reserved
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * limitations under the License.
  */
 
-#include "Builders.h"
+#include "luci/ConnectNode.h"
 
-#include "kernels/While.h"
-
-namespace luci_interpreter
+namespace
 {
 
-std::unique_ptr<Kernel> build_kernel_CircleWhile(std::vector<const Tensor *> &&inputs,
-                                                 std::vector<Tensor *> &&outputs,
-                                                 const uint32_t op_index, KernelBuilder &builder)
+void connect(luci::ConnectNode *cn, const luci::CircleGelu *node)
 {
-  // TODO: support IF operation
-  assert(false && "Not supported now");
+  auto *cloned = loco::must_cast<luci::CircleGelu *>(cn->find_clone(node));
+
+  luci::CircleNode *features = loco::must_cast<luci::CircleNode *>(node->features());
+
+  cloned->features(cn->find_clone(features));
 }
 
-} // namespace luci_interpreter
+} // namespace
+
+namespace luci
+{
+
+void ConnectNode::visit(const luci::CircleGelu *node) { connect(this, node); }
+
+} // namespace luci