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