PKU-RL / DGN

DGN Code
333 stars 89 forks source link

attention计算维度不匹配? #9

Open wang88256187 opened 4 years ago

wang88256187 commented 4 years ago

battle场景中,我为啥老报错Can not do batch_dot on inputs with shapes (None, 8, 4, 8, 4) and (None, 8, 4, 16) with axes=[3, 2]. x.shape[3] != y.shape[2] (8 != 4).第

yinjiangjin commented 4 years ago

pip install keras==2.0.8

yinjiangjin commented 4 years ago

keras的版本不对。如果你能够在不修改keras版本的情况下解决,麻烦指点一下

Amarantine30 commented 4 years ago

battle场景中,我为啥老报错Can not do batch_dot on inputs with shapes (None, 8, 4, 8, 4) and (None, 8, 4, 16) with axes=[3, 2]. x.shape[3] != y.shape[2] (8 != 4).第

请问你最后是怎么解决这个维度问题的,keras版本改变好像其他部分就不能运行了吧?

tianz1990 commented 4 years ago

battle场景中,我为啥老报错Can not do batch_dot on inputs with shapes (None, 8, 4, 8, 4) and (None, 8, 4, 16) with axes=[3, 2]. x.shape[3] != y.shape[2] (8 != 4).第

请问你最后是怎么解决这个维度问题的,keras版本改变好像其他部分就不能运行了吧?

请问你问题解决了吗?我也一直遇到这个问题