mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[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:
committed by
PyTorch MergeBot
parent
6702f545d8
commit
559e8d1c20
@ -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;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user