[nnstreamer][trainer] Create a queue to construct dataset
authorhyunil park <hyunil46.park@samsung.com>
Thu, 5 Jan 2023 02:52:02 +0000 (11:52 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Wed, 22 Mar 2023 10:17:14 +0000 (19:17 +0900)
commit8ee855be1b033990c4ed8d91258ac27bae149799
treeb4b613080f69bbf3fb705b9c650ae5cfa4229ee2
parent10cd71116cae942a33281fe660c23db4389ef854
[nnstreamer][trainer] Create a queue to construct dataset

- It is dynamically allocated as much as initial queue size and
  continues to use the memory until training is finished.
- The maximum size of the queue is 30, and if the number of samples
  is less than 30, size is number of samples.
- Data received through 'invoke' is strored in queue, and the data
  in the queue is used in the 'data gen callback'. the used data
  is not maintained for epochs.
  For epoch, (number of trin samples + number of valid samples) * epoch
  data should be received.

Signed-off-by: hyunil park <hyunil46.park@samsung.com>
nnstreamer/tensor_trainer/tensor_trainer_nntrainer.cc
nnstreamer/tensor_trainer/tensor_trainer_nntrainer.hh