From 153859a4c1795694d378c451e2cb5c0dbcaab73e Mon Sep 17 00:00:00 2001 From: timedilation Date: Sun, 21 Oct 2018 14:11:03 +0900 Subject: [PATCH] Revert "#22 add Planner visit function" This reverts commit 48a9e46aa8b514c45322dc644abf7a468df079ec. --- .../runtimes/neurun/src/codegen/Planner.cc | 21 ------------------- newnnfw/runtimes/neurun/src/codegen/Planner.h | 1 - 2 files changed, 22 deletions(-) diff --git a/newnnfw/runtimes/neurun/src/codegen/Planner.cc b/newnnfw/runtimes/neurun/src/codegen/Planner.cc index c8ece99..1add3ac 100644 --- a/newnnfw/runtimes/neurun/src/codegen/Planner.cc +++ b/newnnfw/runtimes/neurun/src/codegen/Planner.cc @@ -241,27 +241,6 @@ void Planner::visit(const graph::operation::Softmax::Node &node) _builder.addStage(stage_gen->generate(node)); } -void Planner::visit(const graph::operation::Tanh::Node &) -{ - const ::neurun::graph::operand::Index ofm_index{node.getOutputs().at(0)}; - const ::neurun::graph::operand::Index ifm_index{node.getinputs().at(0)}; - - // TODO: verify whether asFeature() is right - const auto ofm_shape = _ctx.at(ofm_index).shape().asFeature(); - const auto ifm_shape = _ctx.at(ifm_index).shape().asFeature(); - - // Set Shape Constraints - _builder.addShapeConstr(ofm_index, ::internal::asTensorInfo(ofm_shape)); - _builder.addShapeConstr(ifm_index, ::internal::asTensorInfo(ifm_shape)); - - // backend - auto backend = node.lower_info()->backend(); - - // Generate Stage - auto stage_gen = backend.stage_gen(); - _builder.addStage(stage_gen->generate(node)); -} - void Planner::visit(const graph::operation::NOP::Node & /* node */) { // DO NOTHING diff --git a/newnnfw/runtimes/neurun/src/codegen/Planner.h b/newnnfw/runtimes/neurun/src/codegen/Planner.h index 4154401..d725567 100644 --- a/newnnfw/runtimes/neurun/src/codegen/Planner.h +++ b/newnnfw/runtimes/neurun/src/codegen/Planner.h @@ -55,7 +55,6 @@ class Planner : public graph::operation::NodeVisitor virtual void visit(const graph::operation::Softmax::Node &) override; virtual void visit(const graph::operation::NOP::Node &) override; virtual void visit(const graph::operation::Permute::Node &) override; - virtual void visit(const graph::operation::Tanh::Implicit::Node &) ovdrride; private: const neurun::graph::operand::Set &_ctx;