tensorflow学习
ZXLSN
这个作者很懒,什么都没留下…
展开
-
学习keras问题之二:Invalid reduction dimension 2 for input with 2 dimensions.
今天又遇到学习keras的一个坑,ValueError: Invalid reduction dimension 2 for input with 2 dimensions. for 'model_3/sequential_2/lstm_4/Sum' (op: 'Sum') with input shapes: [?,100], [2] and with computed input tensors: input[1] = <1 2>.翻译过来的意思大致是:输入数据的维度与模型的输入维度原创 2020-12-23 16:32:13 · 3217 阅读 · 2 评论 -
写一个自己的batch函数
学术渣滓在自己改代码的时候遇到了一个大问题。从github上下载下来的代码用的训练集大多数都是minst集。如果想用这个代码训练自己的数据,就需要自己动动手改代码。一切进行的都很顺利,把所有有minst集的地方都改成自己的数据集就可以了。最后我发现了一个大问题,我的batch需要自己写。本来想着抄minst的作业,查了一下参考的minst集是怎么做的,这个居然是TensorFlow自己写好的。自己...原创 2020-04-13 18:31:11 · 1091 阅读 · 1 评论