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