mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Fix for failure in D68425364 (#145304)
Summary: Back out change from #145166 which causes an internal model to fail. Differential Revision: D68459095 Pull Request resolved: https://github.com/pytorch/pytorch/pull/145304 Approved by: https://github.com/izaitsevfb
This commit is contained in:
committed by
PyTorch MergeBot
parent
e6a84be3d3
commit
35c8c31f11
@ -2768,7 +2768,7 @@ class TestFX(JitTestCase):
|
||||
return self.other(x)
|
||||
|
||||
traced = symbolic_trace(ReturnTypeModule())
|
||||
self.assertIn("-> list[str]", traced._code)
|
||||
self.assertIn("-> typing_List[str]", traced._code)
|
||||
scripted = torch.jit.script(traced)
|
||||
self.assertIn("-> List[str]", scripted.code)
|
||||
|
||||
@ -3567,8 +3567,8 @@ class TestFX(JitTestCase):
|
||||
|
||||
traced(x, y)
|
||||
|
||||
FileCheck().check("tuple[()]") \
|
||||
.check("tuple[str,tuple[()]]") \
|
||||
FileCheck().check("typing_Tuple[()]") \
|
||||
.check("typing_Tuple[str,typing_Tuple[()]]") \
|
||||
.run(traced.code)
|
||||
|
||||
scripted = torch.jit.script(traced)
|
||||
|
Reference in New Issue
Block a user