[ torch 参数更多 ]torch.Tensor.subtract¶
torch.Tensor.subtract¶
torch.Tensor.subtract(other, *, alpha=1)
参数映射¶
| PyTorch | PaddlePaddle | 备注 | | ————- | ———— | —————————————————— | | other | y | 表示减数的 Tensor,仅参数名不一致。 | | alpha | - | 表示other
的乘数,Paddle 无此参数,需要转写。Paddle 应设置 y = alpha * other。 |