I have a tensor mxm and I want to roll each row according to a specific, computed amount (for an easy example: (row_index // 3)). I have tried using torch.roll, but it appears to roll only across a complete axis and not along a specific dimension.
Any ideas?