-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ml-service] Add rpk pacakges for new example
- 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
Showing
8 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
...native/ml-service-example/sum_and_add_model_rpk_v1/res/global/sum_and_add/rpk_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |
23 changes: 23 additions & 0 deletions
23
...l-service-example/sum_and_add_model_rpk_v1/res/global/sum_and_add/sum_and_add.single.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 added
BIN
+1.16 KB
...ml-service-example/sum_and_add_model_rpk_v1/res/global/sum_and_add/sum_and_add_one.tflite
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
Tizen.native/ml-service-example/sum_and_add_model_rpk_v1/tizen-manifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
17 changes: 17 additions & 0 deletions
17
...native/ml-service-example/sum_and_add_model_rpk_v2/res/global/sum_and_add/rpk_config.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
] | ||
} |
23 changes: 23 additions & 0 deletions
23
...l-service-example/sum_and_add_model_rpk_v2/res/global/sum_and_add/sum_and_add.single.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 added
BIN
+1.16 KB
...ml-service-example/sum_and_add_model_rpk_v2/res/global/sum_and_add/sum_and_add_two.tflite
Binary file not shown.
5 changes: 5 additions & 0 deletions
5
Tizen.native/ml-service-example/sum_and_add_model_rpk_v2/tizen-manifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |