Skip to content

Commit 2eb32d0

Browse files
committed
fix rnnrbm import on 32bits python.
1 parent 5c0f472 commit 2eb32d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

code/rnnrbm.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
import theano.tensor as T
1919
from theano.tensor.shared_randomstreams import RandomStreams
2020

21-
numpy.random.seed(0xdeadbeef)
21+
#Don't use a python long as this don't work on 32 bits computers.
22+
numpy.random.seed(0xbeef)
2223
rng = RandomStreams(seed=numpy.random.randint(1 << 30))
2324
theano.config.warn.subtensor_merge_bug = False
2425

0 commit comments

Comments
 (0)