mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Update on "[dynamo] Remove duplicated guards"
This is by looking at a tlparse of an internal job. We will need deeper audit. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela [ghstack-poisoned]
This commit is contained in:
@ -990,7 +990,6 @@ class DuplicateGuardTest(torch._dynamo.test_case.TestCase):
|
|||||||
|
|
||||||
def hook(guard_wrapper, f_locals, builder):
|
def hook(guard_wrapper, f_locals, builder):
|
||||||
guard_str = str(guard_wrapper)
|
guard_str = str(guard_wrapper)
|
||||||
print(guard_str)
|
|
||||||
# One for tensor and one for y
|
# One for tensor and one for y
|
||||||
self.assertEqual(guard_str.count("NO_HASATTR"), 2)
|
self.assertEqual(guard_str.count("NO_HASATTR"), 2)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user