[ 返回参数类型不一致 ]torch.Tensor.equal
torch.Tensor.equal
torch.Tensor.equal(other)
参数映射
| PyTorch | PaddlePaddle | 备注 |
|---|---|---|
| other | y | 输入 Tensor,仅参数名不一致。 |
| 返回值 | 返回值 | PyTorch 返回 bool 类型,Paddle 返回 0-D bool Tensor,需要转写。 |
torch.Tensor.equal(other)
| PyTorch | PaddlePaddle | 备注 |
|---|---|---|
| other | y | 输入 Tensor,仅参数名不一致。 |
| 返回值 | 返回值 | PyTorch 返回 bool 类型,Paddle 返回 0-D bool Tensor,需要转写。 |