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

Value Error #6

Open
annatn998 opened this issue Jul 10, 2021 · 0 comments
Open

Value Error #6

annatn998 opened this issue Jul 10, 2021 · 0 comments

Comments

@annatn998
Copy link

Hi! I'm trying to use the PPVAE with my own dataset, which is just at .txt file of sentences each one on a new line:

ex:

sentence1
sentence2
sentence3

etc.

Everything runs ok up until this line the pretrainVAE.py code:

decoder_h_attn = Attention(head_num, head_size[layer], max_len)([decoder_h, decoder_h, decoder_h])

Then I get the error:

ValueError: Dimensions must be equal, but are 8 and 17 for 'attention_4/sub_1' (op: 'Sub') with input shapes: [?,8,8,?], [1,17,17,1].

I would really love to learn how to use this if you could help me.

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

1 participant