From c7a0038370861c8d6d1c2eea8df2b5e7247dc1e8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EC=9D=B4=EC=83=81=EA=B7=9C/On-Device=20Lab=28SR=29/Princip?= =?utf8?q?al=20Engineer/=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Tue, 9 Jul 2019 13:12:56 +0900 Subject: [PATCH] [nnpackage] update specification to add model-types attribute (#5572) `MANIFEST` will have `model-types` attributes to identify what kind of models it contins. Signed-off-by: Sanggyu Lee --- contrib/nnpackage/spec/10_packaging_and_manifest.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/contrib/nnpackage/spec/10_packaging_and_manifest.md b/contrib/nnpackage/spec/10_packaging_and_manifest.md index 373b59e..1bc18ff 100644 --- a/contrib/nnpackage/spec/10_packaging_and_manifest.md +++ b/contrib/nnpackage/spec/10_packaging_and_manifest.md @@ -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" ] } ``` -- 2.7.4