[BE][4/16] fix typos in torch/ (torch/_dynamo/) (#156314)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/156314
Approved by: https://github.com/jingsh
ghstack dependencies: #156313
This commit is contained in:
Xuehai Pan
2025-06-22 22:22:30 +08:00
committed by PyTorch MergeBot
parent 6ff6630375
commit 1b2146fc6d
30 changed files with 71 additions and 70 deletions

View File

@ -368,7 +368,7 @@ class TorchFunctionModeVariable(GenericContextWrappingVariable):
# We are able to trace custom modes but if there are graph breaks under them
# and they have a custom __enter__/__exit__ we don't handle this for the
# same reason we don't handle generic context managers: there may be side effects
# that are now affected by executing the funtion across two frames instead of one
# that are now affected by executing the function across two frames instead of one
# Today we support the enter/exit of the default TorchFunctionMode as well as
# DeviceContext (which is used for set_default_device)
return issubclass(ty, (NoEnterTorchFunctionMode, DeviceContext)) or (