We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ValueError: Dimension must be 5 but is 4 for 'attention_1/transpose_7' (op: 'Transpose') with input shapes: [?,8,?,8,?], [4].
请问这个怎么解决 run example https://kexue.fm/archives/4765 代码测试 在Keras上对IMDB进行简单的测试
The text was updated successfully, but these errors were encountered:
个人经验: 将a = K.batch_dot(qw, kw, [3, 3]) / self.key_size**0.5 改为a = tf.einsum('bjhd,bkhd->bhjk', qw, kw) / self.key_size**0.5
a = K.batch_dot(qw, kw, [3, 3]) / self.key_size**0.5
a = tf.einsum('bjhd,bkhd->bhjk', qw, kw) / self.key_size**0.5
将o = K.batch_dot(a, vw, [3, 2]) 改为o = tf.einsum('bhjk,bkhd->bjhd', a, vw) 主要是keras版本变动导致广播方式不一样了
o = K.batch_dot(a, vw, [3, 2])
o = tf.einsum('bhjk,bkhd->bjhd', a, vw)
Sorry, something went wrong.
个人经验: 将a = K.batch_dot(qw, kw, [3, 3]) / self.key_size**0.5 改为a = tf.einsum('bjhd,bkhd->bhjk', qw, kw) / self.key_size**0.5 将o = K.batch_dot(a, vw, [3, 2]) 改为o = tf.einsum('bhjk,bkhd->bjhd', a, vw) 主要是keras版本变动导致广播方式不一样了
有用
No branches or pull requests
ValueError: Dimension must be 5 but is 4 for 'attention_1/transpose_7' (op: 'Transpose') with input shapes: [?,8,?,8,?], [4].
请问这个怎么解决 run example
https://kexue.fm/archives/4765
代码测试
在Keras上对IMDB进行简单的测试
The text was updated successfully, but these errors were encountered: