For the document example:
x = torch.rand(2, 5)
torch.zeros(3, 5).scatter_(0, torch.tensor([[0, 1, 2, 0, 0], [2, 0, 0, 1, 2]]), x)

there is no problem, however if the code snippet is changed to
x = torch.rand(2, 5)
torch.Tensor.scatter(0, torch.tensor([[0, 1, 2, 0, 0], [2, 0, 0, 1, 2]]), x)

Error raised as TypeError: descriptor 'scatter' requires a 'torch._C._TensorBase' object but received a 'int'