def read_matches_files(data_dir, matches_file):
matches = []<EOL>with open(os.path.join(data_dir, matches_file), '<STR_LIT:r>') as f:<EOL><INDENT>for line in f:<EOL><INDENT>line_split = line.split()<EOL>matches.append([int(line_split[<NUM_LIT:0>]), int(line_split[<NUM_LIT:3>]),<EOL>int(line_split[<NUM_LIT:1>] == line_split[<NUM_LIT:4>])])<EOL><DEDENT><DEDENT>return torch.LongTensor(matches)<EOL>
Return a Tensor containing the ground truth matches
       Read the file and keep only 3D point ID.
       Matches are represented with a 1, non matches with a 0.