PPVAE icon indicating copy to clipboard operation
PPVAE copied to clipboard

Value Error

Open annatn998 opened this issue 4 years ago • 0 comments

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.

annatn998 avatar Jul 10 '21 21:07 annatn998