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

wordpress 数字指纹免费关键词优化工具

wordpress 数字指纹,免费关键词优化工具,wordpress个人收款,网站建设需要几个人分类目录:《深入浅出Pytorch函数》总目录 相关文章: 深入浅出Pytorch函数——torch.nn.init.calculate_gain 深入浅出Pytorch函数——torch.nn.init.uniform_ 深入浅出Pytorch函数——torch.nn.init.normal_ 深入浅出Pytorch函数——torch.nn.init.c…

分类目录:《深入浅出Pytorch函数》总目录
相关文章:
· 深入浅出Pytorch函数——torch.nn.init.calculate_gain
· 深入浅出Pytorch函数——torch.nn.init.uniform_
· 深入浅出Pytorch函数——torch.nn.init.normal_
· 深入浅出Pytorch函数——torch.nn.init.constant_
· 深入浅出Pytorch函数——torch.nn.init.ones_
· 深入浅出Pytorch函数——torch.nn.init.zeros_
· 深入浅出Pytorch函数——torch.nn.init.eye_
· 深入浅出Pytorch函数——torch.nn.init.dirac_
· 深入浅出Pytorch函数——torch.nn.init.xavier_uniform_
· 深入浅出Pytorch函数——torch.nn.init.xavier_normal_
· 深入浅出Pytorch函数——torch.nn.init.kaiming_uniform_
· 深入浅出Pytorch函数——torch.nn.init.kaiming_normal_
· 深入浅出Pytorch函数——torch.nn.init.trunc_normal_
· 深入浅出Pytorch函数——torch.nn.init.orthogonal_
· 深入浅出Pytorch函数——torch.nn.init.sparse_


torch.nn.init模块中的所有函数都用于初始化神经网络参数,因此它们都在torc.no_grad()模式下运行,autograd不会将其考虑在内。

根据Glorot, X.和Bengio, Y.在《Understanding the difficulty of training deep feedforward neural networks》中描述的方法,用一个均匀分布生成值,填充输入的张量或变量。结果张量中的值采样自 U ( − a , a ) U(-a, a) U(a,a),其中:
a = gain × 6 fan_in + fan_put a=\text{gain}\times\sqrt{\frac{6}{\text{fan\_in}+\text{fan\_put}}} a=gain×fan_in+fan_put6

这种方法也被称为Glorot initialization。

语法

torch.nn.init.xavier_uniform_(tensor, gain=1)

参数

  • tensor:[Tensor] 一个 N N N维张量torch.Tensor
  • gain :[float] 可选的缩放因子

返回值

一个torch.Tensor且参数tensor也会更新

实例

w = torch.empty(3, 5)
nn.init.xavier_uniform_(w, gain=nn.init.calculate_gain('relu'))

函数实现

def xavier_uniform_(tensor: Tensor, gain: float = 1.) -> Tensor:r"""Fills the input `Tensor` with values according to the methoddescribed in `Understanding the difficulty of training deep feedforwardneural networks` - Glorot, X. & Bengio, Y. (2010), using a uniformdistribution. The resulting tensor will have values sampled from:math:`\mathcal{U}(-a, a)` where.. math::a = \text{gain} \times \sqrt{\frac{6}{\text{fan\_in} + \text{fan\_out}}}Also known as Glorot initialization.Args:tensor: an n-dimensional `torch.Tensor`gain: an optional scaling factorExamples:>>> w = torch.empty(3, 5)>>> nn.init.xavier_uniform_(w, gain=nn.init.calculate_gain('relu'))"""fan_in, fan_out = _calculate_fan_in_and_fan_out(tensor)std = gain * math.sqrt(2.0 / float(fan_in + fan_out))a = math.sqrt(3.0) * std  # Calculate uniform bounds from standard deviationreturn _no_grad_uniform_(tensor, -a, a)
http://www.zhongyajixie.com/news/38323.html

相关文章:

  • 企业网站建设需要什么在线外链推广
  • wordpress网站翻译插件2021百度模拟点击工具
  • 银川网站建设那家好网络营销主要干什么
  • 高密做网站哪家强代理跨境电商平台排行榜前十名
  • 高德地图怎么没有菲律宾位置商品关键词怎么优化
  • 网站适合用angular做吗客源软件哪个最好
  • 怎么样做购物网站怎么创建自己的网站
  • 做标书有什么好的网站吗搜索引擎优化方法总结
  • 租房子网站怎么做网络营销推广策划方案
  • 静态网页怎么做网站输入关键词自动生成文章
  • 新密做网站推广公司官网开发制作
  • 电商详情做的最好看的网站在线网页制作网站
  • 违反建设投诉网站举报网站应该如何进行优化
  • 做的网站怎么提交到百度上去国际新闻最新消息今天
  • 商城系统网站建设上海优化网站seo公司
  • 产品推广策划案西安关键词seo公司
  • 怎么查看网站快照百度小说官网
  • 河南城乡建设委员会的网站专业的seo排名优化
  • 大宗商品现货交易规则湖南seo优化公司
  • 深圳网页设计培训要多久seo培训班
  • 芜湖网站开发网站如何优化
  • 域名注册好了怎么使用推广网站排名优化seo教程
  • 西安的电商平台网站建设怎么创建一个自己的网站
  • mac上用什么做网站搜索引擎国外
  • 网站建设与管理复习题2024年阳性最新症状
  • 新新手手网网站站建建设设谷歌seo和百度seo
  • 做私活网站河南seo网站多少钱
  • 成立公司注意事项北京seo课程
  • 微信网站建设和维护报价表seo成都培训
  • 苏州那家公司做网站比较好杭州百度推广优化排名