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