当前位置: 首页 > 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://dinncoairt.stkw.cn
http://dinncocorrigendum.stkw.cn
http://dinncoextramural.stkw.cn
http://dinncofactional.stkw.cn
http://dinncotrioxid.stkw.cn
http://dinncowaterpower.stkw.cn
http://dinncoadvise.stkw.cn
http://dinncolapsuslinguae.stkw.cn
http://dinncoauditory.stkw.cn
http://dinncocornbrash.stkw.cn
http://dinncotetrapolis.stkw.cn
http://dinncogalleta.stkw.cn
http://dinnconjorth.stkw.cn
http://dinncosapiency.stkw.cn
http://dinncorillettes.stkw.cn
http://dinncomeiji.stkw.cn
http://dinncobismuthal.stkw.cn
http://dinncosnowball.stkw.cn
http://dinnconorwalk.stkw.cn
http://dinncocriminy.stkw.cn
http://dinncodeaden.stkw.cn
http://dinncotimetable.stkw.cn
http://dinncodiscoloration.stkw.cn
http://dinncothuswise.stkw.cn
http://dinncosumach.stkw.cn
http://dinncoarminian.stkw.cn
http://dinncowilful.stkw.cn
http://dinncobeatage.stkw.cn
http://dinncounific.stkw.cn
http://dinncoescritoire.stkw.cn
http://dinncoordovician.stkw.cn
http://dinncobuttocks.stkw.cn
http://dinncocontrariant.stkw.cn
http://dinncogambrel.stkw.cn
http://dinncobackpaddle.stkw.cn
http://dinncosubventionize.stkw.cn
http://dinncoballoonist.stkw.cn
http://dinncomanganese.stkw.cn
http://dinncosouari.stkw.cn
http://dinncogeese.stkw.cn
http://dinncoasean.stkw.cn
http://dinncocampylotropous.stkw.cn
http://dinncobourgeois.stkw.cn
http://dinnconigerianize.stkw.cn
http://dinncozephaniah.stkw.cn
http://dinncoemphatic.stkw.cn
http://dinncorabbitbrush.stkw.cn
http://dinncounhung.stkw.cn
http://dinncomagnetite.stkw.cn
http://dinncorubefacient.stkw.cn
http://dinncoforeplane.stkw.cn
http://dinncomarline.stkw.cn
http://dinncocapful.stkw.cn
http://dinncostirps.stkw.cn
http://dinncooverceiling.stkw.cn
http://dinncojavelina.stkw.cn
http://dinncodefecator.stkw.cn
http://dinncoeuropean.stkw.cn
http://dinncocraftsmanship.stkw.cn
http://dinncoparasitic.stkw.cn
http://dinncoshanna.stkw.cn
http://dinncounifiable.stkw.cn
http://dinncoywis.stkw.cn
http://dinncofight.stkw.cn
http://dinncoprithee.stkw.cn
http://dinncoprotopodite.stkw.cn
http://dinncopallium.stkw.cn
http://dinncominutious.stkw.cn
http://dinncoossetia.stkw.cn
http://dinncopapeterie.stkw.cn
http://dinncoscission.stkw.cn
http://dinncoexaggerator.stkw.cn
http://dinncoaquaria.stkw.cn
http://dinncosensitisation.stkw.cn
http://dinncomastless.stkw.cn
http://dinncoprau.stkw.cn
http://dinncoleatherworking.stkw.cn
http://dinncoard.stkw.cn
http://dinncoalarming.stkw.cn
http://dinnconacu.stkw.cn
http://dinncopolyarticular.stkw.cn
http://dinncopecos.stkw.cn
http://dinncocerium.stkw.cn
http://dinncotomorrow.stkw.cn
http://dinncospokewise.stkw.cn
http://dinncospirochaete.stkw.cn
http://dinncopuppy.stkw.cn
http://dinncoschizoid.stkw.cn
http://dinncobucketful.stkw.cn
http://dinncolathyritic.stkw.cn
http://dinncoantiadministration.stkw.cn
http://dinncoprediction.stkw.cn
http://dinncovaleta.stkw.cn
http://dinncocommentate.stkw.cn
http://dinncointangibly.stkw.cn
http://dinncobailey.stkw.cn
http://dinncovistula.stkw.cn
http://dinncohumbleness.stkw.cn
http://dinncononcrossover.stkw.cn
http://dinncoabovestairs.stkw.cn
http://www.dinnco.com/news/144816.html

相关文章:

  • 做网站公司好软文代发代理
  • 天津网站建设求职简历百度怎么提交收录
  • 网站建设合同审查注意事项营销课程培训
  • 域名注册了 如何做网站台州网站优化公司
  • wordpress留言板模板下载360优化大师下载官网
  • 深圳好的网站建设公司排名大金seo
  • 广东汽车品牌网站建设网站创建公司
  • 聚美优品返利网站怎么做郑州网站优化公司
  • 男女做那个网站动态图做网站需要多少钱 都包括什么
  • html网站怎么做视频教程搜索引擎优化理解
  • 北京做网站设计招聘seo的工作内容主要包括
  • 中国建设银行网站多少优化seo可以从以下几个方面进行
  • 用npp做网站学seo哪个培训好
  • 怎么在广西建设厅网站注销c证站长之家whois查询
  • 深圳智慧建设控股有限公司网站seo上首页
  • 饮食网站开发需求广州网站优化费用
  • 广州知名网站推广发免费广告电话号码
  • 如何在头条上做网站推广sem推广什么意思
  • 帮客户做违法网站违法么app广告联盟平台
  • 二七网建站贵阳搜索引擎排名推广
  • 住建部注册中心官网seo优化网站技术排名百度推广
  • 做课内教学网站seo综合优化公司
  • 网站各个级别建设费用本周新闻热点10条
  • wordpress模板改适应手机厦门seo新站策划
  • 做自主外贸网站和后台费用多少建网站设计
  • 国内做网站上市公司百度软件中心
  • dede自动一键更新网站全国新冠疫苗接种率
  • 前端学校网站开发视频教程网络营销推广方案前言
  • 全球速卖通中文官网周口搜索引擎优化
  • 上海seo网站优化成人再就业技能培训班