Skip to content

Commit

Permalink
Fix bitwidth check
Browse files Browse the repository at this point in the history
Fixes issue #23
  • Loading branch information
danieldjohnson committed Jan 9, 2017
1 parent 31360e7 commit 85269e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model.py
Expand Up @@ -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):
Expand Down

0 comments on commit 85269e7

Please sign in to comment.