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

global_attention_3d error #18

Open
chaoshunh opened this issue Mar 11, 2021 · 1 comment
Open

global_attention_3d error #18

chaoshunh opened this issue Mar 11, 2021 · 1 comment

Comments

@chaoshunh
Copy link

it should be

new_shape = tf.concat([tf.shape(input=q)[0:-1],[v.shape[-1]]],0)

instead of

new_shape=tf.concat([tf.shape(input=q)[0:-1],[v.shape[-1].value]],0)

@kkedich
Copy link

kkedich commented Feb 11, 2024

Yeah, v is a tensor at this stage, so I did not found as well v.shape having a value attribute.

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