[locoex-customop] Use link helper (#6208)
author박종현/On-Device Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Mon, 5 Aug 2019 08:13:56 +0000 (17:13 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Mon, 5 Aug 2019 08:13:56 +0000 (17:13 +0900)
Let's use link helper instead of deprecated node method.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
compiler/locoex-customop/src/Service/COpTypeInference.test.cpp

index 90ef1f2..add3419 100644 (file)
@@ -37,12 +37,12 @@ TEST(TypeInferenceRuleTest, COpTypeInference)
   auto graph_input = g->inputs()->create();
 
   graph_input->name("input");
-  graph_input->node(pull_node);
+  loco::link(graph_input, pull_node);
 
   auto graph_output = g->outputs()->create();
 
   graph_output->name("output");
-  graph_output->node(push_node);
+  loco::link(graph_output, push_node);
 
   // Run Type Inference
   locoex::COpTypeInferenceRule rule;