[nnpackage] update specification to add model-types attribute (#5572)
author이상규/On-Device Lab(SR)/Principal Engineer/삼성전자 <sg5.lee@samsung.com>
Tue, 9 Jul 2019 04:12:56 +0000 (13:12 +0900)
committer이춘석/On-Device Lab(SR)/Staff Engineer/삼성전자 <chunseok.lee@samsung.com>
Tue, 9 Jul 2019 04:12:56 +0000 (13:12 +0900)
`MANIFEST` will have `model-types` attributes to identify what kind of
models it contins.

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

index 373b59e..1bc18ff 100644 (file)
@@ -66,6 +66,17 @@ For detail, see [semantic versioning 2.0.0](https://semver.org/)
 `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.
 
+#### model-types
+
+`model-types` is an array of strings that describes the type of each model in `models`.
+
+It can have the values (case-sensitive) in following table.
+
+| name   | description            |
+|--------|------------------------|
+| tflite | tensorflow lite schema |
+| circle | nnpackage schema       |
+
 ### Example
 
 Here is an example of `MANIFEST`.
@@ -75,6 +86,7 @@ Here is an example of `MANIFEST`.
     "major-version" : "1",
     "minor-version" : "0",
     "patch-version" : "0",
-    "models" : [ "mymodel.model", "yourmodel.model" ]
+    "models"      : [ "mymodel.model", "yourmodel.model" ],
+    "model-types" : [ "tflite", "circle" ]
 }
 ```