Is this mask_index[draft_parents == 0] = -1 a scatter

    mask_index[draft_parents == 0] = -1

Can this pytorch code be rewritten as torch.scatter operation?