pow
Element-wise power function.
Given one input , this layer calculates
for each element
.
Given two inputs and
, this layer calculates
for each element
(power, scale and shift will be ignored).
Error handling
- CPU naive routine: if the power is a negative integer the result will be 1.0, if it is a fraction the result will be NaN for negative inputs.
- AVX/Neon routines: if the base is negative the result will be 0, if the scale turns x negative the result will be NaN.
Parameter
- power: Number, power value; default value = 1.0
- scale: Number, scale value; default value = 1.0
- shift: Number, shift value; default value = 0.0