Where can I get the information about {Tensor}.index_fill_() function?

I saw the code using {Tensor}.index_fill_()link. But It’s hard to find the information about the function.

Can anyone explain this function?

Thanks ahead.

https://pytorch.org/docs/stable/tensors.html?highlight=index_fill_#torch.Tensor.index_fill_

1 Like