Skip to content

Commit

Permalink
update python format
Browse files Browse the repository at this point in the history
  • Loading branch information
PeixuanZuo committed Feb 1, 2024
1 parent b5cd733 commit f793e4f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def _make_causal_mask(

correct_mask = np.full((seqence_length, total_sequence_length), 1)
for i in range(seqence_length):
correct_mask[i][:] = not (sum(mask[i]) == total_sequence_length)
correct_mask[i][:] = sum(mask[i]) != total_sequence_length
return mask, correct_mask


Expand Down

0 comments on commit f793e4f

Please sign in to comment.