Skip to content

Commit

Permalink
Merge pull request #677 from ufal/name_fix
Browse files Browse the repository at this point in the history
Fixing back the variable names in the decoder
  • Loading branch information
jlibovicky committed Mar 21, 2018
2 parents 46d816b + d7e8be0 commit 5686ac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neuralmonkey/decoders/autoregressive.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,15 @@ def decoding_w(self) -> tf.Variable:
return tf.transpose(self.embedding_matrix)

return get_variable(
"logit_matrix",
"state_to_word_W",
[self.output_dimension, len(self.vocabulary)],
initializer=tf.glorot_uniform_initializer())

@tensor
def decoding_b(self) -> tf.Variable:
with tf.name_scope("output_projection"):
return get_variable(
"logit_bias", [len(self.vocabulary)],
"state_to_word_b", [len(self.vocabulary)],
initializer=tf.zeros_initializer())

@tensor
Expand Down

0 comments on commit 5686ac8

Please sign in to comment.