From 1312380078d01849e07dd2ce4d27f3e853c8ac0d Mon Sep 17 00:00:00 2001 From: vfdev Date: Fri, 4 May 2018 15:46:36 +0200 Subject: [PATCH] Update test_utils.py Remove test with variables --- test/test_utils.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/test_utils.py b/test/test_utils.py index df6ae972bda..2f8392e0a94 100644 --- a/test/test_utils.py +++ b/test/test_utils.py @@ -18,14 +18,6 @@ def test_make_grid_not_inplace(self): utils.make_grid(t, normalize=True, scale_each=True) assert torch.equal(t, t_clone), 'make_grid modified tensor in-place' - def test_make_grid_raises_with_variable(self): - t = torch.autograd.Variable(torch.rand(3, 10, 10)) - with self.assertRaises(TypeError): - utils.make_grid(t) - - with self.assertRaises(TypeError): - utils.make_grid([t, t, t, t]) - if __name__ == '__main__': unittest.main()