[layernode] Update getNumInputs/Outputs
authorParichay Kapoor <pk.kapoor@samsung.com>
Thu, 1 Jul 2021 08:37:15 +0000 (17:37 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Thu, 22 Jul 2021 11:47:24 +0000 (20:47 +0900)
commit6314dcc6e00255717f4664966b6e5bd3083a9c28
tree7c92cd735250bf9bb7b31c674c902c2c991e9514
parent411b729af787f76e48aa6f2c01fbc2218a49b634
[layernode] Update getNumInputs/Outputs

Separate getNumInputs/Outputs semantics for inputs/outputs
and for connections as a node. Number of inputs/outputs will always be
more than 1, but number of input/output connections can be 0 for
input/output nodes of the graph.
This patch separates the two concepts, and its usage.

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
nntrainer/compiler/tflite_opnode.cpp
nntrainer/graph/graph_core.cpp
nntrainer/graph/network_graph.cpp
nntrainer/layers/layer_node.h
nntrainer/models/neuralnet.cpp
nntrainer/tensor/var_grad.h
nntrainer/tensor/weight.h
test/unittest/unittest_nntrainer_models.cpp