Fix typo in transformer docs (#1414)

This commit is contained in:
c0g
2024-09-14 06:05:15 -07:00
committed by GitHub
parent d0c58841d1
commit bd8396fad8

View File

@@ -314,7 +314,7 @@ class Transformer(Module):
norm_first (bool, optional): if ``True``, encoder and decoder layers
will perform layer normalization before attention and MLP
operations, otherwise after. Default: ``True``.
chekpoint (bool, optional): if ``True`` perform gradient checkpointing
checkpoint (bool, optional): if ``True`` perform gradient checkpointing
to reduce the memory usage at the expense of more computation.
Default: ``False``.
"""