You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when compute x = (1/N) sum_i xi, I notice that you use tf.reduce_mean(input_vectors, axis = 1).
However, N in the formula is the length of sentence, but tf.reduce_mean compute x use the length of sentence after padding.
So, the correct method to compute x should be sum(x)/len(x).
The text was updated successfully, but these errors were encountered:
ZhuYuHe
changed the title
关于 tf.reduce_mean(input_vectors, axis = 1)
About "tf.reduce_mean(input_vectors, axis = 1)"
Mar 1, 2018
when compute x = (1/N) sum_i xi, I notice that you use tf.reduce_mean(input_vectors, axis = 1).
However, N in the formula is the length of sentence, but tf.reduce_mean compute x use the length of sentence after padding.
So, the correct method to compute x should be sum(x)/len(x).
The text was updated successfully, but these errors were encountered: