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

Unit Test Error When Testing vmap With Missing Module "autograd_function_db" #1098

Open
sunmorgan opened this issue Jan 10, 2023 · 7 comments

Comments

@sunmorgan
Copy link

When running pytest test/functorch/test_vmap.py, the error
image

ModuleNotFoundError: No module named 'torch.testing._internal.autograd_function_db'

comes up. This issue is only prevalent with test_vmap.py, all the other unit tests in functorch works just fine.

@kshitij12345
Copy link
Collaborator

autograd_function_db was added fairly recently and should be available only by installing nightlies or building from source. Unfortunately none of the stable release has it.

cc: @zou3519

@zou3519
Copy link
Contributor

zou3519 commented Jan 10, 2023

@sunmorgan what are you trying to do?

@sunmorgan
Copy link
Author

@zou3519 I tried running

pytest test/functorch/test_vmap.py -v -k "test_op_has_batch_rule_tril" (as well as triu)

and received

ModuleNotFoundError: No module named 'torch.testing._internal.autograd_function_db'

Is the above line the expected error? (built from source)

@zou3519
Copy link
Contributor

zou3519 commented Jan 12, 2023

That is not expected, what commit hash are you at? (git log will tell)

@sunmorgan
Copy link
Author

13b3d862dd35cef133e09bdbc62ee9891999209f

@zou3519
Copy link
Contributor

zou3519 commented Jan 12, 2023

Can you verify that you do not have a PyTorch binary installed in your environment that is interfering? What does import torch; torch.__version__ say?

@sunmorgan
Copy link
Author

2.0.0a0+git13b3d86

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

3 participants