srnn icon indicating copy to clipboard operation
srnn copied to clipboard

TypeError: Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64

Open Just4Uzi opened this issue 6 years ago • 5 comments

hi~, 我尝试运行了你的代码,在

embed2 = TimeDistributed(Encoder1)(input2)

这行代码中出现了TypeError: Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64的错误,没有什么头绪,请多多指教,谢谢

Just4Uzi avatar Aug 10 '18 02:08 Just4Uzi

我查了下,好像是tensorflow版本的原因吧~我记得我的tensorflow版本是1.4~希望对你有帮助

zepingyu0512 avatar Aug 15 '18 13:08 zepingyu0512

哦,多谢多谢,我去试试

Just4Uzi avatar Aug 17 '18 01:08 Just4Uzi

I went through the same problem. I tried running it on Tensorflow 1.4.0 and Python 2.7 as it was recommended in this answer and now it's working fine.

ruanchaves avatar Aug 17 '18 11:08 ruanchaves

instead 'MAX_VALUE/64' to 'int(MAX_VALUE/64)', it can work

demonSong avatar Aug 18 '18 01:08 demonSong

@SlashChven @ruanchaves , @demonSong has the answer, hope it will help:)

zepingyu0512 avatar Aug 18 '18 02:08 zepingyu0512