erf¶
- paddle.fluid.layers.ops. erf ( x, name=None ) [source]
- 
         Erf Operator For more details, see [Error function](https://en.wikipedia.org/wiki/Error_function). - Equation:
- 
           \[\begin{split}out = \\frac{2}{\\sqrt{\\pi}} \\int_{0}^{x}e^{- \\eta^{2}}d\\eta\end{split}\]
 - Parameters
- 
           x (Tensor) – The input tensor, it’s data type should be float32, float64. 
- Returns
- 
           The output of Erf op, dtype: float32 or float64, the same as the input, shape: the same as the input. 
- Return type
- 
           Tensor 
 Examples import paddle x = paddle.to_tensor([-0.4, -0.2, 0.1, 0.3]) out = paddle.erf(x) print(out) # [-0.42839236 -0.22270259 0.11246292 0.32862676] 
