![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
NLP
AiBigData
生而有涯,知而无涯.
不断迭代,实现自我.
展开
-
BERT参数量计算
参数详情 说明 参数量 name=bert/embeddings/word_embeddings:0,shape=(30522,768) 单词表每个单词向量长度是768,一共30522个单词 23440896 name=bert/embeddings/token_type_embeddings:0,shape=(2,768) 对于输入的任务是两个句子的,需要两个768维度的向量表示是第一个句子还是第二个句子 1536 name=be...原创 2022-01-22 19:37:26 · 1804 阅读 · 0 评论 -
通过实际案例理解pytorch中lstm使用技巧
import numpy as np import torch from torch import nn import matplotlib.pyplot as plt """ Github: Yonv1943 Zen4 Jia1 hao2 https://github.com/Yonv1943/DL_RL_Zoo/blob/master/RNN The source of training data https://github.com/L1aoXingyu/ code-of-learn-deep转载 2021-05-28 09:11:43 · 729 阅读 · 0 评论