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
can not trace log_func_args when import torch #338
Comments
after some search the root cause seems from |
It seems like using getattr on that object will cause infinite recursion? If this could be reproduced without viztracer, maybe it’s not a viztracer issue. Is there a note in torch for this? That users should not do it? |
not exactly I did some search and no relate issues on pytorch. |
os: ubuntu20.04 and MacOS m1 both test
cat foo.py
run this command the
viztracer
will hangviztracer --log_func_args a.py
use py-spy to check the stack will see as follows:
seems loop in getattr (torch/_ops.py:480)
The text was updated successfully, but these errors were encountered: