We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f87a896 commit 4db0398Copy full SHA for 4db0398
test/test_utils.py
@@ -18,14 +18,6 @@ def test_make_grid_not_inplace(self):
18
utils.make_grid(t, normalize=True, scale_each=True)
19
assert torch.equal(t, t_clone), 'make_grid modified tensor in-place'
20
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
27
- utils.make_grid([t, t, t, t])
28
29
30
if __name__ == '__main__':
31
unittest.main()
0 commit comments