Skip to content

[ML-Agent for Android]: Dummy ml-agent added#53

Merged
jaeyun-jung merged 1 commit intonnstreamer:mainfrom
songgot:dummy_agent
Jan 14, 2025
Merged

[ML-Agent for Android]: Dummy ml-agent added#53
jaeyun-jung merged 1 commit intonnstreamer:mainfrom
songgot:dummy_agent

Conversation

@songgot
Copy link
Contributor

@songgot songgot commented Jan 10, 2025

Add dummy ml-agent-android
Support Ubuntu Meson build

* @brief A set of exported ml-agent interfaces for managing pipelines, models, and other service.
* @see https://github.com/nnstreamer/deviceMLOps.MLAgent
* @author Wook Song <wook16.song@samsung.com>
* @bug No known bugs except for NYI items
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Provide a proper description.
  2. If this provides the same interface as https://github.com/nnstreamer/deviceMLOps.MLAgent/blob/main/daemon/include/mlops-agent-interface.h , do NOT create another header. It will break future build when someone updates the interface. Share the SAME file.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I will do that, thank you.

* @param[in] pipeline_desc A stringified description of the pipeline.
* @return 0 on success, a negative error value if failed.
*/
int ml_agent_pipeline_set_description (const char *name, const char *pipeline_desc);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest adding jni folder and using common header for android build.
We don't need to change meson for android.

jni/mlops-agent.mk
    MLOPS_AGENT_SRCS := $(MLOPS_AGENT_ROOT)/daemon/mlops-agent-android.c

Then, including MLOPS_AGENT_SRCS when building android library in api repo.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, I don't 100% understand it. I'll study and try it.

@songgot songgot force-pushed the dummy_agent branch 4 times, most recently from f165a83 to c705382 Compare January 14, 2025 02:33
Copy link
Member

@gichan-jang gichan-jang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Add dummy ml-agent-android

Signed-off-by: hyunil park <hyunil46.park@samsung.com>
@jaeyun-jung jaeyun-jung merged commit cc4fa1c into nnstreamer:main Jan 14, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Comments