[graph] Bug fixes in layer realizations
authorParichay Kapoor <pk.kapoor@samsung.com>
Tue, 16 Mar 2021 07:05:02 +0000 (16:05 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Fri, 26 Mar 2021 04:40:02 +0000 (13:40 +0900)
commitea9121b25be2c821cd4570583b7739e694dfc769
treef70d6cff443557facd809780ae9e4de0b59bc1d7
parent18e445b1c74394c0dc7a78c457e5ea82e71ebdbf
[graph] Bug fixes in layer realizations

Add bug fixes for layer realizations for making the graph
Many scenarios were missed about creating connections for the graph
which this patch fixes.

Further, this patch reduce the isCompilable() checks as the first
layer cant be determined till the topologicalSort() of the graph is done.
Added checkCompiledGraph() where first layer and some more checks like
types are checked.

See Also #986

**Self evaluation:**
1. Build test: [x]Passed [ ]Failed [ ]Skipped
2. Run test: [x]Passed [ ]Failed [ ]Skipped

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
nntrainer/graph/network_graph.cpp
nntrainer/graph/network_graph.h
test/unittest/unittest_nntrainer_modelfile.cpp