[Semantics] InitContext NumOutput is hint
authorJihoon Lee <jhoon.it.lee@samsung.com>
Thu, 16 Dec 2021 12:51:10 +0000 (21:51 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Tue, 28 Dec 2021 12:06:26 +0000 (21:06 +0900)
commit85831402de51c8a764fc6bbf8ccaf1abb8867527
tree686f46c3c4a633dbf98cf9945dff38d9f50cb8be
parent603f24c66d8cebbfa7b6d122a7ce904098758273
[Semantics] InitContext NumOutput is hint

This patch changes init context num output to be a hint how many outputs
has to be allocated. Layers may or may not depend on this information.
What Layer must gaurantee is that number of acutal outputs must be
bigger than the init context num output requested, this fixes dangling,
unused variable issue

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

Signed-off-by: Jihoon Lee <jhoon.it.lee@samsung.com>
nntrainer/layers/concat_layer.cpp
nntrainer/layers/layer_context.cpp
nntrainer/layers/layer_context.h
nntrainer/layers/layer_node.cpp
nntrainer/layers/layer_node.h
nntrainer/layers/mol_attention_layer.cpp
nntrainer/layers/multiout_layer.cpp
nntrainer/layers/split_layer.cpp
nntrainer/layers/time_dist.cpp
test/unittest/layers/layers_dependent_common_tests.cpp
test/unittest/layers/layers_standalone_common_tests.cpp