[loss] Allow no loss in the model
authorParichay Kapoor <pk.kapoor@samsung.com>
Thu, 4 Feb 2021 04:45:22 +0000 (13:45 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Wed, 3 Mar 2021 00:47:08 +0000 (09:47 +0900)
commit949e4b1b19fe679d660bc4c31370ffd53509c8dd
treeda037f7a5f077d35177f5c087714b9aa78685887
parent962583a46bb998717d605c17965bde3f4d3241b0
[loss] Allow no loss in the model

Allow setting no loss in the model
This allows inferencing a model, and creating submodels
with backbones to infer some particular output features

Updated existing unittest with no loss to succeed
and added more unittests to validate that models run successfully
without loss

V2:
Updated mnist_inf.ini to be without loss

**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>
13 files changed:
.gitignore
docs/configuration-ini.md
nntrainer/graph/network_graph.cpp
nntrainer/layers/loss_layer.cpp
nntrainer/layers/loss_layer.h
nntrainer/models/model_loader.cpp
nntrainer/models/model_loader.h
nntrainer/models/neuralnet.cpp
nntrainer/models/neuralnet.h
nntrainer/utils/parse_util.cpp
test/test_models/models/mnist_inf.ini
test/unittest/unittest_nntrainer_modelfile.cpp
test/unittest/unittest_nntrainer_models.cpp