[Coverity] Fix coverity issues accepted/tizen/unified/20240402.151301 accepted/tizen/unified/20240402.163546 accepted/tizen/unified/x/20240403.102929 accepted/tizen/unified/x/asan/20240415.123316
authorDonghyeon Jeong <dhyeon.jeong@samsung.com>
Fri, 29 Mar 2024 06:22:09 +0000 (15:22 +0900)
committerjijoong.moon <jijoong.moon@samsung.com>
Mon, 1 Apr 2024 07:31:09 +0000 (16:31 +0900)
commit4ad2ae72ed1460944b1ffddb613d563809e02a1d
tree350579b85acdbc14002e6c835ba138b5492e2091
parent2ebd6d82a448a63ec29ad8bbc056716220170149
[Coverity] Fix coverity issues

This PR resolves coverity issues of overflow, use of auto that causes a copy, missing lock and thread lock.

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

Signed-off-by: Donghyeon Jeong <dhyeon.jeong@samsung.com>
nntrainer/dataset/iteration_queue.cpp
nntrainer/dataset/raw_file_data_producer.cpp
nntrainer/graph/network_graph.cpp
nntrainer/tensor/cache_elem.h
test/unittest/models/unittest_models.cpp