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