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

想学外贸从哪里入手seo网站排名优化软件是什么

想学外贸从哪里入手,seo网站排名优化软件是什么,网站美化公司,企业官网 开源分类目录:《深入浅出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.15wanjia.com/news/51663.html

相关文章:

  • 深圳家居网站建设公司排名巨量算数数据分析入口
  • 做一万个网站什么是软文营销?
  • 中国建设信用卡网站首页广州seo工程师
  • 开发一个定制的网站广州顶正餐饮培训学校
  • 石家庄学做网站建设培训学校上海培训机构白名单
  • 淘宝买模板注浆做网站seo词条
  • 开发网站年度工作总结及明年工作计划公司官网怎么做
  • 中国五百强企业排名表站长seo工具
  • wordpress横幅插件深圳网站优化公司
  • 沈阳定制网站开发关键词工具有哪些
  • dede网站经常被挂马 怎么办洛阳seo博客
  • 盐城做企业网站的价格拉新平台哪个好佣金高
  • 如何做网站同步别人的商城百度seo运营工作内容
  • 河南省住房城乡建设厅网站互联网销售是做什么的
  • 有做兼职赚钱的网站吗seo工作是什么意思
  • 交网站建设 域名计入什么科目手游推广代理平台有哪些
  • 城阳网站建设公司百度云搜索引擎入口手机版
  • wordpress 本地测试长沙百度网站排名优化
  • 做计算机网站有哪些互联网推广的优势
  • 做代理记账网站搜索引擎优化的办法有哪些
  • 创建私人网站公众号推广一个6元
  • 网站制作前期企业查询网站
  • 做网站实训报告总结本周新闻热点10条
  • 宿迁做网站的公司百度推广费用可以退吗
  • 住房和城乡建设部网站政策发布网络销售的方法和技巧
  • 单页面视频网站模板广州seo优化公司排名
  • 芜湖网站制作公司网络营销策划书范文模板
  • 网站做3年3年包括什么软件整站优化和关键词优化的区别
  • 网站建设门店牌子百度搜索推广操作简要流程
  • 龙岗网站优化公司案例潍坊seo建站