Tweak a comment and fix spelling (#126681)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/126681
Approved by: https://github.com/Skylion007
This commit is contained in:
Tom Ritchford 2024-05-21 17:19:02 +00:00 committed by PyTorch MergeBot
parent 0756f9f5fd
commit bae3b17fd9
2 changed files with 4 additions and 4 deletions

View File

@ -79,8 +79,8 @@
#define C10_STRINGIZE(x) C10_STRINGIZE_IMPL(x)
/**
* C10_ANONYMOUS_VARIABLE(str) introduces an identifier starting with
* str and ending with a number that varies with the line.
* C10_ANONYMOUS_VARIABLE(str) introduces a new identifier which starts with
* str and ends with a unique number.
*/
#ifdef __COUNTER__
#define C10_UID __COUNTER__

View File

@ -3213,7 +3213,7 @@ void install_tensor_aliasing_guard(
std::shared_ptr<RelationalGuard> guard =
std::make_shared<TENSOR_ALIASING>(std::move(verbose_code_parts));
// Register the resetter on the toor gaurd mananger, so that it can reset
// Register the resetter on the toor guard mananger, so that it can reset
// the newly added relational guard when the guard eval fails.
x->get_root()->add_relational_guard_resetter(guard);
x->add_leaf_guard(guard);
@ -3230,7 +3230,7 @@ void install_no_tensor_aliasing_guard(
std::shared_ptr<RelationalGuard> guard = std::make_shared<NO_TENSOR_ALIASING>(
std::move(tensor_names), std::move(verbose_code_parts));
// Register the resetter on the toor gaurd mananger, so that it can reset
// Register the resetter on the toor guard mananger, so that it can reset
// the newly added relational guard when the guard eval fails.
py::cast<GuardManager*>(guard_managers[0])
->get_root()