-
Notifications
You must be signed in to change notification settings - Fork 352
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
Circular imports when importing einops and torch._dynamo #315
Labels
Comments
Hi @befelix , thank you for reporting, there is a circular import problem that we need to address. step-by-step what happens in
|
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
jansel
added a commit
to pytorch/pytorch
that referenced
this issue
Apr 15, 2024
See arogozhnikov/einops#315 ghstack-source-id: e5ad8f6da07887b7290fbae8c42af237a33dfbcb Pull Request resolved: #124084
This comment was marked as resolved.
This comment was marked as resolved.
pytorchmergebot
pushed a commit
to pytorch/pytorch
that referenced
this issue
Apr 18, 2024
See arogozhnikov/einops#315 Pull Request resolved: #124084 Approved by: https://github.com/peterbell10
This comment was marked as resolved.
This comment was marked as resolved.
arogozhnikov
changed the title
Warning when importing einops before torch._dynamo
Circular imports when importing einops and torch._dynamo
Apr 20, 2024
sanketpurandare
pushed a commit
to sanketpurandare/pytorch
that referenced
this issue
Apr 22, 2024
See arogozhnikov/einops#315 Pull Request resolved: pytorch#124084 Approved by: https://github.com/peterbell10
petrex
pushed a commit
to petrex/pytorch
that referenced
this issue
May 3, 2024
See arogozhnikov/einops#315 Pull Request resolved: pytorch#124084 Approved by: https://github.com/peterbell10
Update: this was fixed in pytorch 2.4, I'll leave the issue open until 2.5 comes out. For pytorch < 2.4 use these instructions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Importing
einops
beforetorch._dynamo
currently leads to warnings. I'm not sure if this needs a fix on thepytorch
oreinops
side. This is annoying for CI pipelines, where warnings are typically treated as errors. Note that, with sorted imports,einops
will typically import before anytorch
namespaces.Reproduction steps
Steps to reproduce the behavior:
Expected behavior
No output, import order does not matter.
Your platform
Ubuntu 22.04,
torch==2.2.2
,einops==0.7.0
The text was updated successfully, but these errors were encountered: