
nezha
唐僧爱吃唐僧肉
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
记一次错误的发现logits and labels must have the same first dimension
今天写代码的时候发现一次错误 这里的模型内容定义如下: from nezha import Bert batch_size = 48 bertmodel = 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 · 4151 阅读 · 0 评论 -
shape = (None,3)与shape = (3,)讲解
shape = (None,3)返回的是一个二维的shape,而shape=(3,)返回的是一个一位的3个数值的shape原创 2021-07-20 17:58:57 · 4315 阅读 · 1 评论