Skip to main content

Mojo function

erf

erf(value: Symbol) -> Symbol

Computes the elementwise error function of a symbolic tensor.

Creates a new op node to compute the elementwise error function of a symbolic tensor and adds it to the graph, returning the symbolic result.

The error function erf is defined as the probability that a randomly sampled normal distribution falls within a given range. See Error function for more details.

Args:

  • value (Symbol): The symbolic tensor to use as the input to the error function computation.

Returns:

A new symbolic tensor value representing the output of the absolute value computation.

Raises:

If the symbol doesn't represent a tensor value.