[nnpackage] Modify main-model to models to support multiple models (#5486)
author이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 <sg5.lee@samsung.com>
Thu, 27 Jun 2019 04:46:58 +0000 (13:46 +0900)
committer이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Thu, 27 Jun 2019 04:46:58 +0000 (13:46 +0900)
For multiple model support in future, main-model is changed to models.
`models` is an array of model paths.

Signed-off-by: Sanggyu Lee <sg5.lee@samsung.com>
contrib/nnpackage/spec/10_packaging_and_manifest.md

index a94f23f..373b59e 100644 (file)
@@ -61,10 +61,10 @@ For detail, see [semantic versioning 2.0.0](https://semver.org/)
 
 `patch-version` is the patch version of `nnpackage`.
 
-#### main-model
+#### models
 
-`main-model` is the name of model that the runtime will load and execute.
-It has relative path from nnpackage's root directory.
+`models` is an array of path to model files, which is relative path from top level directory of this package.
+The first element from the array will be the default model to be executed.
 
 ### Example
 
@@ -72,9 +72,9 @@ Here is an example of `MANIFEST`.
 
 ```
 {
-    "major-version"    : "1",
-    "minor-version"    : "0",
-    "patch-version"    : "0",
-    "main-model" : "mymodel.model"
+    "major-version" : "1",
+    "minor-version" : "0",
+    "patch-version" : "0",
+    "models" : [ "mymodel.model", "yourmodel.model" ]
 }
 ```