[ 组合替代实现 ]torch.Tensor.xlogy

torch.Tensor.xlogy

torch.Tensor.xlogy(other)

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

转写示例

# PyTorch 写法
y = a.xlogy(b)

# Paddle 写法
y = a * paddle.log(b)