Skip to content
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

There is a bug in the memory allocation algorithm under multi branch PAD operation #109

Open
HomiKetalys opened this issue Jul 27, 2024 · 0 comments

Comments

@HomiKetalys
Copy link

HomiKetalys commented Jul 27, 2024

When there is a branch structure in the model as shown in the following figure, the input tensor of branch B should only be read before it is used by branch B.
image
As shown in the following figure, the tensor address of this branch is 49152. Branch A can use it correctly.
image
As shown in the figure below, the input tensor address of branch B is 0, which should be 49152. On the right side of the graph, it can be seen that the tensor at 49152 has been modified, which should not appear before branch B. In addition, the input tensor shape of branch B is also incorrect.
image

Here is my tflite file.
model.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant