Skip to content

Commit

Permalink
Set manual seed.
Browse files Browse the repository at this point in the history
  • Loading branch information
yangkky authored Oct 18, 2019
1 parent 36a7a09 commit 2446796
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mnist-mixed.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def train(gpu, args):
init_method='env://',
world_size=args.world_size,
rank=rank)

torch.manual_seed(0)
model = ConvNet()
torch.cuda.set_device(gpu)
model.cuda(gpu)
Expand Down Expand Up @@ -117,4 +117,4 @@ def train(gpu, args):


if __name__ == '__main__':
main()
main()

0 comments on commit 2446796

Please sign in to comment.