Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 9, 2022
1 parent 211e68e commit 467af91
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ def collate_fn(self, batch, tp_workers=0):
input_ids = copy.deepcopy(orig_input_ids)
answer_starts = copy.deepcopy(orig_answer_starts)


# Pad taskname_ids to be the same length for the prompt encoder
if self.virtual_prompt_source == VirtualPromptSource.PROMPT_ENCODER:
max_taskname_length = max(len(ids) for ids in taskname_ids)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,6 @@ def collate_fn(self, batch):
enc_input = copy.deepcopy(orig_enc_input)
dec_input = copy.deepcopy(orig_dec_input)
dec_labels = copy.deepcopy(orig_dec_labels)


taskname_ids = self.pad_taskname_ids(taskname_ids)

Expand Down

0 comments on commit 467af91

Please sign in to comment.