GeezerVison is showing github.com — Use MRG_RandomStreams instead for shared_randomstreams for GPU compat. · alabarga/DeepLearningTutorials@93c9a36
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: code/SdA.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
40 | 40 |
|
41 | 41 | import theano |
42 | 42 | import theano.tensor as T |
43 | | -from theano.tensor.shared_randomstreams import RandomStreams |
| 43 | +from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams |
44 | 44 |
|
45 | 45 | from logistic_sgd import LogisticRegression, load_data |
46 | 46 | from mlp import HiddenLayer |
|
Collapse file
Copy file name to clipboardExpand all lines: code/dA.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
40 | 40 |
|
41 | 41 | import theano |
42 | 42 | import theano.tensor as T |
43 | | -from theano.tensor.shared_randomstreams import RandomStreams |
| 43 | +from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams |
44 | 44 |
|
45 | 45 | from logistic_sgd import load_data |
46 | 46 | from utils import tile_raster_images |
|
Collapse file
Copy file name to clipboardExpand all lines: code/hmc/hmc.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -358,7 +358,7 @@ def new_from_shared_positions( |
358 | 358 | stepsize = sharedX(initial_stepsize, 'hmc_stepsize') |
359 | 359 | avg_acceptance_rate = sharedX(target_acceptance_rate, |
360 | 360 | 'avg_acceptance_rate') |
361 | | - s_rng = TT.shared_randomstreams.RandomStreams(seed) |
| 361 | + s_rng = theano.sandbox.rng_mrg.MRG_RandomStreams(seed) |
362 | 362 |
|
363 | 363 | # define graph for an `n_steps` HMC simulation |
364 | 364 | accept, final_pos = hmc_move( |
|
Collapse file
Copy file name to clipboardExpand all lines: code/rbm.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
20 | 20 | import theano.tensor as T |
21 | 21 | import os |
22 | 22 |
|
23 | | -from theano.tensor.shared_randomstreams import RandomStreams |
| 23 | +from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams |
24 | 24 |
|
25 | 25 | from utils import tile_raster_images |
26 | 26 | from logistic_sgd import load_data |
|
Collapse file
Copy file name to clipboardExpand all lines: code/rnnrbm.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
19 | 19 | from midi.utils import midiread, midiwrite |
20 | 20 | import theano |
21 | 21 | import theano.tensor as T |
22 | | -from theano.tensor.shared_randomstreams import RandomStreams |
| 22 | +from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams |
23 | 23 |
|
24 | 24 | #Don't use a python long as this don't work on 32 bits computers. |
25 | 25 | numpy.random.seed(0xbeef) |
|