File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040
4141import theano
4242import theano .tensor as T
43- from theano .tensor . shared_randomstreams import RandomStreams
43+ from theano .sandbox . rng_mrg import MRG_RandomStreams as RandomStreams
4444
4545from logistic_sgd import LogisticRegression , load_data
4646from mlp import HiddenLayer
Original file line number Diff line number Diff line change 4040
4141import theano
4242import theano .tensor as T
43- from theano .tensor . shared_randomstreams import RandomStreams
43+ from theano .sandbox . rng_mrg import MRG_RandomStreams as RandomStreams
4444
4545from logistic_sgd import load_data
4646from utils import tile_raster_images
Original file line number Diff line number Diff line change @@ -358,7 +358,7 @@ def new_from_shared_positions(
358358 stepsize = sharedX (initial_stepsize , 'hmc_stepsize' )
359359 avg_acceptance_rate = sharedX (target_acceptance_rate ,
360360 'avg_acceptance_rate' )
361- s_rng = TT . shared_randomstreams . RandomStreams (seed )
361+ s_rng = theano . sandbox . rng_mrg . MRG_RandomStreams (seed )
362362
363363 # define graph for an `n_steps` HMC simulation
364364 accept , final_pos = hmc_move (
Original file line number Diff line number Diff line change 2020import theano .tensor as T
2121import os
2222
23- from theano .tensor . shared_randomstreams import RandomStreams
23+ from theano .sandbox . rng_mrg import MRG_RandomStreams as RandomStreams
2424
2525from utils import tile_raster_images
2626from logistic_sgd import load_data
Original file line number Diff line number Diff line change 1919from midi .utils import midiread , midiwrite
2020import theano
2121import theano .tensor as T
22- from theano .tensor . shared_randomstreams import RandomStreams
22+ from theano .sandbox . rng_mrg import MRG_RandomStreams as RandomStreams
2323
2424#Don't use a python long as this don't work on 32 bits computers.
2525numpy .random .seed (0xbeef )
You can’t perform that action at this time.
0 commit comments