Skip to content

Commit 3e62dcd

Browse files
committed
Fix embedding length in tensorboard logs.
1 parent 5a52b4e commit 3e62dcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

train.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def main():
303303
tf.summary.histogram('embedding_pos_dists', pos_dists)
304304
tf.summary.histogram('embedding_neg_dists', neg_dists)
305305
tf.summary.histogram('embedding_lengths',
306-
tf.norm(endpoints['emb_raw'], axis=0))
306+
tf.norm(endpoints['emb_raw'], axis=1))
307307

308308
# Create the mem-mapped arrays in which we'll log all training detail in
309309
# addition to tensorboard, because tensorboard is annoying for detailed

0 commit comments

Comments
 (0)