From 246908bf45a4c04fcfb747d0055acccd6a6621e8 Mon Sep 17 00:00:00 2001 From: xuyige Date: Tue, 28 Aug 2018 17:18:09 +0800 Subject: [PATCH] find a bug that bilinear must have bias --- test/modules/test_other_modules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/modules/test_other_modules.py b/test/modules/test_other_modules.py index 908b7b5d..141535a0 100644 --- a/test/modules/test_other_modules.py +++ b/test/modules/test_other_modules.py @@ -27,4 +27,4 @@ class TestBiLinear(unittest.TestCase): x_right = torch.randn((7, 10, 20, 5)) y = bl(x_left, x_right) print(bl) - bl2 = BiLinear(n_left=15, n_right=15, n_out=10, bias=False) + bl2 = BiLinear(n_left=15, n_right=15, n_out=10, bias=True)