function erf_(x) {
    let $x = (0, _tensorUtilEnv.convertToTensor)(x, "x", "erf");
    _util.assert($x.dtype === "int32" || $x.dtype === "float32", ()=>"Input dtype must be `int32` or `float32`.");
    if ($x.dtype === "int32") $x = (0, _cast.cast)($x, "float32");
    const inputs = {
        x: $x
    };
    return (0, _engine.ENGINE).runKernel((0, _kernelNames.Erf), inputs);
}
Computes Gauss error function of the input `tf.Tensor` element-wise:
`erf(x)`

```js
const x = tf.tensor1d([0, .1, -.1, .7]);

x.erf().print(); // or tf.erf(x);
```
@param x The input tensor.

@doc {heading: 'Operations', subheading: 'Basic math'}