Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -127,6 +127,9 @@ def sample_then_run(net):
|
|
127 |
# sample
|
128 |
sample = torch.zeros([1, 10000]).to(device)
|
129 |
|
|
|
|
|
|
|
130 |
#only first 1000 PCs
|
131 |
for i in range(1000):
|
132 |
sample[0, i] = torch.normal(m[i], standev[i], (1,1))
|
|
|
127 |
# sample
|
128 |
sample = torch.zeros([1, 10000]).to(device)
|
129 |
|
130 |
+
sample_seed = random.randint(0, 100000)
|
131 |
+
torch.manual_seed(sample_seed)
|
132 |
+
|
133 |
#only first 1000 PCs
|
134 |
for i in range(1000):
|
135 |
sample[0, i] = torch.normal(m[i], standev[i], (1,1))
|