torch.exp
- torch.exp(input, *, out=None) → Tensor
Returns a new tensor with the exponential of the elements of the input tensor
input.
Returns a new tensor with the exponential of the elements
of the input tensor input.
Example:
>>> torch.exp(torch.tensor([0, math.log(2.)]))
tensor([ 1., 2.])