8000 Update test/test_nn.py · pytorch/pytorch@8ae0666 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8ae0666

Browse files
eqymalfet
andauthored
Update test/test_nn.py
Co-authored-by: Nikita Shulga <2453524+malfet@users.noreply.github.com>
1 parent 5baace7 commit 8ae0666

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

test/test_nn.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9298,7 +9298,6 @@ def test_MarginLoss_race(self, device, dtype):
92989298
batch = 1
92999299
classes = 128
93009300
x = torch.randn(batch, classes, requires_grad=True, device=device, dtype=dtype)
9301-
x.requires_grad = True
93029301
y = torch.randint(low=0, high=classes, size=(batch,), device=device, dtype=torch.long)
93039302
x_cpu = x.detach().clone().cpu()
93049303
y_cpu = y.detach().clone().cpu()

0 commit comments

Comments
 (0)
0