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