[ 仅参数名不一致 ]torch.hsplit

api 存在重载情况,分别如下:


torch.hsplit

torch.hsplit(input,
        sections)

paddle.hsplit

paddle.hsplit(x,
        num_or_indices,
        name=None)

其中 Paddle 相比 PyTorch 仅参数名不一致,具体如下:

参数映射

PyTorch       PaddlePaddle 备注                                                  
input            x           输入多维 Tensor ,仅参数名不一致。  
sections           num_or_indices         表示分割的数量,仅参数名不一致。                          

torch.hsplit

torch.hsplit(input,
        indices)

paddle.hsplit

paddle.hsplit(x,
        num_or_indices,
        name=None)

其中 Paddle 相比 PyTorch 仅参数名不一致,具体如下:

参数映射

PyTorch       PaddlePaddle 备注                                                  
input            x           输入多维 Tensor ,仅参数名不一致。  
indices           num_or_indices         表示分割的数量,仅参数名不一致。