[doc]: Small typos (#162982)

Small typo fixes

Pull Request resolved: https://github.com/pytorch/pytorch/pull/162982
Approved by: https://github.com/ezyang, https://github.com/zou3519
This commit is contained in:
joshuamarkovic
2025-09-16 17:42:15 +00:00
committed by PyTorch MergeBot
parent 6702f545d8
commit 559e8d1c20
38 changed files with 43 additions and 43 deletions

View File

@ -703,7 +703,7 @@ struct TORCH_API NLLLossImpl : public Cloneable<NLLLossImpl> {
/// The options with which this `Module` was constructed.
NLLLossOptions options;
/// A manual rescaling weight given to to each class.
/// A manual rescaling weight given to each class.
Tensor weight;
};
@ -743,7 +743,7 @@ struct TORCH_API CrossEntropyLossImpl : public Cloneable<CrossEntropyLossImpl> {
/// The options with which this `Module` was constructed.
CrossEntropyLossOptions options;
/// A manual rescaling weight given to to each class.
/// A manual rescaling weight given to each class.
Tensor weight;
};