Skip to content

Fix a bunch of warnings in TestNN#12453

Closed
ssnl wants to merge 4 commits intopytorch:masterfrom
ssnl:testnnwarn
Closed

Fix a bunch of warnings in TestNN#12453
ssnl wants to merge 4 commits intopytorch:masterfrom
ssnl:testnnwarn

Conversation

@ssnl
Copy link
Collaborator

@ssnl ssnl commented Oct 8, 2018

No description provided.

test/test_nn.py Outdated

def _test_scatter(self, tensor):
x = torch.tensor(tensor, requires_grad=True)
x = tensor.requires_grad_()

This comment was marked as off-topic.

test/test_nn.py Outdated
exceed_limits = 0
for draw in range(num_draws):
logits_var = torch.tensor(logits, requires_grad=True)
logits_var = logits.requires_grad_()

This comment was marked as off-topic.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SsnL is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants