Validation check for addOperation (#3911)
author오형석/동작제어Lab(SR)/Staff Engineer/삼성전자 <hseok82.oh@samsung.com>
Fri, 7 Dec 2018 07:46:20 +0000 (16:46 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 7 Dec 2018 07:46:20 +0000 (16:46 +0900)
commit6986105079de6c4e333b085d9c049bd9dd0118e5
tree9c09a2d92674ea0e483ad21dfc7bd8c4e7eefe0a
parent7d62838f65479b5db9befdcab607651210cf3d40
Validation check for addOperation (#3911)

- Check operation type is validate
- Add try-catch exception and return ANEURALNETWORKS_BAD_STATE when exception is raised
- Set return value when addOperationEx is not failed

Signed-off-by: Hyeongseok Oh <hseok82.oh@samsung.com>
runtimes/neurun/src/frontend/model.cc