remove random seed
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user