[model] Model inference should not catch throw
authorParichay Kapoor <pk.kapoor@samsung.com>
Tue, 18 May 2021 01:15:21 +0000 (10:15 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Tue, 18 May 2021 12:07:35 +0000 (21:07 +0900)
commiteaa9dff0851b9c1288049b77d597358c5dc10176
treea5b21917c56eaf4bce0e6efeb55cccb72e51679f
parent83ebb79bfdf2b8847ec9ce918dd87475f9c9b411
[model] Model inference should not catch throw

Model inference should not catch throw, and must throw errors
so that the callers can catch it and detect errors.

**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>
nntrainer/models/neuralnet.cpp
test/unittest/unittest_nntrainer_models.cpp