Fix some typos.

Fixes #ISSUE_NUMBER

Pull Request resolved: https://github.com/pytorch/pytorch/pull/75561
Approved by: https://github.com/albanD
This commit is contained in:
Yulv-git
2022-04-11 21:55:59 +00:00
committed by PyTorch MergeBot
parent 8e365fabc9
commit ac2d2e3a3d
28 changed files with 32 additions and 32 deletions

View File

@ -314,7 +314,7 @@ class class_ : public ::torch::detail::class_base {
def("__getstate__", std::forward<GetStateFn>(get_state));
// __setstate__ needs to be registered with some custom handling:
// We need to wrap the invocation of of the user-provided function
// We need to wrap the invocation of the user-provided function
// such that we take the return value (i.e. c10::intrusive_ptr<CurrClass>)
// and assign it to the `capsule` attribute.
using SetStateTraits =