[ 仅参数名不一致 ]torch.Tensor.hsplit¶
api 存在重载情况,分别如下:
torch.Tensor.hsplit¶
torch.Tensor.hsplit(sections)
paddle.Tensor.hsplit¶
paddle.Tensor.hsplit(num_or_indices, name=None)
其中 Paddle 相比 PyTorch 仅参数名不一致,具体如下:
参数映射¶
PyTorch | PaddlePaddle | 备注 |
---|---|---|
sections | num_or_indices | 表示分割的数量,仅参数名不一致。 |
torch.Tensor.hsplit¶
torch.Tensor.hsplit(indices)
paddle.Tensor.hsplit¶
paddle.Tensor.hsplit(num_or_indices, name=None)
其中 Paddle 相比 PyTorch 仅参数名不一致,具体如下:
参数映射¶
PyTorch | PaddlePaddle | 备注 |
---|---|---|
indices | num_or_indices | 表示分割的索引,仅参数名不一致。 |