torch.Tensor.Tensor.scatter_ Tensor.scatter_(dim: number, index: Tensor, src: Tensor): this In-place scatter operation. Parameters dimnumberDimension to scatter alongindexTensorIndex tensorsrcTensorSource tensor Returns this– This tensor modified in-place See Also PyTorch tensor.scatter_()