Function dfdx::tensor_ops::exp

source ·
pub fn exp<S: Shape, E: Dtype, D: UnaryKernel<ExpKernelOp, E>, T: Tape<E, D>>(
    t: Tensor<S, E, D, T>
) -> Tensor<S, E, D, T>
Expand description

Exponential function (exp). e^t

It’s derivative is itself! e^t.

Examples:

let t = dev.tensor([-1.0, 0.0, 1.0, 2.0]);
let r = t.exp();