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

INTERNAL_ASSERT failed #1103

Open
Jeff09 opened this issue Jan 16, 2023 · 4 comments
Open

INTERNAL_ASSERT failed #1103

Jeff09 opened this issue Jan 16, 2023 · 4 comments

Comments

@Jeff09
Copy link

Jeff09 commented Jan 16, 2023

RuntimeError: data.find(layerId) == data.end() INTERNAL ASSERT FAILED at "/__w/functorch/functorch/functorch/csrc/DynamicLayer.cpp":251, please report a bug to PyTorch. '

Hi, I have used vmap(jacrev(jac_fn, argnums=0))(*args) to calculate some jacobians, and the above errors appears. Could you help me out? Thank you so much.

@zou3519
Copy link
Contributor

zou3519 commented Jan 17, 2023

Could you try the latest PyTorch nightly and let us know if the error goes away? The above code no longer exists in trunk (we refactored it away to fix some problems).

@Jeff09
Copy link
Author

Jeff09 commented Jan 18, 2023

Thank you for replying. Does the latest PyTorch nightly is the same as PyTorch 2.0?

@Jeff09
Copy link
Author

Jeff09 commented Jan 19, 2023

Hi @zou3519 , I have tried PyTorch 1.13.1, it's still the same error.

RuntimeError: data.find(layerId) == data.end() INTERNAL ASSERT FAILED at "../aten/src/ATen/functorch/DynamicLayer.cpp":256, please report a bug to PyTorch.

I can't using PyTorch nightly cause I'm using the library Theseus, which is also from Facebook, which is only support PyTorch 1.13.1, not support PyTorch nightly now. And the bug detail is follows.
image

Any advices is welcome. Thank you so much.

@zou3519
Copy link
Contributor

zou3519 commented Mar 30, 2023

Sorry for the delayed reply, I took a long vacation. Is this still a problem? If so, do you have a script that reproduces the problem?

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

2 participants