hyunil park [Tue, 7 May 2024 05:56:07 +0000 (14:56 +0900)]
[Coverity] fix Coverity issue
Fix coverity issue (MISSING RESTORE)
Signed-off-by: hyunil park <hyunil46.park@samsung.com>
Jaeyun Jung [Thu, 2 May 2024 06:28:16 +0000 (15:28 +0900)]
[CodeClean] check null before using handle
Code clean, check null pointer of train-offloading handle before using it.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Thu, 2 May 2024 04:49:03 +0000 (13:49 +0900)]
[Build] onnx-runtime/training-offloading from tizen 9.0
Update spec to enable ONNX runtime and training-offloading from Tizen 9.0.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
hyunil park [Thu, 2 May 2024 05:19:20 +0000 (14:19 +0900)]
[Coverity] fix coverity issue
Add checking return value
Signed-off-by: hyunil park <hyunil46.park@samsung.com>
Yongjoo Ahn [Tue, 30 Apr 2024 06:39:44 +0000 (15:39 +0900)]
[spec] Fix lcov options for different Tizen/lcov versions
- Set proper lcov options w.r.t. Tizen/lcov versions.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Jaeyun Jung [Mon, 29 Apr 2024 05:05:05 +0000 (14:05 +0900)]
[CodeClean] util function to check train mode
Code clean, add internal function to check offloading mode and get private data.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 29 Apr 2024 05:04:08 +0000 (14:04 +0900)]
[CodeClean] fix indent
Trivial, fix indent in build script.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Fri, 26 Apr 2024 07:11:11 +0000 (16:11 +0900)]
[CodeClean] check ret value
Code clean, check returned error code in train offloading.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gichan2-jang [Fri, 26 Apr 2024 04:43:52 +0000 (13:43 +0900)]
[ml-service] Add nntrainer option
Add nntrainer option to control dependency.
This temporarily solves the cyclic dependency problem when gcov is enabled.
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
Yelin Jeong [Wed, 17 Apr 2024 06:54:47 +0000 (15:54 +0900)]
[Android] change tflite option in JNI and build scripts
This patch changes tflite path usage in build.gradle and android build scripts.
This change is for nnstreamer/nnstreamer-android
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
hyunil park [Wed, 24 Apr 2024 00:40:40 +0000 (09:40 +0900)]
[ml-service] Add time limit for required data
Add the time limit for receiving the necessary data from remote sender
Signed-off-by: hyunil park <hyunil46.park@samsung.com>
Yelin Jeong [Fri, 19 Apr 2024 04:17:15 +0000 (13:17 +0900)]
[action] use action/setup-java instead of export JAVA_HOME
This patch changes the way to set JAVA_VER
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Yelin Jeong [Fri, 19 Apr 2024 07:16:03 +0000 (16:16 +0900)]
[android] fix build-android scripts
This patch fixes build-nnstreamer-android scripts.
nnstreamer-release.aar file created even if ./gradlew build failed after some tasks.
So check exit code instead of aar file existance.
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Yelin Jeong [Fri, 19 Apr 2024 07:09:26 +0000 (16:09 +0900)]
[android] fix typo in AndroidManifest
This patch fixes typo in AndroidManifest.
uses-libaray -> uses-library
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Yongjoo Ahn [Thu, 18 Apr 2024 05:39:57 +0000 (14:39 +0900)]
[android] Set libOpenCL.so dependency in AndroidManiest.xml
- Recent android requires specifying certain shared libraries.
- libOpenCL.so is needed to check functionality of GPU delegates.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Thu, 18 Apr 2024 04:20:44 +0000 (13:20 +0900)]
[build] Set test daemon path by parsing mlops-agent.pc
- Let meson parse mlops-agent.pc to get test daemon path.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Thu, 18 Apr 2024 06:21:55 +0000 (15:21 +0900)]
[test] Use local variable for API return value.
- Let each testcase use local variable rather than class member.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Thu, 18 Apr 2024 04:13:12 +0000 (13:13 +0900)]
[test] Let test daemon launches per testsuite not single testcase
- Let the test daemon launches per testsuite. Launching it for each testcase is not practical.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
gichan2-jang [Fri, 12 Apr 2024 02:27:34 +0000 (11:27 +0900)]
[Tizen] Change @since_tizen tag for ml-service-start/stop
ml_service_start_pipeline is modified to ml_service_start from Tizen
7.0, change since_tizen tag.
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
gichan2-jang [Fri, 12 Apr 2024 04:26:23 +0000 (13:26 +0900)]
[TEST] Add test to set model path of ml-service
Add test to set model path of ml-service.
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
Jaeyun Jung [Thu, 11 Apr 2024 07:31:39 +0000 (16:31 +0900)]
[CodeClean/Service] functions for offloading service
Code clean,
1. define internal functions for offlading service.
2. fix mem leak case when getting json string.
3. update log message details.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Thu, 11 Apr 2024 06:49:09 +0000 (15:49 +0900)]
[Test] remove unnecessary code
Code clean,
1. remove unnecessary header and precondition for test.
2. use prefix path for bin directory.
3. fix invalid thread callback function.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Thu, 11 Apr 2024 02:59:49 +0000 (11:59 +0900)]
[CodeClean] fix svace issue
Code clean, remove unnecessary code and fix svace issue.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Tue, 9 Apr 2024 10:02:56 +0000 (19:02 +0900)]
[Service] fix svace issues
Code clean, update function name for offloading and fix svace issues.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
hyunil park [Wed, 6 Mar 2024 08:34:56 +0000 (17:34 +0900)]
[ml-service] Add training offloading service to ml-service
- Add function for training offloading
- Add function to transfer trained model
- Add node information to transmitted pipeline information
- set sink callback by node name of node information
- Add stop func for ready to complete model training
- Add test case
Signed-off-by: hyunil park <hyunil46.park@samsung.com>
Jaeyun Jung [Mon, 8 Apr 2024 06:51:46 +0000 (15:51 +0900)]
[CodeClean] remove unnecessary code
Code clean, remove unnecessary code and update log before updating internal function (related to ml-offloading).
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Fri, 5 Apr 2024 12:55:04 +0000 (21:55 +0900)]
[C-Api/Service] change ml-agent param
To remove unnecessary dbus-sig, add force-delete flag in ml-agent interface.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gichan2-jang [Fri, 5 Apr 2024 08:50:41 +0000 (17:50 +0900)]
[armnn] Remove armcl dependency
- Remove armcl dependency .
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
Yelin Jeong [Fri, 5 Apr 2024 05:32:44 +0000 (14:32 +0900)]
[android] do not remove android-resource dir
nnstreamer-android-resource directory is changed not to download using scripts.
So it shouldn't be removed.
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Wook Song [Fri, 5 Apr 2024 02:28:26 +0000 (11:28 +0900)]
Tests/CAPI: Add more negative test cases
This is a trivial patch that adds more negative test cases for the
inference C-APIs.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Yelin Jeong [Mon, 1 Apr 2024 03:58:29 +0000 (12:58 +0900)]
[action] replace TAOS-CI script for android build in API Level 34
This patch replaces TAOS-CI script for android build.
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Jaeyun Jung [Thu, 4 Apr 2024 08:26:24 +0000 (17:26 +0900)]
[CodeClean] fix svace issues
Code clean, fix svace issues and remove unnecessary code.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Wook Song [Sun, 24 Mar 2024 10:58:00 +0000 (19:58 +0900)]
Android: Support API Level 34 with GStreamer-1.24
This patch mainly revises the gradle and ndk-build build scripts
to support Android API Level 34 with GStreamer v1.24
(the latest GST release as of 2024.03).
Signed-off-by: Wook Song <wook16.song@samsung.com>
gichan2-jang [Thu, 4 Apr 2024 06:12:22 +0000 (15:12 +0900)]
[ml-service] code clean - error handling, parse tensor data
- Remove unnecessary error handling
- Handle error case
- Parse tensor data more than 1
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
gichan2-jang [Wed, 13 Mar 2024 05:19:42 +0000 (14:19 +0900)]
[ml-service] Change node type
Change ml-service node type from pub/sub to query server/client to send
reply.
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
gichan2-jang [Tue, 12 Mar 2024 10:06:58 +0000 (19:06 +0900)]
[ml-service] Rename ml-service-remote to ml-service-offloading
Rename ml-service-remote to ml-service-offloading
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
gichan2-jang [Tue, 20 Feb 2024 08:40:55 +0000 (17:40 +0900)]
[ml-service] Integrates remote service into ml-service
- Integrates remote service into ml-service
- Separate the common part of ml-service-extension to ml-service and
ml-servie-extension.
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
gichan2-jang [Thu, 4 Apr 2024 01:02:16 +0000 (10:02 +0900)]
[TEST] Fix wrong logical operator
Fix wrong logical operator to break the loop.
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
Jaeyun Jung [Wed, 3 Apr 2024 03:17:05 +0000 (12:17 +0900)]
[Test] ml-agent install prefix
Add definition to get the install prefix to run the ml-agent for unittest.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gichan2-jang [Tue, 2 Apr 2024 09:12:15 +0000 (18:12 +0900)]
[Tizen] Update unittest build script
Fix tizen auto coverage measurement failure.
Use default root path instead of environment variable.
The model path of the config file is hard coded, so the wrong model path is passed to ml-service.
config_single_add.conf
```
{
"single" :
{
"framework" : "tensorflow-lite",
"model" : ["../tests/test_models/models/add.tflite"]
}
}
```
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
Jaeyun Jung [Mon, 1 Apr 2024 03:20:26 +0000 (12:20 +0900)]
[C-Api] unnecessary info handle
Code clean, remove unnecessary code to create info handle for internal usage.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 1 Apr 2024 03:19:14 +0000 (12:19 +0900)]
[Test/Service] add new test to get model from ml-agent
We can register new model (or pipeline) using ml-service API.
Add test for registered key from ml-agent.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 1 Apr 2024 03:20:41 +0000 (12:20 +0900)]
[C-Api/Service] remove macro for old API
Remove unnecessary macro for old API set.
We should update Tizen test later.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Yelin Jeong [Fri, 29 Mar 2024 07:19:44 +0000 (16:19 +0900)]
[Java] Allow 0 value dimension
This patch allows 0 value dimension in setDimension function.
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Jaeyun Jung [Fri, 8 Mar 2024 10:41:53 +0000 (19:41 +0900)]
[C-Api/Service] update ml-service pipeline
Update API name prefix - ml_service_pipeline.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 25 Mar 2024 09:07:37 +0000 (18:07 +0900)]
[C-Api] use util function to copy tensor info
Code clean, use internal util function to create and copy tensor info handle.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 25 Mar 2024 09:11:42 +0000 (18:11 +0900)]
[Test] remove unused param
Code clean, remove unnecessary param - bus type to run agent in testcase.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Thu, 7 Mar 2024 09:21:37 +0000 (18:21 +0900)]
[Util] public function for tensor-data
Add new util functions,
1. clone tensor-data handle.
2. get tensors-info of tensor data frame.
This requires ACR for public release.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Thu, 7 Mar 2024 09:20:21 +0000 (18:20 +0900)]
[C-Api] update API description
1. Add remarks to release output handle.
2. Move custom-easy callback to nnstreamer.h. This is used on pipeline, not a common function.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Thu, 7 Mar 2024 05:56:44 +0000 (14:56 +0900)]
[C-Api/Service] add new API (ML-API ext)
Add new API set for ML service, these functions support constructing new handle from json configuration.
- type for ml-service: single, pipeline
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gichan2-jang [Tue, 19 Mar 2024 01:12:25 +0000 (10:12 +0900)]
[Tizen] Fix gcov build error
Due to the lcov 2.0 upgrade, the warning is changed to error so the gcov build fails.
Ignore this case. (Tizen PM guide)
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
Jaeyun Jung [Thu, 7 Mar 2024 11:10:31 +0000 (20:10 +0900)]
[Build] remove unnecessary script
Code clean, remove unnecessary code and update script related with ml-agent.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Wook Song [Mon, 5 Feb 2024 08:45:56 +0000 (17:45 +0900)]
MLAgent: Remove ml-agent from this repository
This patch removes ml-agent and modifies the build scripts and Tizen RPM
spec file as well.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Jaeyun Jung [Tue, 5 Mar 2024 04:48:00 +0000 (13:48 +0900)]
[CodeClean/Service] set null after free priv data
1. set null after releasing priv data in service handle.
2. remove unnecessary param in query priv data.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Tue, 5 Mar 2024 04:49:04 +0000 (13:49 +0900)]
[Service] condition to validate handle
Check priv data when validating ml-service handle.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 4 Mar 2024 08:09:36 +0000 (17:09 +0900)]
[C-Api] check empty key value
Code clean, check empty string case.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 4 Mar 2024 08:13:29 +0000 (17:13 +0900)]
[Agent] invalid handle type
Temporal bug fix before removing ml-agent from api repo.
Fix invalid handle type and check return ptr for gerror.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Fri, 2 Feb 2024 04:59:35 +0000 (13:59 +0900)]
[C-Api/Service] internal function for ml-service handle
Code clean, prepare new API for ml-service extension.
Add internal function for ml-service handle.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Thu, 1 Feb 2024 03:25:53 +0000 (12:25 +0900)]
[CodeClean] fix svace issue
Code clean, fix svace issues about lock in single/pipeline handle.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Tue, 6 Feb 2024 08:32:24 +0000 (17:32 +0900)]
[C-Api] user-data for sink/src callback
Separate user-data for appsrc/sink callback.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
MyungJoo Ham [Thu, 8 Feb 2024 02:56:28 +0000 (11:56 +0900)]
Android build fix: ll is a personal alias
Remove presonal alias from the build script.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Jaeyun Jung [Fri, 26 Jan 2024 08:48:36 +0000 (17:48 +0900)]
[C-Api] sync param to public header
Code clean, update param name (sync to public header) and check null param.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Fri, 26 Jan 2024 08:24:09 +0000 (17:24 +0900)]
[Test] test condition
Add pre/post condition for test, clear test data after unittest is finished.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Fri, 26 Jan 2024 07:15:16 +0000 (16:15 +0900)]
[C-Api] invalid casting of ml-option
Fix invalid casting after allocating option handle.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 15 Jan 2024 08:22:55 +0000 (17:22 +0900)]
[C-Api/Single] data handle passed to invoke thread
Set in/out data handle those are passed to invoke thread, also clearly release data when closing the thread.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 22 Jan 2024 05:14:13 +0000 (14:14 +0900)]
[C-Api] remove space of models
To prevent not-found error, remove space of model path.
Also check file existence when validating model files.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Suyeon Kim [Wed, 17 Jan 2024 06:46:53 +0000 (15:46 +0900)]
[C-Api] new nnfw enum
Add new enum - onnxruntime and ncnn.
This requires new ACR for next release.
Signed-off-by: Suyeon Kim <suyeon5.kim@samsung.com>
Wook Song [Thu, 18 Jan 2024 11:30:29 +0000 (20:30 +0900)]
[Daemaon/Service] Add DB_PATH to the error message for DB open failure
This patch appends DB_PATH to the error message for failure in opening
the database file. Note that DB_PATH is not the SQLITE3 database file,
but the path prefix where the file is placed.
CC: Jaeyun Jung <jy1210.jung@samsung.com>
Signed-off-by: Wook Song <wook16.song@samsung.com>
Wook Song [Thu, 18 Jan 2024 11:24:42 +0000 (20:24 +0900)]
[Dist/Tizen] Add omitted build dependency on libtzplatform-config
This patch is a trivial bug fix that adds an omitted build dependency
on libtzplatform-config to the Tizen RPM spec file.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Jaeyun Jung [Mon, 15 Jan 2024 08:25:12 +0000 (17:25 +0900)]
[Test] remove unnecessary info handle
In testcase of ArmNN, remove unnecessary tensor-info and compare dimension after getting info handle from model.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gichan2-jang [Wed, 10 Jan 2024 08:46:05 +0000 (17:46 +0900)]
Change gbs repo from latest to reference
Change gbs repo from latest to reference.
the default location of the ".gbs.conf" file has the highest priority.
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
gichan2-jang [Wed, 10 Jan 2024 08:10:45 +0000 (17:10 +0900)]
Change to external resouce download method
Downloading a specific directory of git using svn is no longer supported.
Change the method of downloading from svn to git.
refer: https://github.blog/2023-01-20-sunsetting-subversion-support
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
Jaeyun Jung [Fri, 5 Jan 2024 11:31:18 +0000 (20:31 +0900)]
[Test] testcase with tf-lite ver1.x
We will remove tf-lite ver1.x on tizen release, fix related testcase.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Thu, 4 Jan 2024 10:47:22 +0000 (19:47 +0900)]
[CodeClean] dependency to ml-agent
Prepare deleting ml-agent from api repo, set dependency to ml-agent and remove unnecessary line.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Thu, 4 Jan 2024 10:39:46 +0000 (19:39 +0900)]
[CodeClean] fix indent and codestyle
Code clean, fix indent and code style.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Wed, 3 Jan 2024 05:29:04 +0000 (14:29 +0900)]
[Pkg] update dependency to nns library
Update pkg dependency to nnstreamer library.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Wed, 3 Jan 2024 05:21:55 +0000 (14:21 +0900)]
[Java] create extended tensor-info
Create extended handle for max rank limit 16 in java native code.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Tue, 2 Jan 2024 10:17:55 +0000 (19:17 +0900)]
[Build/Tizen] dependency of tizen feature
Code clean, update dependency for each tizen features.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Fri, 8 Dec 2023 05:21:37 +0000 (14:21 +0900)]
[Test] update testcase - set_info
Sync to tct, update testcase - change model dimension.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 18 Dec 2023 10:28:49 +0000 (19:28 +0900)]
[Test] restore test
Code clean, now max number of tensors in nnstreamer and api repo is same.
Restore old test to compare the max tensors.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 18 Dec 2023 10:11:33 +0000 (19:11 +0900)]
[CodeClean] fix svace issue
Check null ptr when getting n-th tensor info.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 18 Dec 2023 04:29:34 +0000 (13:29 +0900)]
[CodeClean] fix svace issue
Fix svace issue, change data type to get the path from ml-option.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Fri, 1 Dec 2023 04:48:47 +0000 (13:48 +0900)]
[Service] clear flag to delete old model
Parse clear field from json, to delete old model or resource from database.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Wed, 6 Dec 2023 04:38:15 +0000 (13:38 +0900)]
[C-Api/Common] check invalid dimension
Check invalid dimension case before updating tensor-info handle.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Tue, 21 Nov 2023 07:23:36 +0000 (16:23 +0900)]
[C-Api] use tensor-info struct from nns
Use gst-info struct and util functions from nnstreamer.
Remove unnecessary functions for ml-info.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gichan2-jang [Tue, 24 Oct 2023 07:36:18 +0000 (16:36 +0900)]
[ml-service] Set nns-edge handle ID.
Let's generate edge handle ID automatically by default.
The user also set edge ID using ml_option_set().
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
gichan2-jang [Mon, 27 Nov 2023 04:58:45 +0000 (13:58 +0900)]
[TEST] Code clean: Use G_DIR_SEPARATOR_S
Let's use G_DIR_SEPARATOR_S instead of "/".
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
gichan2-jang [Fri, 20 Oct 2023 07:55:21 +0000 (16:55 +0900)]
[Remote-service] Add a path to save the model
Add a path to save the received model file to the ml-option.
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
Jaeyun Jung [Tue, 21 Nov 2023 10:06:41 +0000 (19:06 +0900)]
[Service/Query] clone data in sink callback
Code clean, use public function to clone tensor-data handle.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Tue, 21 Nov 2023 08:19:10 +0000 (17:19 +0900)]
[Java] max rank and tensor limit
sync to native API, update max rank and tensor size limit.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 20 Nov 2023 12:59:27 +0000 (21:59 +0900)]
[Common/CodeClean] struct for tensor memories
Code clean, use GstTensorMemory struct defined in nnstreamer.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Thu, 16 Nov 2023 11:30:38 +0000 (20:30 +0900)]
[C-Api/Single] create in/out handle in single-shot
Use gst-info and create handle inside of single-shot instance.
Referencing struct does not initialize lock and other variables.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Tue, 14 Nov 2023 08:00:53 +0000 (17:00 +0900)]
[C-Api/Pipeline] create handle before calling sink callback
1. Create tensors-info handle before calling sink callback.
2. We do not need to use ml-info in pipeline elem struct. Use gst-info instead.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Wed, 15 Nov 2023 07:45:40 +0000 (16:45 +0900)]
[C-Api/Pipeline] remove total size
We do not use total size of tensors.
Remove unnecessary variable for total data size.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Fri, 17 Nov 2023 09:57:16 +0000 (18:57 +0900)]
[CodeClean] fix indent
Code clean, fix indent and remove unnecessary space.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Thu, 9 Nov 2023 06:48:47 +0000 (15:48 +0900)]
[Service] parse json for database update
Parse json file and update model/pipeline/resource data when installing res-pkg.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Thu, 16 Nov 2023 12:27:41 +0000 (21:27 +0900)]
[Util] extended dim of 0-initialized
We implemented 0-init dimension in nnstreamer.
If dim value at index of old rank limit (4) is not 0, it is extended.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gichan2-jang [Fri, 13 Oct 2023 08:31:54 +0000 (17:31 +0900)]
[ml-remote-service] Add service event cb
Add remote service event callback
Signed-off-by: gichan2-jang <gichan2.jang@samsung.com>
Jaeyun Jung [Wed, 15 Nov 2023 06:34:45 +0000 (15:34 +0900)]
[C-Api/Single] remove rank list
We implemented 0-initialized dimension in nnstreamer.
Remove unnecessary rank list from single handle.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Wed, 15 Nov 2023 05:55:24 +0000 (14:55 +0900)]
[CodeClean] fix indent
Code clean, fix typo and indent.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>