Skip to content

Commit

Permalink
fix dropout bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuang-Huei Lee authored and Kuang-Huei Lee committed Jun 26, 2018
1 parent 7e3b466 commit 4da7957
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def ref_set_encoder(self, v_S, is_training=True, scope="ref_set_encoder"):
biases_initializer=tf.zeros_initializer())

if is_training:
h = tf.nn.dropout(h0, keep_prob=self.keep_prob)
h0 = tf.nn.dropout(h0, keep_prob=self.keep_prob)

h = tf.contrib.layers.fully_connected(inputs=h0,
num_outputs=256,
Expand Down

0 comments on commit 4da7957

Please sign in to comment.