[layer] Update getTrainable with supportBackwarding
authorParichay Kapoor <pk.kapoor@samsung.com>
Tue, 22 Jun 2021 08:35:37 +0000 (17:35 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Thu, 22 Jul 2021 11:47:24 +0000 (20:47 +0900)
commit25c123939dc651e0ed6048d170b3fbf54ffccc94
tree3f895380d540b9e1035e84ab4201a0a083a43edf
parent13ef19d29765724cab49b7fc5dec5804600b2367
[layer] Update getTrainable with supportBackwarding

This patch introduces supportBackwarding.
Currently getTrainable does two jobs -
1. check if the layer is trainable
2. check if the layer can do backwarding

Now, the two is separated.
Further, the trainable property has been moved to LayerNode.

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
31 files changed:
Applications/SimpleShot/layers/centering.h
Applications/SimpleShot/layers/centroid_knn.h
Applications/SimpleShot/layers/l2norm.h
nntrainer/compiler/ini_interpreter.cpp
nntrainer/graph/network_graph.cpp
nntrainer/layers/activation_layer.h
nntrainer/layers/flatten_layer.h
nntrainer/layers/input_layer.cpp
nntrainer/layers/input_layer.h
nntrainer/layers/layer.cpp
nntrainer/layers/layer_devel.h
nntrainer/layers/layer_impl.cpp
nntrainer/layers/layer_impl.h
nntrainer/layers/layer_internal.h
nntrainer/layers/layer_node.cpp
nntrainer/layers/layer_node.h
nntrainer/layers/nnstreamer_layer.cpp
nntrainer/layers/nnstreamer_layer.h
nntrainer/layers/plugged_layer.h
nntrainer/layers/preprocess_flip_layer.cpp
nntrainer/layers/preprocess_flip_layer.h
nntrainer/layers/preprocess_translate_layer.cpp
nntrainer/layers/preprocess_translate_layer.h
nntrainer/layers/tflite_layer.cpp
nntrainer/layers/tflite_layer.h
nntrainer/utils/node_exporter.cpp
nntrainer/utils/node_exporter.h
test/unittest/layers/unittest_layers_impl.cpp
test/unittest/unittest_base_properties.cpp
test/unittest/unittest_nntrainer_appcontext.cpp
test/unittest/unittest_nntrainer_models.cpp