-
Notifications
You must be signed in to change notification settings - Fork 74.7k
smaller model runs slower than a larger one when compiled for edgetpu #50951
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
Comments
@Drulludanni |
that is very weird, the folder is shared with anyone with a link (if I open the link in incognito I can still view all the files). But here is the code:
and this is the output:
I tried to make a google colab to run the code but well, I have no idea how to make it run since an edgetpu is required and I don't know if it is possible to somehow make a virtual one in google colab, but here it is anyways: https://colab.research.google.com/drive/1YipG-DUlg0MzGOHV_y4_zadd38YI3wlz?usp=sharing and it should also include the models in my test if you wanna download them to use locally. |
Neither of those links are helpful. The reason the code wont run is because there is no edgetpu connected to the colab, and that is the problem I don't know how to either have an edgetpu connected to the colab or how to fake the edgetpu being there with some kind of edgetpu emulation and as far as I'm aware nobody has done/tried that which is why I don't think I can ever make the google colab work for my problem. |
Hi @Drulludanni ! There might be some operations which is not leveraging gpu of your edge tpus.You can find those operation using below flag. Thank you! |
This issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Thank you. |
Closing as stale. Please reopen if you'd like to work on this further. |
System information-
Describe the current behavior
So I have two models (U-nets) that are nearly identical except one of them uses fewer filters in some of the convolutional layers which makes that network strictly smaller, and when running the tflite version of the models the smaller one is indeed faster than the larger one, however when compiled and run on the edgetpu the smaller network runs slower than the larger network.
Describe the expected behavior
performance gain form tflite should be the same on the edgetpu
Standalone code to reproduce the issue
https://drive.google.com/drive/folders/1-u9GpNwRdbCAxtaMuAdDZazMWqeMIt_n?usp=sharing
Other info / logs
I already made an issue at the google coral edgetpu page seen here, they said the issue was with interpreter.invoke() in the script ../lib/python3.8/site-packages/tflite_runtime/interpreter.py and that I should contact the tensorflow team.
The text was updated successfully, but these errors were encountered: