TensorPlay
latest (dev)
Copy
View Markdown

Latest development documentation · Updated 2026-10-15

tensorplay.functional.exp

tensorplay.functional.exp(input, *, out=None) → Tensor[source]

Returns a new tensor with the exponential of the elements of the input tensor input.

yi=exiy_{i} = e^{x_{i}}
Parameters:

input (Tensor) – the input tensor.

Keyword Arguments:

out (Tensor, optional) – the output tensor.

Example:

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

On this page

Ask DeepWiki