If I have the indices stored in a file as list, so it will be like a text file full of lists where each list consists of 4 pair values (x1, y1), (x2, y2), (x3, y3), (x4, y4). So I can read these 4 pairs from the files use each of them as indices for each of thensor using the gather method and then apply the loss?
Sorry for being naive, but will this create any severe speed issues due to the file access?