Skip to content

Commit f52f4d4

Browse files
tarun292facebook-github-bot
authored andcommitted
Fix backend and devtools debug handle based tests (#6143)
Summary: Pull Request resolved: #6143 Fix the tests that started failing after D63913905 Reviewed By: cccclai Differential Revision: D64210644 fbshipit-source-id: d43165cd036d0552114ae8c79fed346c973ffcdb
1 parent 4a4a90f commit f52f4d4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

exir/backend/test/test_backends.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ def forward(self, x):
190190
program=program,
191191
delegate=program.execution_plan[0].delegates[0],
192192
expected_id=BackendWithCompilerDemo.__name__,
193-
expected_processed=b"1version:0#op:demo::aten.sin.default, numel:1, dtype:torch.float32<debug_handle>1#",
193+
expected_processed=b"1version:0#op:demo::aten.sin.default, numel:1, dtype:torch.float32<debug_handle>2#",
194194
)
195195

196196
# Check the delegate instruction
@@ -410,7 +410,7 @@ def forward(self, x):
410410
program=program,
411411
delegate=program.execution_plan[0].delegates[0],
412412
expected_id=BackendWithCompilerDemo.__name__,
413-
expected_processed=b"1version:0#op:demo::aten.sin.default, numel:1, dtype:torch.float32<debug_handle>1#",
413+
expected_processed=b"1version:0#op:demo::aten.sin.default, numel:1, dtype:torch.float32<debug_handle>2#",
414414
)
415415

416416
# Check the delegate instruction

exir/backend/test/test_backends_lifted.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def forward(self, x):
210210
program=program,
211211
delegate=program.execution_plan[0].delegates[0],
212212
expected_id=BackendWithCompilerDemo.__name__,
213-
expected_processed=b"1version:0#op:demo::aten.sin.default, numel:1, dtype:torch.float32<debug_handle>1#",
213+
expected_processed=b"1version:0#op:demo::aten.sin.default, numel:1, dtype:torch.float32<debug_handle>2#",
214214
)
215215

216216
# Check the delegate instruction
@@ -414,7 +414,7 @@ def forward(self, x):
414414
program=program,
415415
delegate=program.execution_plan[0].delegates[0],
416416
expected_id=BackendWithCompilerDemo.__name__,
417-
expected_processed=b"1version:0#op:demo::aten.sin.default, numel:1, dtype:torch.float32<debug_handle>1#",
417+
expected_processed=b"1version:0#op:demo::aten.sin.default, numel:1, dtype:torch.float32<debug_handle>2#",
418418
)
419419

420420
# Check the delegate instruction

0 commit comments

Comments
 (0)