gichan [Thu, 27 Apr 2023 05:51:43 +0000 (14:51 +0900)]
[TEST] Set `is-updatable` prop of single test
Set `is-updatable` prop of single test
*line coverage: 80.1%
Signed-off-by: gichan <gichan2.jang@samsung.com>
Yongjoo Ahn [Thu, 27 Apr 2023 04:42:10 +0000 (13:42 +0900)]
[build] Add missing errno.h in ml-agent-dbus-interface.c
- Add missing header <errno.h> to the source file.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Wook Song [Tue, 25 Apr 2023 12:25:08 +0000 (21:25 +0900)]
Meson/LCOV: Apply a workaround to increase lcov of 'service-db.cc'
This patch applies a simple workaround to increase the line coverage of
the 'service-db.cc' file.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Wook Song [Fri, 14 Apr 2023 06:57:08 +0000 (15:57 +0900)]
MLAgent: Introduce libml-agentd
This patch defines APIs of the ML Agent Daemon whose backend is GDBus
and exports them to the outer space of the daemon so that the tightly
coupled dependency between the libcapi-ml-service and daemon is
eliminated.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Jaeyun Jung [Tue, 25 Apr 2023 03:48:45 +0000 (12:48 +0900)]
[Test] remove unnecessary test
Code clean, remove empty testcase.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Tue, 25 Apr 2023 03:41:00 +0000 (12:41 +0900)]
[Test/Meson] common dependency
Use predefined dependencies in meson script.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 24 Apr 2023 10:54:19 +0000 (19:54 +0900)]
[Meson] dependency to tizen pkgs
Code clean, define dependencies to tizen packages.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 24 Apr 2023 08:35:49 +0000 (17:35 +0900)]
[Build] error ml-svc on ubuntu
Fix error when building ml-svc on ubuntu.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
gichan [Mon, 24 Apr 2023 05:51:25 +0000 (14:51 +0900)]
Tizen] Exclude test files for SAM
Exclude test files for SAM
Signed-off-by: gichan <gichan2.jang@samsung.com>
Yelin Jeong [Fri, 21 Apr 2023 02:00:17 +0000 (11:00 +0900)]
[C-API] revert fill dimension 1
This patch reverts fill dimension to default value 1.
In C# API, interop function ml_tensors_info_get_tensor_dimension
is used with length 4 dimension array instead of 16.
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Wook Song [Thu, 20 Apr 2023 05:43:24 +0000 (14:43 +0900)]
Daemon/PkgMrg: Eliminate duplicate code blocks
This is a trivial patch for the elimination of the duplicate code
blocks.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Wook Song [Thu, 20 Apr 2023 04:56:17 +0000 (13:56 +0900)]
Tests/PkgMgr: Add functions for emulation of Tizen's Pkg Manager APIs
This patch adds helper functions for the emulation of Tizen's Package
Manager APIs and utilities for unit test cases of ML Agent Service APIs.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Yongjoo Ahn [Fri, 21 Apr 2023 01:32:52 +0000 (10:32 +0900)]
[CodeClean] Fix memleak in pkgmgr
- Use g_autofree gchar to prevent memleak;
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Thu, 20 Apr 2023 03:11:03 +0000 (12:11 +0900)]
[build] Add empty build dep for tizen appfw for local build/test
- Add an empty build dep for tizen appfw, used by servce API
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Mon, 17 Apr 2023 06:39:28 +0000 (15:39 +0900)]
[pkgmgr] Parse rpk's "model_description.json" to fill app_info and register
- When rpk is installed, parse the provided model_description.json file
and register models described in the json.
TODO: Handle when the rpk package is removed or updated.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Mon, 17 Apr 2023 06:13:23 +0000 (15:13 +0900)]
[service] Check and parse app_info of tizen application (the caller)
In a Tizen application context,
`ml_service_model_register` fill app_info column. RPK cannot call this
API, so the value of key `is_rpk` is always false.
`ml_service_model_get*` APIs should parse the app_info and update the
path in case of models from 'RPK'.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Wook Song [Wed, 19 Apr 2023 02:47:55 +0000 (11:47 +0900)]
Tests/Dbus: Move DBus-related files to the tests/dbus directory
This patch relocates the dbus interface for the unit tests to the tests
directory. According to the changes, the meson build files are alse
updated as well.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Yongjoo Ahn [Mon, 17 Apr 2023 06:05:17 +0000 (15:05 +0900)]
[service] Add "app_info" column to the model DB
- Add a new column "app_info" to the service DB's tblModel table.
- This app_info is a json string consists of tizen application
information which owns model.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Wook Song [Wed, 19 Apr 2023 04:16:09 +0000 (13:16 +0900)]
Tests/Meson: Revise meson build scripts in tests
This patch revises the meson build scripts related to the test
sub-directory.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Yelin Jeong [Tue, 11 Apr 2023 10:46:43 +0000 (19:46 +0900)]
[C-API] Fix set tensor dimension order
This patch fixes the order of ml_tensors_info_set_tensor_dimension.
If tensors_info is not extended, user may regard dimension array's length to 4.
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Yongjoo Ahn [Mon, 17 Apr 2023 06:46:19 +0000 (15:46 +0900)]
[agent] Change tizen log functions of ml-agent
- Let ml-agent logs be more verbose in Tizen.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Sangjung Woo [Thu, 13 Apr 2023 00:15:22 +0000 (09:15 +0900)]
[C-Api] Revert fill dim (default 1) commit
Because of native TC failure, this patch reverts the fill dim (default
1) commit.
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Jaeyun Jung [Fri, 7 Apr 2023 07:50:33 +0000 (16:50 +0900)]
[C-Api] fill dim (default 1)
When calling get-dimension(), fill remained dim - default dim is 1.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Yelin Jeong [Thu, 23 Mar 2023 04:56:33 +0000 (13:56 +0900)]
[Test] add tests to increase ML_TENSOR_RANK_LIMIT
This patch adds some TCs for increased ML_TENSOR_RANK_LIMIT.
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Yelin Jeong [Thu, 23 Mar 2023 04:55:19 +0000 (13:55 +0900)]
[C-API] Increase ML_TENSOR_RANK_LIMIT
This patch increases ML_TENSOR_RANK_LIMIT from 4 to 16.
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Jaeyun Jung [Tue, 4 Apr 2023 10:22:30 +0000 (19:22 +0900)]
[CodeClean] fix indent
Trivial, fix indent and init null to global val.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Yelin Jeong [Fri, 31 Mar 2023 08:14:19 +0000 (17:14 +0900)]
[Single] Add input and output ranks
This patch adds input and output ranks to ml_single.
Input and output ranks are used when user explicitly sets rank property.
Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
Jaeyun Jung [Mon, 3 Apr 2023 02:35:15 +0000 (11:35 +0900)]
[Service] init handle id
Init-zero to connect the signals of model-dbus.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 3 Apr 2023 02:37:43 +0000 (11:37 +0900)]
[Service] common log util
Use common log util in model-dbus impl.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Wook Song [Thu, 30 Mar 2023 05:05:20 +0000 (14:05 +0900)]
Meson/LCOV: Fix wrong code coverage ratio for ml-agent sources
The changes in 2b1df86 make two sets of object files for the
'machine-learning-agent' and 'machine-learning-agent-test' executables,
which leads to the wrong code coverage ratio for the ml-agent daemon
source files. This patch fixes it.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Yongjoo Ahn [Wed, 29 Mar 2023 08:50:54 +0000 (17:50 +0900)]
[CodeClean] Remove unnecessary code in service api test
- Remove some unused code.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Wed, 29 Mar 2023 08:39:52 +0000 (17:39 +0900)]
[agent] Remove unused exceptions
- Let std::exception catch those runtime errors.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Wed, 29 Mar 2023 08:37:42 +0000 (17:37 +0900)]
[CodeClean] Remove pipeline module related code from gdbus-util
- Move pipeline related code in gdbus-util to proper src.
- Adjust function names to the model-impl.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Wed, 29 Mar 2023 08:52:27 +0000 (17:52 +0900)]
[test] Add some negative test for ml-agent
- Add some negative test for ml-agent.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Wook Song [Wed, 29 Mar 2023 02:47:00 +0000 (11:47 +0900)]
Meson: Add a missing build dependency, 'nnstreamer-internal'
This patch fixes build errors because of a missing header file,
'nnstreamer_internal.h', which should be included in the build
dependencies by meson.
Signed-off-by: Wook Song <wook16.song@samsung.com>
Yongjoo Ahn [Tue, 21 Mar 2023 06:59:58 +0000 (15:59 +0900)]
[test] Add unittest for service DB
- Add negative testcases for service DB.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Wed, 22 Mar 2023 08:14:04 +0000 (17:14 +0900)]
[agent/DB] Prevent sql injection by using `sqlite3_bind_text`
- Use `sqlite3_bind_text` instead of formatted string to prevent sql
injection attack.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Jaeyun Jung [Mon, 27 Mar 2023 09:33:49 +0000 (18:33 +0900)]
[Build/Test] daemon for unittest
Cleanup build script, move test-daemon into 'tests' dir and fix file names.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Fri, 24 Mar 2023 07:42:08 +0000 (16:42 +0900)]
[Service] do not free handle in error case
If called service-destroy function, do not free allocated handle if an error from dbus or database is raised.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 27 Mar 2023 05:58:15 +0000 (14:58 +0900)]
[Build/Android] temporal block flatbuffer
Fix error, temporal block flatbuffer when building android library.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Yongjoo Ahn [Fri, 24 Mar 2023 02:01:42 +0000 (11:01 +0900)]
[test] Add negative tests for service APIs
- Add negative TC with DBUS unconnected.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Fri, 24 Mar 2023 04:13:08 +0000 (13:13 +0900)]
[service] Change error code `not_support` into `io_error`
- If failed to connect with dbus, return ML_ERROR_IO_ERROR
rather than ML_ERROR_NOT_SUPPORTED, which should be check with tizen
feature.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Wed, 22 Mar 2023 08:09:50 +0000 (17:09 +0900)]
[test] Fix mem leak of ml_option
- Add missing `ml_option_destroy`
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Wed, 22 Mar 2023 08:09:02 +0000 (17:09 +0900)]
[agent] Print exception message
- Print exception message rather than simple error log
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Jaeyun Jung [Mon, 20 Mar 2023 07:44:34 +0000 (16:44 +0900)]
[CodeClean] handle error case
Code clean, handle res-leak if error occurs.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Yongjoo Ahn [Tue, 7 Mar 2023 11:22:47 +0000 (20:22 +0900)]
[test][service] Add testcases using ml_service_model APIs
- Add some TCs using the new APIs.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Tue, 7 Mar 2023 11:18:40 +0000 (20:18 +0900)]
[service/model] Implement new APIS ml_service_model_*
- Add build dependency for the json-glib in .spec and meson.build
- Implement new APIs using dbus glib apis.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Tue, 7 Mar 2023 11:16:52 +0000 (20:16 +0900)]
[common/option] Implement new API ml_option_get.
- Implement ml_option_get which returns the paired value of given key
in the ml_option instance.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Tue, 7 Mar 2023 11:03:52 +0000 (20:03 +0900)]
[daemon] Implement dbus method callbacks
- Implement callback for each dbus methods:
register, update_description, activate,
get, get_activated, get_all, delete
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Tue, 7 Mar 2023 10:54:13 +0000 (19:54 +0900)]
[daemon][DB] Update/Add service-db methods in sqlite3 backend
- Update set_model, get_model, delete_model methods.
- Add udpate_model_description, activate_model methods.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Tue, 7 Mar 2023 10:43:19 +0000 (19:43 +0900)]
[daemon] Add dbus methods to handle model service APIs
- Update model-dbus.xml.
- Update the header interface dbus-interface.h
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
gichan [Mon, 20 Mar 2023 05:21:10 +0000 (14:21 +0900)]
[Tizen] Fix gcno file path of gcov pacakge.
Tizen line coverage automation tool includes build dir path.
Fix gcno file path of gcov pacakge for compatibility with the tool.
Signed-off-by: gichan <gichan2.jang@samsung.com>
Jaeyun Jung [Fri, 24 Feb 2023 05:27:24 +0000 (14:27 +0900)]
[Service/Model] define new API
Define new function and info handle for machine learning models.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Thu, 9 Mar 2023 07:11:59 +0000 (16:11 +0900)]
[Service] handle table version
Handle table version. If table schema is changed, we should implement data migration later.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 13 Mar 2023 07:23:21 +0000 (16:23 +0900)]
[Service] validate model path
Validate model path when registering a model to database.
It should be an absolute path and not symbol link file.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Mon, 13 Mar 2023 06:52:01 +0000 (15:52 +0900)]
[Test] name to root directory
Fix name to root directory, use prefix 'MLAPI_'.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Fri, 10 Mar 2023 08:15:46 +0000 (17:15 +0900)]
[Build] remove dependency to leveldb
Change database to sqlite, remove dependency to leveldb.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Yongjoo Ahn [Wed, 22 Feb 2023 09:15:15 +0000 (18:15 +0900)]
[service] Add TCs using ml_service_delete_pipeline
- Add some negative testcases.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Wed, 22 Feb 2023 09:11:29 +0000 (18:11 +0900)]
[agent][DB] Fix "delete_pipeline" to check the number of changed rows
- Check the number of changed rows after the DELETE query
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Jaeyun Jung [Fri, 17 Feb 2023 07:52:31 +0000 (16:52 +0900)]
[Service/CodeClean] separate method to init database
Code clean, sepatate method to initialize ml-service database.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Fri, 17 Feb 2023 07:56:18 +0000 (16:56 +0900)]
[Build] dependency to pkgmgr on ubuntu
Fix build error on ubuntu, dependency to pkgmgr.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Sangjung Woo [Wed, 15 Feb 2023 05:18:17 +0000 (14:18 +0900)]
[Service/PkgMgr] Add skeleton code for the package manager
To get the event from the package manager, the callback function should
be registered in ML Agent. This patch adds the skeleton code to get the
install, uninstall, and upgrade event of the resource package from the
package manager. Related work such as update the database of ML Agent
should be needed.
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
Yongjoo Ahn [Mon, 13 Feb 2023 06:50:43 +0000 (15:50 +0900)]
[service] Add simple test using the new API
- Add a simple TC using API `ml_service_model_register`
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Mon, 13 Feb 2023 06:47:26 +0000 (15:47 +0900)]
[service] Initial commit for the C-API `ml_service_model_register`
- Initial commit for the new API, which register model
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Mon, 13 Feb 2023 06:34:24 +0000 (15:34 +0900)]
[service] Add util function to get model daemon proxy
- Add function to get proxy of the model d-bus interface
- "mlsm" stands for MachineLearningServiceModel
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Mon, 13 Feb 2023 06:27:51 +0000 (15:27 +0900)]
[agent] Add initial commit for "model_register" method to the daemon
- Add initial commit of "model_register" method.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Mon, 13 Feb 2023 06:11:04 +0000 (15:11 +0900)]
[agent] Rename a util function getting dbus proxy
- Rename `_get_proxy_new_for_bus_sync` -> `_get_mlsp_proxy_new_for_bus_sync`
- `mlsp` stands for MachineLearningServicePipeline
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Fri, 10 Feb 2023 09:10:39 +0000 (18:10 +0900)]
[dbus] Add DBus interface for model management
- Add Register, Update, Rollback, SetInference, Get, GetLatest interfaces.
These will be used by new ml-service APIS for model management.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Tue, 14 Feb 2023 04:36:57 +0000 (13:36 +0900)]
[daemon] Remove outdated dbus methods
- Remove outdated dbus call for model (get_path, set_path, delete)
- Remove related testcases.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Jaeyun Jung [Tue, 7 Feb 2023 08:45:34 +0000 (17:45 +0900)]
[Service] replace ml-service DB
Replace ml-service database to sqlite3.
TODO:
- handle database version.
- implement methods for model info.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Sangjung Woo [Thu, 16 Feb 2023 05:44:01 +0000 (14:44 +0900)]
[Single] Fix coverity issue
This patch adds the error number for the missing argument of the format
specifier.
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
MyungJoo Ham [Mon, 13 Feb 2023 08:35:50 +0000 (17:35 +0900)]
c-api: Update API error messages
This fixes https://github.com/nnstreamer/nnstreamer/issues/4015
that didn't give appropriate error messages.
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Jaeyun Jung [Tue, 7 Feb 2023 07:59:43 +0000 (16:59 +0900)]
[Service/CodeClean] change class name
Code clean, we will change the database later - level-db to sqlite.
Change class name and remove interface to ML-Service DB.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Fri, 3 Feb 2023 05:05:59 +0000 (14:05 +0900)]
[Service/CodeClean] handle error case
Code clean, handle error case in service-db.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Fri, 3 Feb 2023 04:54:07 +0000 (13:54 +0900)]
[Tizen/PPM] deprecated API from 7.5
From Tizen 7.5, privacy-privilege-mgr API will be deprecated.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Tue, 31 Jan 2023 05:55:52 +0000 (14:55 +0900)]
[Service] dependency to sqlite
Add dependency to sqlite and cleanup, mark todo to remove leveldb for future work.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Thu, 26 Jan 2023 07:46:42 +0000 (16:46 +0900)]
[C-Api/Single] invalid data handle in invoke thread
Prevent error case - null data ptr in invoke thread.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
Jaeyun Jung [Tue, 17 Jan 2023 08:15:41 +0000 (17:15 +0900)]
[Single] prevent use-after-free case
Clone input data in single-shot, to prevent use-after-free case when invoking a model with timed out option.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.net>
Jaeyun Jung [Tue, 17 Jan 2023 08:13:10 +0000 (17:13 +0900)]
[C-Api] new function to copy data handle
Add new util function to copy tensor data.
Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.net>
Jaeyun [Mon, 2 Jan 2023 08:03:12 +0000 (17:03 +0900)]
[Service] handle dbus error case
Check returned val and handle error case when failed to invoke dbus methods.
Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
Jaeyun [Thu, 12 Jan 2023 16:21:10 +0000 (01:21 +0900)]
[C-Api] fix typo
Fix typo in sample code for custom easy filter.
Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
Marek Pikuła [Mon, 14 Nov 2022 12:07:54 +0000 (13:07 +0100)]
riscv64: Add RISC-V support
Add riscv64 architecture to the supported arch list.
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
Jaeyun [Mon, 2 Jan 2023 05:20:43 +0000 (14:20 +0900)]
[Single] set tensors-info in output handle
The output tensor does not contain the tensors-info when invoking the model.
Update in/out tensors-info in single-shot handle.
Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
Jaeyun [Mon, 2 Jan 2023 06:51:17 +0000 (15:51 +0900)]
[Test] feature state in tizen test
Set feature state after all testcases are done.
Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
gichan [Mon, 2 Jan 2023 05:53:20 +0000 (14:53 +0900)]
[gcov] Exclude test gcno files
Exclude test related gcno files from gcov package.
Signed-off-by: gichan <gichan2.jang@samsung.com>
Jaeyun [Mon, 2 Jan 2023 05:24:45 +0000 (14:24 +0900)]
[Build] error on old ubuntu
Fix typo and build error on olb ubuntu.
Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
Jaeyun [Mon, 2 Jan 2023 05:06:06 +0000 (14:06 +0900)]
[Service] fix signal name
Set exact signal name for ml-service daemon.
Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
Jaeyun [Mon, 2 Jan 2023 03:24:40 +0000 (12:24 +0900)]
[Test] fix double free case
Fix double free case in ml-service testcases.
Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
Jaeyun [Mon, 19 Dec 2022 05:13:41 +0000 (14:13 +0900)]
[Meson] dependency to build ml-service
Code clean to build ml-service,
- fix dependency to gio library.
- remove unnecessary declaration in meson script.
Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
gichan [Wed, 21 Dec 2022 10:38:45 +0000 (19:38 +0900)]
[coverage] Remove unnecessary flags
We use meson's option(b_coverage) to measure coverage, so the flags are unnecessary.
Signed-off-by: gichan <gichan2.jang@samsung.com>
gichan [Wed, 21 Dec 2022 10:35:15 +0000 (19:35 +0900)]
[lcov] Change directory before generate html result.
After gcno files path was changed from the absolute path to the relative path, the codes of coverage were not properly displayed. Change the build directory before generating the html result.
Signed-off-by: gichan <gichan2.jang@samsung.com>
Yongjoo Ahn [Mon, 19 Dec 2022 04:33:15 +0000 (13:33 +0900)]
[build/android] Add missing arg in build.gradle
- Add missing arg NNSTREAMER_EDGE_ROOT in build.gradle
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Jaeyun [Tue, 13 Dec 2022 09:56:40 +0000 (18:56 +0900)]
[Meson] cleanup dependencies to common library
Code clean, declare dependency to common library and cleanup meson script.
Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
gichan [Fri, 9 Dec 2022 05:48:18 +0000 (14:48 +0900)]
[meson] Construct paths automatically not manually.
Costruct paths automatically ussing `files` not manually.
This patch fixes wrong object file names.
Foe example:
before:
_home_abuild_rpmbuild_BUILD_capi-machine-learning-inference-1.8.3_c_src_ml-api-inference-internal.c.o
after: src_ml-api-inference-internal.c.o
Signed-off-by: gichan <gichan2.jang@samsung.com>
gichan [Thu, 8 Dec 2022 07:13:51 +0000 (16:13 +0900)]
[Tizen] Generate packages for automation test tools
- Generate gcov and unittest package with "gcov 1" option for tizen test
automation tools.
Signed-off-by: gichan <gichan2.jang@samsung.com>
Yongjoo Ahn [Mon, 17 Oct 2022 07:44:43 +0000 (16:44 +0900)]
[android] Add a testcase for tensor_query
- Add a simple Pipeline API TC for tensor_query.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Yongjoo Ahn [Fri, 14 Oct 2022 01:48:37 +0000 (10:48 +0900)]
[android/build] Build tensor_query with nnstreamer-edge sources
- Define source files to build tensor_query elements.
- User should set envvar "NNSTREAMER_EDGE_ROOT" (path to nnstreamer-edge source dir)
to build tensor_query.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
Jaeyun [Tue, 29 Nov 2022 05:12:31 +0000 (14:12 +0900)]
[Common] mem leak case
Fix mem leak case when failed to create data handle.
Signed-off-by: Jaeyun <jy1210.jung@samsung.com>
Gichan Jang [Thu, 24 Nov 2022 02:08:36 +0000 (11:08 +0900)]
[TEST] Initialize tensors info
- Initialize tensors info to fix build warning
Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
Yongjoo Ahn [Fri, 14 Oct 2022 07:59:25 +0000 (16:59 +0900)]
[android] Fix snpe test of multiple moutput model
- Fix the snpe filter test. The usage of multiple output model was changed.
Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>