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

Masking error #4

Open
alina-le opened this issue Jan 24, 2020 · 3 comments
Open

Masking error #4

alina-le opened this issue Jan 24, 2020 · 3 comments

Comments

@alina-le
Copy link

Trying to run the network in Google Colab, throws an error due to the mask dimensions:

Bildschirmfoto 2020-01-24 um 09 52 10

Running it on the computer returns
ValueError: Dimensions must be equal, but are 15 and 100 for 'hierarchical_attention_network_2/mul' (op: 'Mul') with input shapes: [?,15], [?,15,100].

Any help on how to fix this much appreciated,
Cheers!

@yufengjiao
Copy link

Trying to run the network in Google Colab, throws an error due to the mask dimensions:

Running it on the computer returns
ValueError: Dimensions must be equal, but are 15 and 100 for 'hierarchical_attention_network_2/mul' (op: 'Mul') with input shapes: [?,15], [?,15,100].
Any help on how to fix this much appreciated,
Cheers!

I have met the same problem, somebody comes to help me!

@killerB97
Copy link

removing 'mask_zero=True' in the embedding layer definition fixed the error for me. Hope it helps!

@UrszulaCzerwinska
Copy link

Hi, it fixed the problem but the model predicts padding (0 class). Any explanation for this ?

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

4 participants