Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
docs: mdx typo
  • Loading branch information
osanseviero authored May 17, 2024
2 parents 60ad585 + 08ae78b commit bb1c442
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions chapters/zh-CN/chapter3/2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,6 @@ samples = {k: v for k, v in samples.items() if k not in ["idx", "sentence1", "se

毫无疑问,我们得到了不同长度的样本,从32到67。动态填充意味着该批中的所有样本都应该填充到长度为67,这是该批中的最大长度。如果没有动态填充,所有的样本都必须填充到整个数据集中的最大长度,或者模型可以接受的最大长度。让我们再次检查**data_collator**是否正确地动态填充了这批样本:

```py:
```py
batch = data_collator(samples)
{k: v.shape for k, v in batch.items()}
Expand Down

0 comments on commit bb1c442

Please sign in to comment.