| 25 | |
| 26 | |
| 27 | class TinyModel(torch.nn.Module): |
| 28 | def __init__(self): |
| 29 | """Initialize a tiny torch module for callback tests.""" |
| 30 | super(TinyModel, self).__init__() |
| 31 | self.linear = torch.nn.Linear(1, 1) |
| 32 | self.stop_training = False |
| 33 | |
| 34 | |
| 35 | def test_callback_and_callback_list_flow(): |
no outgoing calls