Translations:PyTorch/311/en

From Alliance Doc
Jump to navigation Jump to search
if global_rank == 0:
       torch.save(ddp_model.state_dict(), "./checkpoint_path")