-
Notifications
You must be signed in to change notification settings - Fork 10
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
TypeError: Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64 #4
Comments
是运行到这一行报的错: 编码 两层双向的LSTMx = Bidirectional(LSTM(char_size / 2, return_sequences=True))(x) |
能不能把报错说详细点? 不知道你什么意思 |
报错详情如下: |
这是可能是数据的类型有问题吧。。 你去keras_learning_process这个仓库中去看标题生成的代码。。这个代码应该没问题吧。。 最近很忙,没时间帮你调代码。。 |
感谢你抽空的回复,keras_learning_process这个跑通了,infer的结果很不理想,如下所示,请问你的结果怎么样呢? Epoch 100/100 |
不好意思,我最近特别忙 。。没有时间跑代码给你排错
------------------------------------------------------------------
发件人:FankLi <[email protected]>
发送时间:2019年7月22日(星期一) 09:31
收件人:shawroad/NLP-Project <[email protected]>
抄 送:shawroad <[email protected]>; Comment <[email protected]>
主 题:Re: [shawroad/NLP-Project] TypeError: Value passed to parameter 'shape' has DataType float32 not in list of allowed values: int32, int64 (#4)
感谢你抽空的回复,keras_learning_process这个跑通了,infer的结果很不理想,如下所示,请问你的结果怎么样呢?
Epoch 100/100
。。。。。。。。
1000/1000 [==============================] - 2213s 2s/step - loss: 0.8461
复活天快天负!还发射不能复出请回射及副业长
1月0日战中,方式8LMML光,报争开脸
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
其实,这只适合学习。。实际项目中,这样做还是远远不够的。。 建议你在增加数据集。。因为我的数据集太小。。。 |
运行这个(021-文章标题的自动生成.py)的时候报错,如题
我的环境是python3.6,tensorflow==1.8.0,keras==2.2.4
期待你的回复,谢谢
The text was updated successfully, but these errors were encountered: