Skip to content

Commit

Permalink
dynet-849. Fix GRUBuilder self._spec bug. (#851)
Browse files Browse the repository at this point in the history
Former-commit-id: 87df341
  • Loading branch information
xunzhang committed Sep 2, 2017
1 parent 86c05a4 commit 59b77f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/_dynet.pyx
Expand Up @@ -4141,7 +4141,7 @@ cdef class GRUBuilder(_RNNBuilder): # {{{
cdef CGRUBuilder* thisgruptr
cdef tuple _spec
def __cinit__(self, unsigned layers, unsigned input_dim, unsigned hidden_dim, ParameterCollection model):
_spec = (layers, input_dim, hidden_dim)
self._spec = (layers, input_dim, hidden_dim)
if layers > 0:
self.thisgruptr = self.thisptr = new CGRUBuilder(layers, input_dim, hidden_dim, model.thisptr)
else:
Expand Down

0 comments on commit 59b77f7

Please sign in to comment.