platform/upstream/training-engine-nntrainer.git
2 years agopackaging: drop ExclusiveArch of arm and aarch64 53/279753/1 accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix accepted/tizen_8.0_unified accepted/tizen_9.0_unified accepted/tizen_unified accepted/tizen_unified_x_asan tizen tizen_7.0 tizen_7.0_hotfix tizen_8.0 tizen_9.0 accepted/tizen/7.0/unified/20221110.060528 accepted/tizen/7.0/unified/hotfix/20221116.111511 accepted/tizen/8.0/unified/20231005.095620 accepted/tizen/9.0/unified/20241030.232303 accepted/tizen/unified/20220817.075347 accepted/tizen/unified/20230113.091239 accepted/tizen/unified/x/asan/20240415.123406 submit/tizen/20220817.060310 tizen_7.0_m2_release tizen_8.0_m2_release tizen_9.0_m2_release
Inki Dae [Wed, 17 Aug 2022 07:10:47 +0000 (16:10 +0900)]
packaging: drop ExclusiveArch of arm and aarch64

[Version] : 0.1.5-0
[Issue type] : bug fix

Dropped ExclusiveArch of arm and aarch64 because this package should be
included in emulator image too.

Change-Id: I391f6607bf5d1d6a39169006194d390152849bf7
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoclean up updating data set again 59/271659/2 accepted/tizen/unified/20220308.015808 submit/tizen/20220307.024724 submit/tizen/20220307.041636 submit/tizen/20220308.013950
Inki Dae [Thu, 24 Feb 2022 07:00:57 +0000 (16:00 +0900)]
clean up updating data set again

[Version] : 0.1.4-0
[Issue type] : cleanup

Cleaned up UpdateTrainData and UpdateVerifyData callback functions again
by moving these functions into TrainingNntrainer class. With this patch,
the public members for accessing private members are dropped.

Change-Id: I199487aeaf58077a367f91850986e5c3dac01a61
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoclean up updating data set 39/271639/2
Inki Dae [Thu, 24 Feb 2022 03:10:48 +0000 (12:10 +0900)]
clean up updating data set

[Version] : 0.1.3-0
[Issue type] : cleanup

Cleaned up UpdateTrainData and UpdateVerifyData callback functions.

Change-Id: If5c95dc3b402096db57edff521a1528888b5cf8d
Signed-off-by: Seungbae Shin <seungbae.shin@samsung.com>
Fixed indexing data set vector and using more meaningful function name.
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoencapsulate class members 47/271447/1
Inki Dae [Mon, 21 Feb 2022 10:10:10 +0000 (19:10 +0900)]
encapsulate class members

[Version] 0.1.2-0
[Issue type] cleanup

Encapsulated _train_data_idx and _verify_data_idx member variables.
Callback functions are called outside of the class so it makes
these two members are accessed only using public functions.

Change-Id: I56a9afdd3866eb85ed9870bbffddf56efa0067e2
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agomake sure to clean up data set 51/271051/2
Inki Dae [Tue, 15 Feb 2022 01:42:00 +0000 (10:42 +0900)]
make sure to clean up data set

[Version] : 0.1.1-0
[Issue type] : bug fix

Make sure to clean up data pushed to two vectors - _train_data_set
and _verity_data_set at DestroyDatset function.

Change-Id: I57e1dec33f5bd9f87818e43bcd88e9f32a50924a
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoadd save model api 09/266609/2
Inki Dae [Tue, 16 Nov 2021 07:12:07 +0000 (16:12 +0900)]
add save model api

[Version] : 0.1.0-0
[Issue type] : new feature

This api saves trained model data to a given model file.

Change-Id: Icc79b2138d5c8beecaef684e4cd540ffabd1af30
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agodrop model_file_path parameter from CreateModel() 29/263729/1
Inki Dae [Thu, 9 Sep 2021 03:08:58 +0000 (12:08 +0900)]
drop model_file_path parameter from CreateModel()

NNTrainer needs only config file path so drop it,
and consider model_conf_path.

Change-Id: Iffb04b81905716a64e5a922689f6e6ca6cbe501b
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoadd DestroyOptimizer function 34/263234/1
Inki Dae [Mon, 30 Aug 2021 04:47:52 +0000 (13:47 +0900)]
add DestroyOptimizer function

Change-Id: Ibafc6afc9e51ee91516d0b380fd54c1d0ea14c48
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoupdate nntrainer backend interface 09/263109/5
Inki Dae [Thu, 26 Aug 2021 05:55:18 +0000 (14:55 +0900)]
update nntrainer backend interface

This patch updates below things
- implement to update dataset through a given callbacks - one is to send
  training data to NNTrainer, and other for verifying it.
- fix ml_train_model_compile function call by setting only valid property
  options.
- consider ml_train_model_run function call without any options.
  . Regarding this function, NNTrainer has default property optinos so
    in case of no given option, we can use the default ones.

Change-Id: I0bc25a491403149641f41931f43965efddbf15a8
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoadd BuildRequires to capi-ml-inference 08/263108/1
Inki Dae [Thu, 26 Aug 2021 05:51:11 +0000 (14:51 +0900)]
add BuildRequires to capi-ml-inference

training engine nntrainer backend needs capi-ml-inference api
so add the BuildRequires for it.

Change-Id: I009468d0c223dabe772d0b10fe7c18fd30c16a80
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agodo not use ml_train_dataset_create_with_generator function 29/262829/1
Inki Dae [Fri, 20 Aug 2021 08:39:02 +0000 (17:39 +0900)]
do not use ml_train_dataset_create_with_generator function

ml_train_dataset_create_with_generator function has been deprecated
according to https://github.com/nnstreamer/nntrainer/blob/main/api/capi/include/nntrainer.h#L418
Use ml_train_dataset_create function instead of it.

Change-Id: I233631220cab8f085ae2a9e8bb3d5b18cf7f8c0e
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoconsider one more strings for all property options 20/262820/1
Inki Dae [Fri, 20 Aug 2021 06:48:35 +0000 (15:48 +0900)]
consider one more strings for all property options

Change-Id: Ic89a9428665575bdee6ac91a9aad40cbdff06cd3
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoconvert more layer types 95/262695/2
Inki Dae [Tue, 17 Aug 2021 11:15:06 +0000 (20:15 +0900)]
convert more layer types

Change-Id: Id8ac25ec946923973fcd36c6890fb68af3464021
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoconsider one more strings for layer option 94/262694/1
Inki Dae [Tue, 17 Aug 2021 11:14:30 +0000 (20:14 +0900)]
consider one more strings for layer option

Change-Id: I7b24d59c1416630c406d51bbd981a02a5026537f
Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoAdd initial code
Inki Dae [Wed, 11 Aug 2021 08:00:27 +0000 (17:00 +0900)]
Add initial code

Signed-off-by: Inki Dae <inki.dae@samsung.com>
3 years agoInitial empty repository master
Tizen Infrastructure [Mon, 9 Aug 2021 12:02:31 +0000 (12:02 +0000)]
Initial empty repository