def erfinv(x, name="<STR_LIT>"):
with tf.name_scope(name):<EOL><INDENT>x = tf.convert_to_tensor(value=x, name="<STR_LIT:x>")<EOL>if dtype_util.as_numpy_dtype(x.dtype) not in [np.float32, np.float64]:<EOL><INDENT>raise TypeError("<STR_LIT>"<EOL>"<STR_LIT>".format(dtype_util.name(x.dtype)))<EOL><DEDENT>return ndtri((x + <NUM_LIT:1.>) / <NUM_LIT>) / np.sqrt(<NUM_LIT>)<EOL><DEDENT>
The inverse function for erf, the error function.

    Args:
      x: `Tensor` of type `float32`, `float64`.
      name: Python string. A name for the operation (default="erfinv").

    Returns:
      x: `Tensor` with `dtype=x.dtype`.

    Raises:
      TypeError: if `x` is not floating-type.