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