[neurun] Do not use Graph::release* methods in Linear (#8957)
authorSergei Barannikov/AI Tools Lab /SRR/Engineer/Samsung Electronics <s.barannikov@samsung.com>
Mon, 18 Nov 2019 09:53:55 +0000 (12:53 +0300)
committer이한종/On-Device Lab(SR)/Engineer/삼성전자 <hanjoung.lee@samsung.com>
Mon, 18 Nov 2019 09:53:55 +0000 (18:53 +0900)
commitf7e0bec32b1afaa2da9c43e0370d8954b100733a
tree830d2c70c4414aaec92942d88bc27c89354acae2
parentff7990132ccf9803211057b8e7848bf92f76acdd
[neurun] Do not use Graph::release* methods in Linear (#8957)

Moving subgraphs, lowerinfo, etc. from Graph to Linear and then to Executors makes it difficult to understand who is the owner of these entities. It is enough to pass `Graph` to `Linear` by reference.

Signed-off-by: Sergei Barannikov <s.barannikov@samsung.com>
runtime/neurun/core/include/graph/Graph.h
runtime/neurun/core/src/compiler/ExecutorFactory.cc
runtime/neurun/core/src/compiler/Linear.cc
runtime/neurun/core/src/compiler/Linear.h
runtime/neurun/core/src/graph/Graph.cc