(self)
| 77 | |
| 78 | @unittest.expectedFailure |
| 79 | def test_max_empty(self): |
| 80 | # Max on an empty tensor should also raise an error. |
| 81 | with self.assertRaises(RuntimeError): |
| 82 | torch.tensor([]).max() |
| 83 | with self.assertRaises(RuntimeError): |
| 84 | Tensor([]).max() |
| 85 | |
| 86 | @unittest.expectedFailure |
| 87 | def test_argmax_empty(self): |