(self, opt)
| 14 | """Base model.""" |
| 15 | |
| 16 | def __init__(self, opt): |
| 17 | self.opt = opt |
| 18 | self.device = torch.device('cuda' if opt['num_gpu'] != 0 else 'cpu') |
| 19 | self.is_train = opt['is_train'] |
| 20 | self.schedulers = [] |
| 21 | self.optimizers = [] |
| 22 | |
| 23 | def feed_data(self, data): |
| 24 | pass |
nothing calls this directly
no outgoing calls
no test coverage detected