(self, device)
| 38 | |
| 39 | class TestTrainer(unittest.TestCase): |
| 40 | def _data_loader(self, device): |
| 41 | device = torch.device(device) |
| 42 | while True: |
| 43 | yield torch.rand(3, 3).to(device) |
| 44 | |
| 45 | def test_simple_trainer(self, device="cpu"): |
| 46 | model = _SimpleModel().to(device=device) |
no test coverage detected