PyTorch torch.erfc Function
PyTorch torch Reference Manual
torch.erfcis a function in PyTorch used to compute the complementary error function element-wise.
Function Definition
torch.erfc(input, *, out=None)
Usage Example
Example
import torch
# Complementary Error Function Example
x = torch.tensor([0, 0.5, 1.0, 2.0], dtype=torch.float32)
result = torch.erfc(x)
print(result) # tensor([1.0000, 0.4795, 0.1573, 0.0047])
# Complementary Error Function Example
x = torch.tensor([0, 0.5, 1.0, 2.0], dtype=torch.float32)
result = torch.erfc(x)
print(result) # tensor([1.0000, 0.4795, 0.1573, 0.0047])
Other Extensions