[neurun] Introduce OperationFactory (#4438)
author이한종/On-Device Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Tue, 19 Feb 2019 00:49:00 +0000 (09:49 +0900)
committer오형석/On-Device Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Tue, 19 Feb 2019 00:49:00 +0000 (09:49 +0900)
commit34a24b03864121b43557cfca52268988e77e063e
treeec023903b300713ca27cebe5801b2c9a1e4d648e
parent1522d17c10f80300943c52a2f9c099af286ed23d
[neurun] Introduce OperationFactory (#4438)

This commit introduces OperationFactory:

- To extract the actual creator from `frontend/model.cc`
- To remove NN API dependency from each `operation::Node`'s constructor

To check if this works, OperationFactory generates Conv2D node.
(other nodes are generated in the as-is way)

Signed-off-by: Hanjoung Lee <hanjoung.lee@samsung.com>
runtimes/neurun/src/frontend/model.cc
runtimes/neurun/src/frontend/wrapper/OperationFactory.cc [new file with mode: 0644]
runtimes/neurun/src/frontend/wrapper/OperationFactory.h [new file with mode: 0644]
runtimes/neurun/src/model/operation/Conv2DNode.cc
runtimes/neurun/src/model/operation/Conv2DNode.h
runtimes/neurun/src/model/operation/Node.cc
runtimes/neurun/src/model/operation/Node.h
runtimes/neurun/test/graph/operation/SetIO.cc