remove random seed

This commit is contained in:
Morvan Zhou
2017-12-15 14:21:23 +11:00
parent dcbd424b2a
commit 5df56c99dd
14 changed files with 17 additions and 17 deletions

View File

@ -11,7 +11,7 @@ from torch.autograd import Variable
import torch.nn.functional as F
import matplotlib.pyplot as plt
torch.manual_seed(1) # reproducible
# torch.manual_seed(1) # reproducible
x = torch.unsqueeze(torch.linspace(-1, 1, 100), dim=1) # x data (tensor), shape=(100, 1)
y = x.pow(2) + 0.2*torch.rand(x.size()) # noisy y data (tensor), shape=(100, 1)