Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Puzzled about the attention part #29

Open
JustinLin610 opened this issue Oct 23, 2017 · 1 comment
Open

Puzzled about the attention part #29

JustinLin610 opened this issue Oct 23, 2017 · 1 comment

Comments

@JustinLin610
Copy link

m_C = tf.reduce_sum(m_emb_C * self._encoding, 2)
c_temp = tf.transpose(m_C, [0, 2, 1])

Here in this part, the first line with reduce_sum should turn the matrix into 2-dimension, so I think it won't work for the transposition in the second line. I am not sure if I am getting something wrong

@kodakfu
Copy link

kodakfu commented Apr 18, 2018

  • shape[m_emb_C]=(?,10,7,20)

  • shape[self._encoding]=(7 ,20)

  • shape(m_emb_C * self._encoding)=(?,10,7,20)

  • shape(m_C )= (?,10,20)

  • shape(c_temp)= (?,20,10)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants