We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12b5324 commit 9d00df8Copy full SHA for 9d00df8
exir/backend/backend_api.py
@@ -351,8 +351,10 @@ def to_backend(
351
# Fall back to deepcopy if no fake mode is found. TODO(T182910699): Remove this fallback.
352
try:
353
fake_edge_program = get_fake_program(edge_program)
354
- except AssertionError as e:
355
- logging.warning(f"No fake mode found for {edge_program.graph_module}: {e}")
+ except Exception as e:
+ logging.warning(
356
+ f"Error in get_fake_program for graph {edge_program.graph_module}, fallback to deepcopy: {e}"
357
+ )
358
fake_edge_program = copy.deepcopy(edge_program)
359
partitioner_result = partitioner_instance(fake_edge_program)
360
tagged_exported_program = partitioner_result.tagged_exported_program
0 commit comments