当前位置: 首页 > 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不会将其考虑在内。

该函数用 Dirac δ \text{Dirac}\delta Diracδ 函数来填充3-5维输入张量或变量,在卷积层尽可能多的保存输入通道特征。

语法

torch.nn.init.dirac_(tensor, groups=1)

参数

  • tensor:[Tensor] 一个3~5维张量torch.Tensor
  • groups:[int] conv层中的组数,默认值为1

返回值

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

实例

w = torch.empty(3, 16, 5, 5)
nn.init.dirac_(w)
w = torch.empty(3, 24, 5, 5)
nn.init.dirac_(w, 3)

函数实现

def dirac_(tensor, groups=1):r"""Fills the {3, 4, 5}-dimensional input `Tensor` with the Diracdelta function. Preserves the identity of the inputs in `Convolutional`layers, where as many input channels are preserved as possible. In caseof groups>1, each group of channels preserves identityArgs:tensor: a {3, 4, 5}-dimensional `torch.Tensor`groups (int, optional): number of groups in the conv layer (default: 1)Examples:>>> w = torch.empty(3, 16, 5, 5)>>> nn.init.dirac_(w)>>> w = torch.empty(3, 24, 5, 5)>>> nn.init.dirac_(w, 3)"""dimensions = tensor.ndimension()if dimensions not in [3, 4, 5]:raise ValueError("Only tensors with 3, 4, or 5 dimensions are supported")sizes = tensor.size()if sizes[0] % groups != 0:raise ValueError('dim 0 must be divisible by groups')out_chans_per_grp = sizes[0] // groupsmin_dim = min(out_chans_per_grp, sizes[1])with torch.no_grad():tensor.zero_()for g in range(groups):for d in range(min_dim):if dimensions == 3:  # Temporal convolutiontensor[g * out_chans_per_grp + d, d, tensor.size(2) // 2] = 1elif dimensions == 4:  # Spatial convolutiontensor[g * out_chans_per_grp + d, d, tensor.size(2) // 2,tensor.size(3) // 2] = 1else:  # Volumetric convolutiontensor[g * out_chans_per_grp + d, d, tensor.size(2) // 2,tensor.size(3) // 2, tensor.size(4) // 2] = 1return tensor
http://www.yayakq.cn/news/876585/

相关文章:

  • 实名认证域名可以做电影网站吗闵行网页设计师
  • 大庆开发网站公司多仓库版仓库管理网站建设源码
  • 外贸网站建设的好处wordpress如何建栏目
  • 体育网站建设方案留言板网站建设总结
  • 邵阳 网站开发 招聘app商城网站开发
  • 建筑人才网官方网站中国建筑科学院有限公司认证中心深圳响应式网站建设哪家好
  • 做网站会用到的代码单词前端seo优化
  • 上市的网站设计公司wordpress 导购站模板
  • 成都php网站制作程序员h5设计平台
  • 江都城乡建设局网站水处理网站模板
  • 盐城建设银行招聘网站设计师常用的设计软件有哪些
  • 门户网站建设报告郴州市网站建设科技
  • 如何在eclipse上做网站网络推广怎么做最有效
  • 网站的运营方式宁夏网站seo
  • 上海网站制作价格百度竞价托管公司
  • 企业网站上海 优帮云百度搜索资源平台官网
  • 做建材上哪个网站比较好湖北省住房与建设厅网站
  • 教育培训类网站建设模板建设银行资讯网站
  • 学校网站怎么做推广网站建设的架构
  • 大团网站建设高端网站建设流行风
  • 网站只做程序员网络培训是什么意思
  • 做网站横幅价格做网站公司介绍ppt
  • 自治区住房和城乡建设厅网站app开发网站建设及开发
  • 电商网站开发报价单开发公司资质质量体系
  • 上海部道网站 建设ps详情页模板
  • 亚马逊海外网站电子商务网站建设汉狮
  • 建设银行网络学习网站千图网背景图片大全
  • 国内免费推广产品的网站最牛餐饮营销手段
  • 上海网站开发公司外包网站源码 免费下载
  • wordpress博客优点惠州seo全网营销