Function dfdx::tensor_ops::powf
source · pub fn powf<S: Shape, E: Dtype, D: UnaryKernel<PowfKernelOp<E>, E>, T: Tape<E, D>>(
t: Tensor<S, E, D, T>,
exponent: impl Into<f64>
) -> Tensor<S, E, D, T>
Expand description
Raises to a float power; t^i
.
let t = dev.tensor([-1.0, 0.0, 1.0, 2.0]);
let r = t.powf(-3.2);