[ 参数完全一致 ]torch.Tensor.bincount

torch.Tensor.bincount

torch.Tensor.bincount(weights=None, minlength=0)

paddle.Tensor.bincount

paddle.Tensor.bincount(weights=None, minlength=0)

功能一致,参数完全一致,具体如下:

参数映射

PyTorch PaddlePaddle 备注
weights weights 输入 Tensor 中每个元素的权重。
minlength minlength 输出 Tensor 的最小长度。