![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
debug
TT小花生
这个作者很懒,什么都没留下…
展开
-
Value passed to parameter ‘x‘ has DataType int32 not in list of allowed values: bfloat16, float16, f
Value passed to parameter ‘x’ has DataType int32 not in list of allowed values: bfloat16, float16, float32, float64, complex64, complex128原代码是这样的:dv=64att = Lambda(lambda x: tf.tensordot(x[0],x[1],axes=[-1,-1])/tf.sqrt(dv),原创 2020-08-06 21:47:54 · 1963 阅读 · 0 评论 -
Error when checking model target: expected no data, but got:‘, array
**Error when checking model target: expected no data, but got:', array**这个问题出现得很奇怪,我用tf.keras搭建了一个model,输入输出的shape都是和我的训练数据及标签相同。均为(None,30,1),但是训练(fit)的时候报了这个错误。我尝试改了几个地方都没效果,后来我想到我的模型里面有膨胀卷积,是不是我的timestep(30)太小了导致的,我把数据的shape改成了(None,128,1),发现错误没有了,可以正常原创 2020-08-01 16:01:00 · 2153 阅读 · 2 评论