https://devhubby.com/thread/how-to-index-a-tensor-in-pytorch