[ML][Train] Unify thrown exceptions and some fixes. 02/274202/1 accepted/tizen/unified/20220426.212701 submit/tizen/20220426.102724
authorMarcin Bialek <m.bialek@samsung.com>
Sat, 23 Apr 2022 14:11:51 +0000 (16:11 +0200)
committerMarcin Bialek <m.bialek@samsung.com>
Sat, 23 Apr 2022 14:11:51 +0000 (16:11 +0200)
commit9383d6e81a3dd80251793b10e6edc25c8a4d0450
tree78d19512b4114fe88066e01ca4af963580ac6f4f
parent353a45d1eb48ef8269c5bc5bda74dddacd843dfa
[ML][Train] Unify thrown exceptions and some fixes.

All dispose() methods threw NotFoundError if a model/layer/optimizer/dataset did not exist but other methods threw AbortError in the same situation. Fixed some misspelled exception names as well.

[Verification] Code compiles. The modified methods were manually tested for thrown exceptions.

Change-Id: I9c06ce22dab5a28a6cf268712f5aed83d08dc27e
Signed-off-by: Marcin Bialek <m.bialek@samsung.com>
src/ml/js/ml_trainer.js
src/ml/ml_trainer_manager.cc