深入浅出Pytorch函数——torch.exp

分类目录:《深入浅出Pytorch函数》总目录
相关文章:
· 深入浅出TensorFlow2函数——tf.exp
· 深入浅出TensorFlow2函数——tf.math.exp
· 深入浅出Pytorch函数——torch.exp
· 深入浅出PaddlePaddle函数——paddle.exp

对输入input逐元素进行以自然数深入浅出Pytorch函数——torch.exp为底指数运算。

语法

torch.exp(input, *, out=None) → Tensor

参数

  • input:[Tensor] 输入的向量。
  • out :[可选,Tensor] 输出的向量。

返回值

x维度相同、数据类型相同的Tensor

实例

import paddle

>>> torch.exp(torch.tensor([0, math.log(2.)]))
tensor([ 1.,  2.])

文章出处登录后可见!

已经登录?立即刷新

共计人评分,平均

到目前为止还没有投票!成为第一位评论此文章。

(0)
社会演员多的头像社会演员多普通用户
上一篇 2023年7月6日
下一篇 2023年7月6日

相关推荐