Code fragment metadata

hasIdentifier: https://padme-analytics.de/pht/codeFragment/7724587969061b9e8f390ecc14d31529cc01828e741c309ed4cdab108499cb08
hasContent: torch.save({ 'epoch': epoch, 'optim_state_dict': optimizer.state_dict(), 'model_state_dict': model.state_dict(), 'best_acc': val_acc, }, osp.join(model_dir, 'checkpoint.pth.tar'))

Code fragment is used in the following Trains