File tree Expand file tree Collapse file tree 5 files changed +5
-5
lines changed Expand file tree Collapse file tree 5 files changed +5
-5
lines changed 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
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
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 (
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
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 )
You can’t perform that action at this time.
0 commit comments