fix typo examples and docs (#3932)

This commit is contained in:
digger yu
2023-06-08 16:09:32 +08:00
committed by GitHub
parent 407aa48461
commit 33eef714db
8 changed files with 17 additions and 17 deletions

View File

@@ -305,7 +305,7 @@ class _VocabParallelCrossEntropy(torch.autograd.Function):
@staticmethod
def backward(ctx, grad_output):
# Retreive tensors from the forward path.
# Retrieve tensors from the forward path.
softmax, target_mask, masked_target_1d = ctx.saved_tensors
# All the inputs have softmax as their gradient.