mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
[BE][1/16] fix typos in torch/ (#156311)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/156311 Approved by: https://github.com/albanD
This commit is contained in:
committed by
PyTorch MergeBot
parent
f5bbaa2253
commit
4cc8b60d1b
@ -14835,7 +14835,7 @@ dedent """
|
||||
|
||||
# testing overload declared first, then non-overload
|
||||
if sys.version_info < (3, 13): # test broken in 3.13
|
||||
with self.assertRaisesRegex(Exception, "Overloads are not useable when a module"):
|
||||
with self.assertRaisesRegex(Exception, "Overloads are not usable when a module"):
|
||||
class W3(torch.nn.Module):
|
||||
@torch.jit._overload_method # noqa: F811
|
||||
def forward(self, x): # noqa: F811
|
||||
@ -14888,7 +14888,7 @@ dedent """
|
||||
return self.hello(1), self.hello(x)
|
||||
|
||||
if sys.version_info < (3, 13): # test broken in 3.13
|
||||
with self.assertRaisesRegex(Exception, "Overloads are not useable when a module"):
|
||||
with self.assertRaisesRegex(Exception, "Overloads are not usable when a module"):
|
||||
a = torch.jit.script(W2())
|
||||
|
||||
def test_narrow_copy(self):
|
||||
|
||||
Reference in New Issue
Block a user