Skip to content
Snippets Groups Projects
Commit c169f46a authored by shensq's avatar shensq
Browse files

fix a but that only one clause will be load for a location

parent 0a58afd0
No related branches found
No related tags found
No related merge requests found
......@@ -480,7 +480,7 @@ class GptDataset_KBERT(Dataset):
soft_position_x += list(range(soft_loc, soft_loc + len(utternace_encoded) + 1))
# add the aug, if it is the right place
if len(dq) != 0 and dq[0][0] == i:
while len(dq) != 0 and dq[0][0] == i:
comet_output = dq.popleft()[1]
comet_encoded = self.tokenizer.encode(text_standardize(comet_output))
x += [self.augment] + comet_encoded
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment