def test_eye(self): res1 = torch.eye(100, 100) res2 = torch.Tensor() torch.eye(res2, 100, 100) self.assertEqual(res1, res2)