exp

nvtripy.exp(input: Tensor) Tensor[source]

Computes the elementwise exponential of the elements of the input tensor:

\(\text{exp}(x_{i}) = e^{x_{i}}\)

Parameters:

input (Tensor) – [dtype=T1] The input tensor.

Returns:

[dtype=T1] A new tensor.

Return type:

Tensor

TYPE CONSTRAINTS:
Example
1input = tp.arange(3, dtype=tp.float32)
2output = tp.exp(input)
Local Variables
>>> input
tensor([0.0000, 1.0000, 2.0000], dtype=float32, loc=gpu:0, shape=(3,))

>>> output
tensor([1.0000, 2.7183, 7.3891], dtype=float32, loc=gpu:0, shape=(3,))