GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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
Filter options
  • code
    • SdA.py
    • dA.py
    • hmc
      • hmc.py
    • rbm.py
    • rnnrbm.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎code/SdA.py‎

Copy file name to clipboardExpand all lines: code/SdA.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
import theano
4242
import theano.tensor as T
43-
from theano.tensor.shared_randomstreams import RandomStreams
43+
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
4444

4545
from logistic_sgd import LogisticRegression, load_data
4646
from mlp import HiddenLayer
Collapse file

‎code/dA.py‎

Copy file name to clipboardExpand all lines: code/dA.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
import theano
4242
import theano.tensor as T
43-
from theano.tensor.shared_randomstreams import RandomStreams
43+
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
4444

4545
from logistic_sgd import load_data
4646
from utils import tile_raster_images
Collapse file

‎code/hmc/hmc.py‎

Copy file name to clipboardExpand all lines: code/hmc/hmc.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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(
Collapse file

‎code/rbm.py‎

Copy file name to clipboardExpand all lines: code/rbm.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import theano.tensor as T
2121
import os
2222

23-
from theano.tensor.shared_randomstreams import RandomStreams
23+
from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams
2424

2525
from utils import tile_raster_images
2626
from logistic_sgd import load_data
Collapse file

‎code/rnnrbm.py‎

Copy file name to clipboardExpand all lines: code/rnnrbm.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from midi.utils import midiread, midiwrite
2020
import theano
2121
import 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.
2525
numpy.random.seed(0xbeef)

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.