Skip to content

Commit

Permalink
[ml-service] Add rpk pacakges for new example
Browse files Browse the repository at this point in the history
- Add rpk packages for new example.
- Each rpk is packaged into `org.resource.model.sum_and_add-1.0.0.rpk` and `org.resource.model.sum_and_add-2.0.0.rpk`

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
  • Loading branch information
anyj0527 authored and myungjoo committed Jul 11, 2024
1 parent 7cbcf65 commit a2672fc
Show file tree
Hide file tree
Showing 8 changed files with 90 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"models" : [
{
"name" : "sum_and_add_model",
"model" : "sum_and_add_one.tflite",
"description" : "sum and add 1.0",
"activate" : "true"
}
],
"resources" : [
{
"name" : "sum_and_add_resource_conf",
"path" : "sum_and_add.single.conf",
"description" : "Notes for this conf file"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"single" : {
"key" : "sum_and_add_model",
"framework" : "tensorflow-lite",
"custom" : "Delegate:XNNPACK,NumThreads:2",
"input_info" : [
{
"type" : "float32",
"dimension" : "4:1"
}
],
"output_info" : [
{
"type" : "float32",
"dimension" : "1:1"
}
]
},
"information" :
{
"description" : "[sum_and_add_one.tflite] sum all values and add 1.0"
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns="http://tizen.org/ns/packages" api-version="6.5" package="org.resource.model.sum_and_add" version="1.0.0" res-type="sum_and_add" res-version="1.0.0">
<allowed-package id="*"/>
<metadata key="http://tizen.org/metadata/mlops" value="TBU"/>
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"models" : [
{
"name" : "sum_and_add_model",
"model" : "sum_and_add_two.tflite",
"description" : "sum and add 2.0",
"activate" : "true"
}
],
"resources" : [
{
"name" : "sum_and_add_resource_conf",
"path" : "sum_and_add.single.conf",
"description" : "Notes for this conf file"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"single" : {
"key" : "sum_and_add_model",
"framework" : "tensorflow-lite",
"custom" : "Delegate:XNNPACK,NumThreads:2",
"input_info" : [
{
"type" : "float32",
"dimension" : "4:1"
}
],
"output_info" : [
{
"type" : "float32",
"dimension" : "1:1"
}
]
},
"information" :
{
"description" : "[sum_and_add_two.tflite] sum all values and add 2.0"
}
}
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns="http://tizen.org/ns/packages" api-version="6.5" package="org.resource.model.sum_and_add" version="2.0.0" res-type="sum_and_add" res-version="2.0.0">
<allowed-package id="*"/>
<metadata key="http://tizen.org/metadata/mlops" value="TBU"/>
</manifest>

0 comments on commit a2672fc

Please sign in to comment.