-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Analyze onecc options #9369
Comments
one-optimizer optionsStudy result: Format
Let's start from
Optimization passes
Another ref: There is an issue in my internal journal repo, which has a bit more link inside internal data. |
Regarding ConvertNCHWToNHWC:
Q. How can we handle a weird Onnx model that has 2 inputs? What if one is NCHW input and another is NHWC input? (updated) |
Some thought:
|
In #9369 (comment), Those options were implemented for experiment. I think we should not expose those options to users (CC @seanshpark ) |
@jinevening Thanks. Table was updated. |
Let's dig into import options now. import optionsone-import-tflite
$ ./one-import-tflite -h
usage: one-import-tflite [-h] [-v] [-V] [-C CONFIG] [-i INPUT_PATH]
[-o OUTPUT_PATH]
command line tool to convert TensorFlow lite to circle
optional arguments:
-h, --help show this help message and exit
-v, --version show program's version number and exit
-V, --verbose output additional information to stdout or stderr
-C CONFIG, --config CONFIG
run with configuation file
converter arguments:
-i INPUT_PATH, --input_path INPUT_PATH
full filepath of the input file
-o OUTPUT_PATH, --output_path OUTPUT_PATH
full filepath of the output file
one-import-tf
ONE/compiler/tf2tfliteV2/tf2tfliteV2.py Lines 154 to 159 in c6f0a82
ONE/compiler/tf2tfliteV2/tf2tfliteV2.py Lines 141 to 144 in c6f0a82
ref: one-import-onnx
one-import-bcqalso has same options with |
one-quantize
|
discussed with @lemmaa and @seanshpark How to handle option that is dependent on backend
|
|
Discussion with @seanshpark
|
Let's list onnx-only args. These will be removed when model is not onnx.
|
@seanshpark @jinevening |
The options in #9369 (comment) were introduced for onnx models, but they can be used also for other frontends (tf, tflite). Among the list, I think onnx-only option is only |
I agree on this but in the first step, for some safety, I prefer put these only to ONNX models. |
I agree. What @seanshpark has concern about was that the patterns for these args might rarely occur in tflite models. So we thought that adding those args could increase compilation time for tflite models but show small impact on optimization. Like @seanshpark suggested, how about adding those args into the second step someday? |
I get it. Let's go with that option :) |
Let me close this and create another issue to implement one-init. |
I got the following error:
The error msg says that
|
Bug -_-; If you like, you can add this to or... @llFreetimell was this intentional ? |
I added
|
ping @jinevening |
I think it's simple mistake of @mhs4670go @.@ |
related #9313
Let me analyze onecc options and figure out how to handle this for
one init
.The text was updated successfully, but these errors were encountered: