Skip to content

Commit

Permalink
Merge pull request #44 from FredericGodin/master
Browse files Browse the repository at this point in the history
Added trainable=True. Otherwise hid_init is trained.
  • Loading branch information
ebenolson committed Feb 9, 2016
2 parents 929850b + cf1fcc4 commit 8b78ab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/lstm_text_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def main(num_epochs=NUM_EPOCHS):
cost = T.nnet.categorical_crossentropy(network_output,target_values).mean()

# Retrieve all parameters from the network
all_params = lasagne.layers.get_all_params(l_out)
all_params = lasagne.layers.get_all_params(l_out,trainable=True)

# Compute AdaGrad updates for training
print("Computing updates ...")
Expand Down

0 comments on commit 8b78ab8

Please sign in to comment.