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

Faster RCNN: Unable to compile for CPU because topk fails #6340

Closed
ashutoshparkhi opened this issue Aug 26, 2020 · 5 comments
Closed

Faster RCNN: Unable to compile for CPU because topk fails #6340

ashutoshparkhi opened this issue Aug 26, 2020 · 5 comments

Comments

@ashutoshparkhi
Copy link
Contributor

ashutoshparkhi commented Aug 26, 2020

Hello,

This the variant that fails with topk error.
http://download.tensorflow.org/models/object_detection/faster_rcnn_inception_v2_coco_2018_01_28.tar.gz

Error:
%10934 = topk(%10930, %10933, k=None, dtype="int32")^[[31m the function is provided too many arguments expected 1, found 2; ^[[39m;

Is anyone already working to fix this issue?

Please let me know if I need to serve more details.

Tagging @yongwww as he has recently done some fixes for SSD.
Is there any plan to support this variant of Faster RCNN?
Can I try any variant that already compiles and runs with Relay VM?

Thanks,
Ashutosh

@ashutoshparkhi ashutoshparkhi changed the title Faster RCNN: Unable to compile for CPU because topk fails with unsupported number of arguments Faster RCNN: Unable to compile for CPU because topk fails Aug 26, 2020
@ashutoshparkhi
Copy link
Contributor Author

While trying to compile it with commit a64feed, compilation goes through.

@electriclilies
Copy link
Contributor

electriclilies commented Aug 31, 2020

To clarify, does #5996 compile it correctly (i.e., is #5595 the most recent commit that works)?

@electriclilies
Copy link
Contributor

Also, if you have a version that is already compiled, you should be able to run it with the relay VM. This is most likely an issue with the tensorflow importer.

@yongwww
Copy link
Member

yongwww commented Sep 4, 2020

@ashutoshparkhi fasterrcnn should be supported, could you try with latest tvm again? very likely the topk issue you faced is from frontend, topk got one more unexpected argument

@ashutoshparkhi
Copy link
Contributor Author

Thanks @yongwww and @electriclilies. TOT has the fix for it.

@tqchen tqchen closed this as completed Sep 28, 2020
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

4 participants