Dear all,
I would like to inquire whether it is possible to generate a sub-matrix (2D, torch::Tensor) from a large matrix (torch::Tensor) using a list of row and column indices, such that the sub-matrix serves as a reference to the original matrix rather than a copy. Specifically, I am looking for a solution where any changes made to the sub-matrix directly reflect in the original matrix.
Best, Weitao.