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

本地网站建设电话品牌营销策略分析论文

本地网站建设电话,品牌营销策略分析论文,做网站需要哪些资料,我想卖自己做的鞋子 上哪个网站好分类目录:《深入浅出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不会将其考虑在内。

根据Saxe, A等人在《Exact solutions to the nonlinear dynamics of learning in deep linear neural networks》中描述的方法,用(半)正交矩阵填充输入的张量或变量。输入张量必须至少是2维的,对于更高维度的张量,超出的维度会被展平,视作行等于第一个维度,列等于稀疏矩阵乘积的2维表示,其中非零元素生成自 N ( 0 , std 2 ) N(0, \text{std}^2) N(0,std2)

语法

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

参数

  • tensor:[Tensor] 一个 N N N维张量torch.Tensor,其中 N ≥ 2 N\geq 2 N2
  • gain:[可选] 比例因子

返回值

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

实例

w = torch.empty(3, 5)
nn.init.orthogonal_(w)

函数实现

def orthogonal_(tensor, gain=1):r"""Fills the input `Tensor` with a (semi) orthogonal matrix, asdescribed in `Exact solutions to the nonlinear dynamics of learning in deeplinear neural networks` - Saxe, A. et al. (2013). The input tensor must haveat least 2 dimensions, and for tensors with more than 2 dimensions thetrailing dimensions are flattened.Args:tensor: an n-dimensional `torch.Tensor`, where :math:`n \geq 2`gain: optional scaling factorExamples:>>> # xdoctest: +REQUIRES(env:TORCH_DOCTEST_LAPACK)>>> w = torch.empty(3, 5)>>> nn.init.orthogonal_(w)"""if tensor.ndimension() < 2:raise ValueError("Only tensors with 2 or more dimensions are supported")if tensor.numel() == 0:# no-opreturn tensorrows = tensor.size(0)cols = tensor.numel() // rowsflattened = tensor.new(rows, cols).normal_(0, 1)if rows < cols:flattened.t_()# Compute the qr factorizationq, r = torch.linalg.qr(flattened)# Make Q uniform according to https://arxiv.org/pdf/math-ph/0609050.pdfd = torch.diag(r, 0)ph = d.sign()q *= phif rows < cols:q.t_()with torch.no_grad():tensor.view_as(q).copy_(q)tensor.mul_(gain)return tensor
http://www.ds6.com.cn/news/20397.html

相关文章:

  • 网站是怎么做新手引导seo搜索优化公司报价
  • 如何仿做网站sem外包
  • WordPress20w文章seo领导屋
  • 怎样制作一个个人网站百度竞价多少钱一个点击
  • 如何做网站备案腾讯nba新闻
  • wp系统网站如何做seo自媒体135的网站是多少
  • 长沙网络营销群潍坊百度快速排名优化
  • 一元购物网站怎么做搜索引擎优化方法与技巧
  • 网站关键词重复北京seo案例
  • 做移动网站优化排名安徽网站优化
  • 做网站公司哪家餐饮营销方案
  • 做网站需要哪些步骤网站改版公司哪家好
  • 标准网站建设哪家好合肥网络推广平台
  • 做网站如何防止被黑国外友链买卖平台
  • 浦东做网站公司网络营销推广
  • 电子商务网站开发与设计建个人网站的详细步骤
  • 新疆建设厅招投标网站小时seo百度关键词点击器
  • 个人空间网站模板必应搜索推广
  • 详情页在线设计网站推荐最近国际时事热点事件
  • 移动端网站电商平台有哪些?
  • 邹城网站建设v556百度集团官网
  • 网站需要证件网站的营销推广
  • 龙华做棋牌网站建设找哪家效益快社群营销的十大案例
  • 戴尔网站建设国内新闻摘抄2022年
  • 微擎pc网站开发seo搜索引擎优化费用
  • WordPress多用户建站小学生关键词大全
  • 做网站按钮互动营销的方式有哪些
  • 用vue做的网站模板windows优化大师收费吗
  • 网站规划开发前景seo推广软件怎样
  • 网站建设一般多少钱郴州网站推广