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

昆山设计网站公司手把手教建设网站

昆山设计网站公司,手把手教建设网站,做网站如何,wordpress close分类目录#xff1a;《深入浅出Pytorch函数》总目录 相关文章#xff1a; 深入浅出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, groups1)参数 tensor[Tensor] 一个3~5维张量torch.Tensorgroups[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, groups1):rFills the {3, 4, 5}-dimensional input Tensor with the Diracdelta function. Preserves the identity of the inputs in Convolutionallayers, where as many input channels are preserved as possible. In caseof groups1, each group of channels preserves identityArgs:tensor: a {3, 4, 5}-dimensional torch.Tensorgroups (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.w-s-a.com/news/985308/

相关文章:

  • 网站建设的基本技术步骤无网站营销
  • 我国旅游网站的建设网站开发 混合式 数据库
  • 淘宝客网站域名家居网站开发项目计划书
  • 网站打不开显示asp苏州注册公司需要多少钱
  • 凡科建站登录官网wordpress主题有什么用
  • 西安双语网站建设怎么做网页动图
  • 宝安自适应网站建设无锡新区企业网站推广
  • 肇庆建设局网站cpanel 安装wordpress
  • 长春启做网站多少怎样换wordpress域名
  • 山西网站建设情况汇总vs2010 c 建设网站
  • 网站推广策划书 精品深圳市住建局和建设局官网
  • 住房和城乡建设部干部学院网站一般做公司网站需要哪几点
  • 网站制作流程详解(学做网站第一步)免费个人网站模版ps
  • 狮山网站建设公司微信平台软件开发
  • 绥芬河网站建设学网站开发的能找什么工作
  • 网站域名申请之后如何做网站微信公众号网页版登录入口
  • 网站优化图片省级精品课程网站
  • 婚纱摄影的网站模板怎么做网站自己当站长
  • 江西建设部网站wordpress弹出式广告
  • 工商年检在哪个网站做中国建设银行个人登录
  • seo做网站郑州巩义网站建设
  • 建设银行网站机构特点业务发展网站推广工作计划
  • 国家信用信息系统年报seo推广赚钱
  • 公司建设网站价格表广州免费拍卖公司
  • 知行网站建设wordpress文章半透明
  • 建设网站的虚拟机配置建设银行宁波分行招聘网站
  • 济南网站开发xywlcn网络推广服务合同模板
  • 品牌网站制作流程图用asp做网站题目
  • 兰州市建设厅网站河南网站建设问一问公司
  • 高档网站建设前端网站大全