crumpets.torch.utils module¶
- crumpets.torch.utils.resume(path, model, optimizer)[source]¶
Given parameters, extracts a training state, i.e. initializes a network and optimizer.
- Parameters
path – path to a pytorch snapshot (including model and optimizer states)
model – a network architecture for that the extracted weights are applied to
optimizer – an optimizer for which the extracted optimizer parameters are applied to
- Returns
the loaded snapshot