You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dst_idx=dst_idx+torch.arange(0, dst_idx.shape[0], dtype=dst_idx.dtype, device=dst_idx.device).unsqueeze(-1) * (max_num_in_dst_idx+1) # So that different rows will have different values
307
307
dst_idx[ignore_mask] =dst_idx[0][0].item() # So that these `-1`s won't affect the count of unique numbers
0 commit comments