Permalink
Browse files

Fix bitwidth check

Fixes issue #23
  • Loading branch information...
1 parent 31360e7 commit 85269e73839ba4463ee3e1ee0e370eda50df8aa5 @hexahedria committed Jan 9, 2017
Showing with 1 addition and 1 deletion.
  1. +1 −1 model.py
View
@@ -16,7 +16,7 @@ def has_hidden(layer):
def matrixify(vector, n):
# Cast n to int32 if necessary to prevent error on 32 bit systems
return T.repeat(T.shape_padleft(vector),
- n if (theano.gof.local_bitwidth() == 64) else T.cast(n,'int32'),
+ n if (theano.configdefaults.local_bitwidth() == 64) else T.cast(n,'int32'),
axis=0)
def initial_state(layer, dimensions = None):

0 comments on commit 85269e7

Please sign in to comment.