-
Notifications
You must be signed in to change notification settings - Fork 21.7k
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
Resolve circular dependence between torch.autograd
and torch.nn.parameter
#128633
Open
XuehaiPan
wants to merge
32
commits into
gh/XuehaiPan/55/base
Choose a base branch
from
gh/XuehaiPan/55/head
base: gh/XuehaiPan/55/base
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XuehaiPan
requested review from
andrewkho,
gokulavasan,
lezcano,
albanD,
jbschlosser,
mikaylagawarecki and
soulitzer
as code owners
June 13, 2024 18:26
pytorch-bot
bot
added
oncall: distributed
Add this issue/PR to distributed oncall triage queue
release notes: distributed (c10d)
release notes category
labels
Jun 13, 2024
This was referenced Jun 13, 2024
XuehaiPan
added
the
module: autograd
Related to torch.autograd, and the autograd engine in general
label
Jun 13, 2024
XuehaiPan
added a commit
that referenced
this pull request
Jun 13, 2024
…rameter` ghstack-source-id: 8da14380554e114dada41e19658aae1cf0dcc1b2 Pull Request resolved: #128633
XuehaiPan
added a commit
that referenced
this pull request
Jun 14, 2024
…rameter` ghstack-source-id: 5816f1cb0f8bcca3b4639d7002394e8ad65b2fe1 Pull Request resolved: #128633
XuehaiPan
added a commit
that referenced
this pull request
Jun 16, 2024
…rameter` ghstack-source-id: 9ec03f6ecf8468f0f2b692e4797ca5bc219e9223 Pull Request resolved: #128633
XuehaiPan
added a commit
that referenced
this pull request
Jul 10, 2024
…rameter` ghstack-source-id: adc22398c2d5d5f9fbd98d19ace7721313bc1c1a Pull Request resolved: #128633
This was referenced Jul 11, 2024
XuehaiPan
added a commit
that referenced
this pull request
Jul 11, 2024
…rameter` ghstack-source-id: e8977d062f9af4dd38f5c8ae5da6e00454cb52ed Pull Request resolved: #128633
XuehaiPan
added a commit
that referenced
this pull request
Jul 12, 2024
…rameter` ghstack-source-id: 2cc2999a6eaf6b3e95396af8a2c08ad200ca15d8 Pull Request resolved: #128633
XuehaiPan
added a commit
that referenced
this pull request
Jul 13, 2024
…rameter` ghstack-source-id: 8c1cd943a21d2acbc72b249b1feac4091871ff86 Pull Request resolved: #128633
XuehaiPan
added a commit
that referenced
this pull request
Jul 19, 2024
…rameter` ghstack-source-id: c50623300c2d1b24116c61bf8a4b7350b3d5d00b Pull Request resolved: #128633
XuehaiPan
added a commit
that referenced
this pull request
Jul 29, 2024
…rameter` ghstack-source-id: 957d639897b6ae381076395a17ab7773a693dcc2 Pull Request resolved: #128633
pytorchmergebot
pushed a commit
that referenced
this pull request
Jul 31, 2024
Split from #128633. - #128633 Move commonly used functions (e.g. `is_scripting`) to the top of the module to avoid circular dependency. Pull Request resolved: #130531 Approved by: https://github.com/EikanWang, https://github.com/ezyang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
ciflow/trunk
Trigger trunk jobs on your pull request
module: autograd
Related to torch.autograd, and the autograd engine in general
module: nn
Related to torch.nn
oncall: distributed
Add this issue/PR to distributed oncall triage queue
open source
release notes: distributed (c10d)
release notes category
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Stack from ghstack (oldest at bottom):
torch.autograd
andtorch.nn.parameter
#128633torch.nn.Parameter
out of moduletorch.nn
#130327torch/nn/parameter.pyi
#130326torch.nn.functional
#130532torch._jit_internal
#130531This PR changes the reference to
torch.nn.parameter.Parameter
in C++ code totorch._parameter.Parameter
(they are the same object) after #130327.pytorch/torch/csrc/autograd/init.cpp
Lines 123 to 131 in a5f816d
Closes #128609
cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @fegin @XilunWu @wanchaol @fduwjj @wz337 @wconstab @chauhang @d4l3k @ezyang @albanD @pearu @nikitaved @soulitzer @Varal7 @mruberry @jbschlosser @walterddr @mikaylagawarecki @penguinwu @tianyu-l @yf225 @lezcano