Rate this Page

torch.foreach.erf#

torch.foreach.erf(inputs: TensorList, /) tuple[Tensor, ...][source]#

Applies torch.erf() to each tensor in inputs.

This is semantically equivalent to applying torch.erf() independently at every list position. Does not mutate its arguments and returns a tuple of result tensors.

Tensor-list arguments must be non-empty. An accelerated multi-tensor implementation is used only when supported by the inputs; otherwise the operation falls back to per-tensor execution.

Parameters:

inputs (list or tuple of Tensor) – tensors to transform.

Returns:

a tuple containing one result tensor for each input tensor.