Skip to content

Commit

Permalink
Merge pull request #987 from sotelo/small_fix_attention
Browse files Browse the repository at this point in the history
One line change: Added the glimpses to the list of final values saved in the auxiliary variables.
  • Loading branch information
rizar committed Feb 15, 2016
2 parents b5755b5 + 2c8d427 commit 23ba43c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/bricks/sequence_generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def cost_matrix(self, application_call, outputs, mask=None, **kwargs):

# This variables can be used to initialize the initial states of the
# next batch using the last states of the current batch.
for name in self._state_names:
for name in self._state_names + self._glimpse_names:
application_call.add_auxiliary_variable(
results[name][-1].copy(), name=name+"_final_value")

Expand Down

0 comments on commit 23ba43c

Please sign in to comment.