![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nezha
唐僧爱吃唐僧肉
这个作者很懒,什么都没留下…
展开
-
记一次错误的发现logits and labels must have the same first dimension
今天写代码的时候发现一次错误这里的模型内容定义如下:from nezha import Bertbatch_size = 48bertmodel = Bert(maxlen=max_seq_len,batch_size=batch_size,**config)input_ids1 = keras.layers.Input(shape=(None,),dtype='int32',name="token_ids1")input_ids2 = keras.layers.Input(shape=(Non原创 2021-07-20 22:36:44 · 3851 阅读 · 0 评论 -
shape = (None,3)与shape = (3,)讲解
shape = (None,3)返回的是一个二维的shape,而shape=(3,)返回的是一个一位的3个数值的shape原创 2021-07-20 17:58:57 · 4149 阅读 · 1 评论