[ ActFunc ] Separate Activation Function from Activation Layer
authorjijoong.moon <jijoong.moon@samsung.com>
Mon, 22 Mar 2021 12:25:20 +0000 (21:25 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Thu, 25 Mar 2021 01:03:30 +0000 (10:03 +0900)
commitfdd0a3912de8d9670c0f149c57e3850db9e826bf
tree3eb8da0ad463b0e45db2e4a3c4dd6772be2fa90f
parent59a30051602907cd9fb0f164a2b50cdfcb241103
[ ActFunc ] Separate Activation Function from Activation Layer

In order to use Activation function method in other Layer, it is
better to make sepearte the activation function definition and Layer.
In this PR, new ActiFunc Class is introduced and midified the
activation layer to use it.
RNN Layer also use this as an private variable.

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

Signed-off-by: jijoong.moon <jijoong.moon@samsung.com>
jni/Android.mk
nntrainer/layers/acti_func.cpp [new file with mode: 0644]
nntrainer/layers/acti_func.h [new file with mode: 0644]
nntrainer/layers/activation_layer.cpp
nntrainer/layers/activation_layer.h
nntrainer/layers/layer_internal.h
nntrainer/layers/loss_layer.cpp
nntrainer/layers/meson.build
test/unittest/unittest_nntrainer_activations.cpp
test/unittest/unittest_nntrainer_layers.cpp