mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
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:
parent
0756f9f5fd
commit
bae3b17fd9
|
|
@ -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__
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user