[Trivial] Fix coverity issue
authorSeoHyungjun <hyungjun.seo@samsung.com>
Wed, 23 Nov 2022 08:29:13 +0000 (17:29 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Thu, 24 Nov 2022 01:01:31 +0000 (10:01 +0900)
commit20e8144ea3125fb24b7eb5f479803df38ed5436f
tree0cc735d2d07230004cf40563ae86409c5a3fff4f
parentf4ca65b2ef8d06864f26fbc6065a5d8371125f8d
[Trivial] Fix coverity issue
Added a conditional statement to work only if the result of find_if() is not the end of the iterator
to solve the `INVALIDATE_ITERATOR` issue

**Self evaluation:**
1. Build test: [X]Passed []Failed []Skipped
2. Run test: [X]Passed []Failed []Skipped

Signed-off-by: SeoHyungjun <hyungjun.seo@samsung.com>
nntrainer/compiler/tflite_interpreter.cpp