From 891bb45dbf560a32ab1b6ec23b6b0810e27fc01d Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/On-Device=20Lab=28SR=29/Staff?= =?utf8?q?=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Wed, 14 Aug 2019 18:22:37 +0900 Subject: [PATCH] [loco] Clean up GraphTestcase (#6613) Let's remove deprecated code in GraphTestcase.h Signed-off-by: Jonghyun Park --- compiler/loco/src/Service/GraphTestcase.h | 93 ------------------------------- 1 file changed, 93 deletions(-) diff --git a/compiler/loco/src/Service/GraphTestcase.h b/compiler/loco/src/Service/GraphTestcase.h index 9f1004f..40a4435 100644 --- a/compiler/loco/src/Service/GraphTestcase.h +++ b/compiler/loco/src/Service/GraphTestcase.h @@ -34,39 +34,6 @@ private: pull_node = graph_builder->push()->name("input")->shape(dims)->node(); push_node = graph_builder->push()->name("output")->node(); - -// TODO Remove deprecated code -#if 0 - // Create Nodes - pull_node = _graph->nodes()->create(); - pull_node->shape(dims); - - push_node = _graph->nodes()->create(); - - push_node->from(pull_node); - - // Create Graph Input - auto graph_input = _graph->inputs()->create(); - - graph_input->name("input"); - // NOTE GraphInput::shape takes std::initializer_list - // - // TODO Uncomment this line after GraphInput update - // graph->input->shape(dims) - loco::link(graph_input, pull_node); - pull_node->index(0); - - // Create Graph Output - auto graph_output = _graph->outputs()->create(); - - graph_output->name("output"); - // NOTE GraphInput::shape takes std::initializer_list - // - // TODO Uncomment this line after GraphInput update - // graph->output->shape(dims) - loco::link(graph_output, push_node); - push_node->index(0); -#endif } public: @@ -134,35 +101,6 @@ public: pull_node = graph_builder->push()->name("input")->node(); relu_node = graph_builder->push()->node(); push_node = graph_builder->push()->name("output")->node(); - -// TODO Remove deprecated code -#if 0 - // Create a sample network - _graph = loco::make_graph(); - - // Create Nodes - pull_node = _graph->nodes()->create(); - - relu_node = _graph->nodes()->create(); - relu_node->input(pull_node); - - push_node = _graph->nodes()->create(); - push_node->from(relu_node); - - // Create Graph Input - auto graph_input = _graph->inputs()->create(); - - graph_input->name("input"); - loco::link(graph_input, pull_node); - pull_node->index(0); - - // Create Graph Output - auto graph_output = _graph->outputs()->create(); - - graph_output->name("output"); - loco::link(graph_output, push_node); - push_node->index(0); -#endif } public: @@ -199,37 +137,6 @@ public: encode_node = graph_builder->push()->perm(perm)->node(); decode_node = graph_builder->push()->perm(perm)->node(); push_node = graph_builder->push()->name("output")->node(); - -// TODO Remove deprecated code -#if 0 - // Create Nodes - pull_node = _graph->nodes()->create(); - - encode_node = _graph->nodes()->create(); - encode_node->input(pull_node); - encode_node->encoder(stdex::make_unique>(perm)); - - decode_node = _graph->nodes()->create(); - decode_node->input(encode_node); - decode_node->decoder(stdex::make_unique>(perm)); - - push_node = _graph->nodes()->create(); - push_node->from(decode_node); - - // Create Graph Input - auto graph_input = _graph->inputs()->create(); - - graph_input->name("input"); - loco::link(graph_input, pull_node); - pull_node->index(0); - - // Create Graph Output - auto graph_output = _graph->outputs()->create(); - - graph_output->name("output"); - loco::link(graph_output, push_node); - push_node->index(0); -#endif } public: -- 2.7.4