Closed hseok-oh closed 1 year ago
Let's define args to create the following connections.
$ cat nnpackage/examples/v1.3.0/two_tflites/metadata/MANIFEST
{
"major-version" : "1",
"minor-version" : "3",
"patch-version" : "0",
"configs" : [ ],
"models" : [ "mv1.0.tflite", "mv1.1.tflite" ],
"model-types" : [ "tflite", "tflite" ],
"pkg-inputs" : [ "0:0:0" ],
"pkg-outputs" : [ "1:0:0" ],
"model-connect" : [ { "from" : "0:0:0", "to" : [ "1:0:0" ] } ]
}
Here are some candidates:
..
to separate from
and to
( I used two .
s because one .
looks like a number — e.g. 0:0:0.1:0:0
)
$ model2nnpkg --pkg-inputs=0:0:0 --pkg-outputs=1:0:0 --model-connet=0:0:0..1:0:0
,
as separator
$ model2nnpkg --pkg-inputs=0:0:0,1:0:0 --pkg-outputs=2:0:0,2:0:1 --model-connet=0:0:0..2:0:0,1:0:0..2:0:1
getopt
command instead of bash getopts
.pkg-inputs
, pkg-outputs
, model-connect
like tflitefiletools/select_operator.py
Candidate 1
...
- It requires long option support. We may use external
getopt
command instead of bashgetopts
.
It may be better not to use getopt
because it requires users to install getopt
and I am not sure getopt
is installed by default on Ubuntu.
Currently, conection info is handled by python script argument --io-info
. (#10243)
Previous issue: #9116
Let's support packaging with connection info on
model2nnpkg.sh
. (tools/nnpackage_tool/model2nnpkg/model2nnpkg.sh
)