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

No handlers found: "torchvision::roi_align". Skipped #21

Open
padeirocarlos opened this issue Feb 20, 2023 · 2 comments
Open

No handlers found: "torchvision::roi_align". Skipped #21

padeirocarlos opened this issue Feb 20, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@padeirocarlos
Copy link

Thank you for your great work!
I encountered this warning when using torchprofile. It seems like torchprofile cannot calculate the MACs of

UserWarning: No handlers found: "torchvision::roi_align". Skipped
UserWarning: No handlers found: "aten::sqrt". Skipped
UserWarning: No handlers found: "aten::log2". Skipped
UserWarning: No handlers found: "aten::reciprocal". Skipped.
UserWarning: No handlers found: "aten::scalarimplicit". Skipped.
UserWarning: No handlers found: "aten::max". Skipped.

By the way, apart from the MACs, Is there any way to calculate the model memory use?

@zhijian-liu zhijian-liu self-assigned this Feb 24, 2023
@zhijian-liu zhijian-liu added the enhancement New feature or request label Feb 24, 2023
@zhijian-liu
Copy link
Owner

Thanks for reporting this issue. Most of these operators have no MACs or very few MACs, so the MACs should be roughly correct. I will work on supporting these operators.

@pvti
Copy link

pvti commented Apr 5, 2023

Hi,
I met a similar warning when profiling my customized model wich contains of custom layers with some operators like permute, reshape and einsum.
Here's the log:

[/home/tien/anaconda3/lib/python3.9/site-packages/torchprofile/profile.py:22](https://file+.vscode-resource.vscode-cdn.net/home/tien/anaconda3/lib/python3.9/site-packages/torchprofile/profile.py:22): UserWarning: No handlers found: "aten::copy_". Skipped.
  warnings.warn('No handlers found: "{}". Skipped.'.format(
[/home/tien/anaconda3/lib/python3.9/site-packages/torchprofile/profile.py:22](https://file+.vscode-resource.vscode-cdn.net/home/tien/anaconda3/lib/python3.9/site-packages/torchprofile/profile.py:22): UserWarning: No handlers found: "aten::permute". Skipped.
  warnings.warn('No handlers found: "{}". Skipped.'.format(
[/home/tien/anaconda3/lib/python3.9/site-packages/torchprofile/profile.py:22](https://file+.vscode-resource.vscode-cdn.net/home/tien/anaconda3/lib/python3.9/site-packages/torchprofile/profile.py:22): UserWarning: No handlers found: "aten::reshape". Skipped.
  warnings.warn('No handlers found: "{}". Skipped.'.format(
[/home/tien/anaconda3/lib/python3.9/site-packages/torchprofile/profile.py:22](https://file+.vscode-resource.vscode-cdn.net/home/tien/anaconda3/lib/python3.9/site-packages/torchprofile/profile.py:22): UserWarning: No handlers found: "aten::einsum". Skipped.
  warnings.warn('No handlers found: "{}". Skipped.'.format(

I guess it doesn't affect the final result. Just mentioning.
Thanks!

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

No branches or pull requests

3 participants