We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 033f7c0 commit 8894f6cCopy full SHA for 8894f6c
1 file changed
advanced/pytorch-example/main.py
@@ -84,6 +84,7 @@ def transform(example):
84
torch.save(model.module.state_dict(), "mnist_model.pth")
85
print("Model saved as mnist_model.pth")
86
87
+ dist.barrier()
88
dist.destroy_process_group()
89
90
if __name__ == "__main__":
0 commit comments