torch._foreach_expm1(self)
Paddle 无此 API,需要组合实现。
# PyTorch 写法 torch._foreach_expm1(tensors) # Paddle 写法 [paddle.expm1(x) for x in tensors]