-
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
[one-optimize] YAMNet Optimization Not Working #13790
Comments
In my opinion, shape after non-const padding should be dynamic.
for case 1, which case is for yamNet, we know the shape of padding tensor but the value of padding is determined by input.
for both cases, padding shape should [n,2]. In the shape inference phase of the pad operation, it is sufficient to check whether the paddings tensor satisfies rank == 2 and dim(1).value == 2. |
IIUC, The error comes from
I will look for this and leave a comment if there is an easy way to do it. |
As you can see, first node for the But as this model input shape is dynamic, we can't do above procedure ... -_-; |
About It is audio ...
Meaning of "dynamic input" can be, number of audio samples can be any ... :) |
In tensorflow, this case is supported.
|
I think it is good to follow. 😅 |
IssueThere is a problem with Range's shape inference when trying to optimize yamnet.tflite. ReasonONE/compiler/luci/service/src/CircleShapeInferenceRule.cpp Lines 955 to 967 in dc1745f
The issue occurs because of a failure to dynamically cast to I would like to take on this issue to support the optimization of yamnet.tflite. |
@kyeong8139, |
As we decided that the Reshape operation's sinf can output a shape that all dimensions are unknown (e.g., ? x ? x ? x ?), the following Conv2D operation should support dynamic shapes. Currently, Conv2D and DepthwiseConv2D do not support unknown dimensions except for the batch size. So, I am working on adding that support now. |
What?
When I compile the YAMNet TFLite model to a circle format and run one-optimize, the model is compiled, but the optimization process fails. As a result, I get yamnet.circle but not yamnet.opt.circle. Below is the log file from one-optimize:
yamnet.opt.circle.log
I found the following message in log
How to reproduce
Compiler: Built from release/1.28.0
Model and Config: yamnet.zip
I obtained this model from https://huggingface.co/thelou1s/yamnet/blob/main/lite-model_yamnet_tflite_1.tflite
Unzip yamnet.zip.
Run the command:
onecc -C yamnet.cfg
The text was updated successfully, but these errors were encountered: