mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
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:
parent
136ff97095
commit
3e90c00a87
1 changed files with 1 additions and 1 deletions
|
|
@ -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.",
|
||||
|
|
|
|||
Loading…
Reference in a new issue