[组合替代实现]torch._foreach_erfc_

torch._foreach_erfc_

torch._foreach_erfc_(self)

Paddle 无此 API,需要组合实现。

转写示例

# PyTorch 写法
torch._foreach_erfc_(tensors)

# Paddle 写法
[paddle.assign(1-paddle.erf(x), x) for x in tensors]