srnn
srnn copied to clipboard
TypeError: Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64
hi~, 我尝试运行了你的代码,在
embed2 = TimeDistributed(Encoder1)(input2)
这行代码中出现了TypeError: Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64的错误,没有什么头绪,请多多指教,谢谢
我查了下,好像是tensorflow版本的原因吧~我记得我的tensorflow版本是1.4~希望对你有帮助
哦,多谢多谢,我去试试
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.
instead 'MAX_VALUE/64' to 'int(MAX_VALUE/64)', it can work
@SlashChven @ruanchaves , @demonSong has the answer, hope it will help:)