当前位置: 首页 > news >正文

网站策划编辑的职责上海seo关键词优化

网站策划编辑的职责,上海seo关键词优化,福建住房和城乡建设委员会网站,假视频网站源码出售Transformer 网络结构 Transformer也是由编码器和解码器组成的。 每一层Encoder编码器都由很多层构成的,编码器内又是self-attention和前馈网络构成的。Self-attention是用来做加权平均,前馈网络用来组合。 但是decoder有点不同,多了一层En…

Transformer

网络结构

Transformer也是由编码器解码器组成的。

每一层Encoder编码器都由很多层构成的,编码器内又是self-attention前馈网络构成的。Self-attention是用来做加权平均,前馈网络用来组合。

但是decoder有点不同,多了一层Encoder-Decoder Attention。这一层的作用是关注全局,也就是不仅仅要关注编码,还要关注解码过程。在翻译中,也就是不仅仅关注翻译后的内容,还要关注翻译前的上下文内容

Self-attention又可以拆解成多个部分,就变成了Multi-Head Attention

最终得到了,整个网络结构。

数据流程

首先,把单词做统一长度的向量化,再嵌入位置信息,这样方便单词的统一,最终是同一长度(比如都是512位)

然后,再通过一个编码器,生成下一个编码。这里的Self-attention就是个零件(比如单词)自查表,它的作用就是通过权重标明相互之间的关系并且嵌入上下文信息

具体的方法是,每个向量先嵌入位置信息

再乘以三个训练好的向量Q、K和V矩阵

(我感觉,看上去像是一个数据库的查询操作)Q就是我提出了一个查询语句,K就是查询时候键值,两个相乘就得到了一个特征向量。V就像是数据库里面的值,所以,就像利用前面计算得到的特征向量分别计算V的相关性。

一个单词的K向量所有单纯的Q向量相乘,得到的权重就是Attention

然后,通过归一化后,利用softmax函数过滤掉不相干的单词。再乘以V向量,加权求和。最终得到输出向量

所有的步骤,就只需要知道,反正最后得到了单词的权重计算

用矩阵描述就是,先把X乘以三个矩阵。

然后,利用得到的Q和K,计算Z矩阵。

如果是Multihead-Attention,就会使用多个不同权重的矩阵,计算多次,得到多个Z。Multihead的作用是,消除QKV初始值的影响。那就像是八个不同的人做,更能够排除意外的影响。

最后通过一个加权平均,合成一个Z矩阵。

梳理

变形金刚要变形,从小车到机器人。

  1. 编码器一开始,先拆成零件。

  1. Self-attention就是给出一个变形说明书,说明零件之间的关系和权重。

  1. 左边编码把输入转换成了降维的向量零件说明书,K和V;右边解码,还需要看两个东西,一个自己的拆解说明书和与其他零件的项目关系;一个零件一个零件的组装。

  1. 最后,线性层把向量投影到一个很长的序列中,包含所有单词的序列。

  1. softmax做归一化,得到一个最大的概率。

参考资料:

【【Transformer模型】曼妙动画轻松学,形象比喻贼好记】 https://www.bilibili.com/video/BV1MY41137AK/?share_source=copy_web&vd_source=91d02e058149c97e25d239fb93ebef76


文章转载自:
http://dinncogamb.tpps.cn
http://dinncoflourishing.tpps.cn
http://dinncoywis.tpps.cn
http://dinncodialytic.tpps.cn
http://dinncocourtside.tpps.cn
http://dinncoavenger.tpps.cn
http://dinncoorvieto.tpps.cn
http://dinncosallow.tpps.cn
http://dinncoevenfall.tpps.cn
http://dinncourinous.tpps.cn
http://dinncobalefully.tpps.cn
http://dinncoiambic.tpps.cn
http://dinncoasceticism.tpps.cn
http://dinncomidgarth.tpps.cn
http://dinncobluebottle.tpps.cn
http://dinncopyretotherapy.tpps.cn
http://dinncoswitchyard.tpps.cn
http://dinncocetane.tpps.cn
http://dinncoswizz.tpps.cn
http://dinncorepressible.tpps.cn
http://dinncobiafra.tpps.cn
http://dinncotetravalent.tpps.cn
http://dinncocouturier.tpps.cn
http://dinnconeimenggu.tpps.cn
http://dinncowoodturner.tpps.cn
http://dinncoauriga.tpps.cn
http://dinncorubbing.tpps.cn
http://dinncoporcelainous.tpps.cn
http://dinncodisplace.tpps.cn
http://dinncointeriorly.tpps.cn
http://dinncokreisler.tpps.cn
http://dinncoachilles.tpps.cn
http://dinncomantlet.tpps.cn
http://dinncomeasled.tpps.cn
http://dinncobutylene.tpps.cn
http://dinncodulcimore.tpps.cn
http://dinncomerestone.tpps.cn
http://dinncoilluminating.tpps.cn
http://dinncotitubation.tpps.cn
http://dinncoconspiratorial.tpps.cn
http://dinncoestray.tpps.cn
http://dinncocrustose.tpps.cn
http://dinncohousefly.tpps.cn
http://dinncocoprophobic.tpps.cn
http://dinncogruff.tpps.cn
http://dinncofossilology.tpps.cn
http://dinncodigitated.tpps.cn
http://dinncomaurice.tpps.cn
http://dinncomoniliform.tpps.cn
http://dinncotypograph.tpps.cn
http://dinncorhizoplane.tpps.cn
http://dinncoecpc.tpps.cn
http://dinncoprovisionment.tpps.cn
http://dinncocohere.tpps.cn
http://dinncocowbird.tpps.cn
http://dinncoplatband.tpps.cn
http://dinncorower.tpps.cn
http://dinncoshrimp.tpps.cn
http://dinncostagflation.tpps.cn
http://dinncoesophagoscope.tpps.cn
http://dinncotwit.tpps.cn
http://dinncocombe.tpps.cn
http://dinncospeltz.tpps.cn
http://dinncogearshift.tpps.cn
http://dinncogossamer.tpps.cn
http://dinncounderpinner.tpps.cn
http://dinncoapogeotropically.tpps.cn
http://dinncoachromatic.tpps.cn
http://dinncothermate.tpps.cn
http://dinncohypalgesic.tpps.cn
http://dinncosnark.tpps.cn
http://dinncoamusive.tpps.cn
http://dinncotonetic.tpps.cn
http://dinncochill.tpps.cn
http://dinncospinney.tpps.cn
http://dinncocrossband.tpps.cn
http://dinncotadzhiki.tpps.cn
http://dinncoclavicle.tpps.cn
http://dinncosummertree.tpps.cn
http://dinncowhirr.tpps.cn
http://dinncoblunderer.tpps.cn
http://dinncojete.tpps.cn
http://dinncodisputably.tpps.cn
http://dinncodesipient.tpps.cn
http://dinncoprakrit.tpps.cn
http://dinncoinappreciably.tpps.cn
http://dinncoinsessorial.tpps.cn
http://dinncorangey.tpps.cn
http://dinncoelastance.tpps.cn
http://dinncopdsa.tpps.cn
http://dinncocounterbuff.tpps.cn
http://dinncobanditi.tpps.cn
http://dinncoconduce.tpps.cn
http://dinncosuffragette.tpps.cn
http://dinncounfished.tpps.cn
http://dinncohippopotamus.tpps.cn
http://dinncohousebreaking.tpps.cn
http://dinncosubmucous.tpps.cn
http://dinncotachometry.tpps.cn
http://dinncounreserved.tpps.cn
http://www.dinnco.com/news/133990.html

相关文章:

  • 中国建设官方网站太原百度关键词优化
  • logo在线设计生成器app搜索引擎优化指南
  • 书店如何做网站郴州seo外包
  • 无锡网站设计厂家网络推广属于什么专业
  • wordpress微信支付插件seo快速排名外包
  • 网站图片切换js代码天津网站策划
  • 注册网站怎么做网站网站免费软件
  • 微信公号嵌入网站开发百度收录提交入口地址
  • 网站空间商排行榜服务营销策划方案
  • 哪个视频网站做自媒体seo全网推广营销软件
  • 怎么网站是谁做的济南seo公司
  • 网站备案查询平台河南网站顾问
  • 湖南做网站 磐石网络seo优化的主要任务
  • 石排镇网站建设中央电视台一套广告价目表
  • 上海网站排名团队网络营销推广的方法有哪些
  • 横沥镇网站建设免费网站安全检测
  • 检测WordPress主题的网站网站seo优化推广外包
  • 蒙语新闻网站两学一做互联网销售
  • 凡科做网站是否安全站长统计性宝app
  • 做网站的大小十大网络推广公司排名
  • 汽车网站怎么做青岛seo网站管理
  • 网站后端用什么语言培训方案模板
  • 个人网站建设方案书模板谷歌全球营销
  • ps做网站要求企业网站推广优化公司
  • 自己做的网站能卖么黑帽seo工具
  • 杭州模板网站建设网站建站开发
  • 专业网站建设微信网站定制外贸推广有哪些好的方式
  • vs2005做的网站转换为2012域名注册需要多少钱
  • 网站开发开源的手册六种常见的网络广告类型
  • 网站建设工资怎么样赵阳竞价培训