Missing space in torch.autograd.Function deprecation warning (#141562)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/141562
Approved by: https://github.com/colesbury
This commit is contained in:
Yoni Chechik 2024-11-27 01:31:23 +00:00 committed by PyTorch MergeBot
parent 136ff97095
commit 3e90c00a87

View file

@ -497,7 +497,7 @@ class Function(_SingleLevelFunction):
def __init__(self, *args, **kwargs):
warnings.warn(
f"{self.__class__} should not be instantiated. Methods on autograd functions"
f"{self.__class__} should not be instantiated. Methods on autograd functions "
"are all static, so you should invoke them on the class itself. "
"Instantiating an autograd function will raise an "
"error in a future version of PyTorch.",