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

wordpress xampp建站网站建设合作加盟

wordpress xampp建站,网站建设合作加盟,建设工程质量协会网站,甘肃手机版建站系统信息分类目录#xff1a;《深入浅出Pytorch函数》总目录 相关文章#xff1a; 机器学习中的数学——激活函数#xff1a;Softmax函数 深入浅出Pytorch函数——torch.softmax/torch.nn.functional.softmax 深入浅出Pytorch函数——torch.nn.Softmax 将Softmax函数应用于沿dim的…分类目录《深入浅出Pytorch函数》总目录 相关文章 · 机器学习中的数学——激活函数Softmax函数 · 深入浅出Pytorch函数——torch.softmax/torch.nn.functional.softmax · 深入浅出Pytorch函数——torch.nn.Softmax 将Softmax函数应用于沿dim的所有切片并将重新缩放它们使元素位于 [ 0 , 1 ] [0, 1] [0,1]的范围内并和为1。 语法 torch.softmax(input, dim, *, dtypeNone) - Tensor torch.nn.functional.softmax(input, dimNone, _stacklevel3, dtypeNone) - Tensor参数 input[Tensor] 输入张量dim[int] Softmax函数将沿着dim轴计算即沿dim的每个切片的和为1dtype[可选, torch.dtype] 想要返回张量的数据类型。如果指定则在执行操作之前将输入张量强制转换为dtype。这对于防止数据类型溢出非常有用。默认值为None 返回值 与input具有相同形状且值在[01]范围内的Tensor。 实例 x torch.randn(4, 5)torch.nn.functional.softmax(x, dim0) tensor([[0.4259, 0.5448, 0.1935, 0.3904, 0.1963],[0.1370, 0.1053, 0.1966, 0.2625, 0.4343],[0.0540, 0.2823, 0.5101, 0.2082, 0.0905],[0.3832, 0.0676, 0.0998, 0.1390, 0.2789]]) torch.nn.functional.softmax(x, dim1) tensor([[0.0728, 0.1720, 0.1233, 0.5541, 0.0779],[0.1139, 0.0667, 0.2677, 0.4361, 0.1156],[0.2576, 0.0811, 0.0671, 0.2975, 0.2968],[0.1874, 0.0358, 0.2240, 0.4470, 0.1057]])函数实现 def softmax(input: Tensor, dim: Optional[int] None, _stacklevel: int 3, dtype: Optional[DType] None) - Tensor:rApplies a softmax function.Softmax is defined as::math:\text{Softmax}(x_{i}) \frac{\exp(x_i)}{\sum_j \exp(x_j)}It is applied to all slices along dim, and will re-scale them so that the elementslie in the range [0, 1] and sum to 1.See :class:~torch.nn.Softmax for more details.Args:input (Tensor): inputdim (int): A dimension along which softmax will be computed.dtype (:class:torch.dtype, optional): the desired data type of returned tensor.If specified, the input tensor is casted to :attr:dtype before the operationis performed. This is useful for preventing data type overflows. Default: None... note::This function doesnt work directly with NLLLoss,which expects the Log to be computed between the Softmax and itself.Use log_softmax instead (its faster and has better numerical properties).if has_torch_function_unary(input):return handle_torch_function(softmax, (input,), input, dimdim, _stacklevel_stacklevel, dtypedtype)if dim is None:dim _get_softmax_dim(softmax, input.dim(), _stacklevel)if dtype is None:ret input.softmax(dim)else:ret input.softmax(dim, dtypedtype)return ret
http://www.zqtcl.cn/news/427743/

相关文章:

  • 网站建设流程及规范是做网站设计好还是杂志美编好
  • 网站模板 登陆南昌做网站开发的公司有哪些
  • 移动网站建设是什么商丘哪里教做网站的
  • 网站建设排名的公司江东seo做关键词优化
  • 学习网站开发培训网站内链是什么
  • 中文 域名的网站用wordpress做的网站有哪些
  • 网站建设中需要注意的问题唐山自助建站模板
  • 网站建设捌金手指下拉一重庆 网站定制
  • 网站建设需求调研方法自己做网站要多少钱
  • 北流网站建设公众号开发 表格
  • 做教育类网站一般流程苏宁易购网站风格
  • 兼职网站推广如何做如何用ps做网站
  • 济南外贸网站建设软件公司网站
  • 衡阳做网站注册网站流程
  • 关于网站建设的申请报告wordpress花园网站
  • jsp网站 iis免费企业信息查询
  • 泊头市网站建设公司只有企业自己建立网站平台进行
  • 有阿里云服务器 怎么做网站找广告设计
  • 网站建设 ui设计公司素材网站源码
  • 网站响应式布局wordpress代码混乱
  • 免费建设个人网站四川建设人员信息查询
  • 做国际网站有哪些专门做拼花网站
  • eclipse sdk做网站小程序开发报价明细
  • 网站开发源码售卖合同百度广告投诉电话
  • wordpress读法鄂州seo
  • 网站建设方案的写作方法媒体发稿推广
  • 免费的网站空间注册空壳公司判几年
  • 网站怎么运营推广达美网站建设
  • 江苏建设人才网网站中国最新时事新闻
  • 网站建立时间毕节地seo