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

question about ”d2l = sys.modules[__name__]“ #2589

Open
lprdsb opened this issue Mar 11, 2024 · 0 comments
Open

question about ”d2l = sys.modules[__name__]“ #2589

lprdsb opened this issue Mar 11, 2024 · 0 comments

Comments

@lprdsb
Copy link

lprdsb commented Mar 11, 2024

I want to know why in d2l.torch there is this line of code: d2l = sys.modules[name], which causes my IDE to not correctly recognize some functions inside torch. When I try to view the source code, it doesn't jump to the correct location. However, I believe there might be another purpose for writing it this way, and I want to understand the benefits of doing so.

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

1 participant