Skip to content

Operate on Variables in torch.nn.init#4964

Merged
colesbury merged 2 commits intopytorch:masterfrom
colesbury:nn_init
Feb 5, 2018
Merged

Operate on Variables in torch.nn.init#4964
colesbury merged 2 commits intopytorch:masterfrom
colesbury:nn_init

Conversation

@colesbury
Copy link
Copy Markdown
Member

Once Variable and Tensor are merged the existing Variable instanceof test
would cause an infinite recursion. Instead, modify the Variables directly
inside a no_grad() block.

Once Variable and Tensor are merged the existing Variable test would
cause an infinite recursion. Instead, modify the Variables directly
inside a `no_grad()` block.
@colesbury
Copy link
Copy Markdown
Member Author

@pytorchbot retest this please

@colesbury colesbury merged commit 76ae03d into pytorch:master Feb 5, 2018
@colesbury colesbury deleted the nn_init branch February 5, 2018 16:34
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Once Variable and Tensor are merged the existing Variable test would
cause an infinite recursion. Instead, modify the Variables directly
inside a `no_grad()` block.
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

Successfully merging this pull request may close these issues.

2 participants