[layer] Update the layer constructors
authorParichay Kapoor <pk.kapoor@samsung.com>
Thu, 8 Oct 2020 08:47:29 +0000 (17:47 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Tue, 13 Oct 2020 05:01:17 +0000 (14:01 +0900)
commit0970ce35d6595bbbc165ed272efb136a5af4e2b8
tree617f26233ec88e6bf07da426218321095ccee23c
parent80834f3aed1f93c1d7f9960be3159c61acadb299
[layer] Update the layer constructors

Update the constructors of layer to take arguments
Added layer_factor creator method
Updated model_loader and capi to use the factory creator

**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>
20 files changed:
api/capi/include/nntrainer_internal.h
api/capi/src/nntrainer.cpp
api/capi/src/nntrainer_util.cpp
nntrainer/include/activation_layer.h
nntrainer/include/addition_layer.h
nntrainer/include/bn_layer.h
nntrainer/include/conv2d_layer.h
nntrainer/include/fc_layer.h
nntrainer/include/flatten_layer.h
nntrainer/include/input_layer.h
nntrainer/include/layer.h
nntrainer/include/layer_factory.h [new file with mode: 0644]
nntrainer/include/loss_layer.h
nntrainer/include/pooling2d_layer.h
nntrainer/meson.build
nntrainer/src/activation_layer.cpp
nntrainer/src/conv2d_layer.cpp
nntrainer/src/model_loader.cpp
nntrainer/src/pooling2d_layer.cpp
packaging/nntrainer.spec