Skip to content

Commit 4db0398

Browse files
vfdev-5soumith
authored andcommitted
Update test_utils.py (#486)
Remove test with variables
1 parent f87a896 commit 4db0398

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

test/test_utils.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,6 @@ def test_make_grid_not_inplace(self):
1818
utils.make_grid(t, normalize=True, scale_each=True)
1919
assert torch.equal(t, t_clone), 'make_grid modified tensor in-place'
2020

21-
def test_make_grid_raises_with_variable(self):
22-
t = torch.autograd.Variable(torch.rand(3, 10, 10))
23-
with self.assertRaises(TypeError):
24-
utils.make_grid(t)
25-
26-
with self.assertRaises(TypeError):
27-
utils.make_grid([t, t, t, t])
28-
2921

3022
if __name__ == '__main__':
3123
unittest.main()

0 commit comments

Comments
 (0)