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

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
compiler/loco-exporter/src/Exporter.test.cpp

index 5dd96c1..1e46e3e 100644 (file)
@@ -45,7 +45,7 @@ public:
 
     auto graph_input = _graph.inputs()->create();
     graph_input->name("graph_input");
-    graph_input->node(pull);
+    loco::link(graph_input, pull);
 
     pull->dtype(loco::DataType::FLOAT32);
     setSampleShape(pull);
@@ -71,7 +71,7 @@ public:
 
     auto graph_output = _graph.outputs()->create();
     graph_output->name("graph_output");
-    graph_output->node(push);
+    loco::link(graph_output, push);
 
     push->from(input);
     return push;