Calculate the error function (Wikipedia entry) for each element in a Tensor. There is a method version of this static function: Tensor.erf.
$$\frac{2}{\sqrt{\pi}}\int_0^{x} e^{-t^2} dt : \forall x \in T$$
const t = sm.randn([1337]) // equivalent calls const a = t.erf() const b = sm.erf(t)
Tensor whose values will have their error function calculated
Generated using TypeDoc
Calculate the error function (Wikipedia entry) for each element in a Tensor. There is a method version of this static function: Tensor.erf.
$$\frac{2}{\sqrt{\pi}}\int_0^{x} e^{-t^2} dt : \forall x \in T$$
Example
Returns