Skip to content

Commit 39edc37

Browse files
gchanansoumith
authored andcommitted
Fix lint.
1 parent f6578c1 commit 39edc37

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

test/test_nn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2388,7 +2388,8 @@ def test_bilinear(self):
23882388
self.assertEqual(module.weight.grad.data, module_legacy.gradWeight)
23892389
self.assertEqual(module.bias.grad.data, module_legacy.gradBias)
23902390

2391-
self._assertGradAndGradgradChecks(lambda x1, x2: F.bilinear(x1, x2, module.weight, module.bias), (input1_1, input2_1))
2391+
self._assertGradAndGradgradChecks(lambda x1, x2: F.bilinear(x1, x2, module.weight, module.bias),
2392+
(input1_1, input2_1))
23922393

23932394
def run_conv_double_back_test(self, kern, stride, padding, chan_in, chan_out, batch_size,
23942395
inp_size, dilation, no_weight, use_cuda=False, use_bias=True):

torch/nn/_functions/linear.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import torch
2-
from torch.autograd import Function
2+
from torch.autograd import Function, Variable
33

44

55
class Bilinear(Function):

0 commit comments

Comments
 (0)